Skip to content

Windbg SOS truncates symbol path to 260 characters #673

Closed

Description

@Zhentar

InitializeSymbolStoreFromSymPath assumes that sympath cannot be longer than 260 characters. This is.... not at all accurate.

void InitializeSymbolStoreFromSymPath()
{
if (g_SOSNetCoreCallbacks.InitializeSymbolStoreDelegate != nullptr)
{
ArrayHolder<char> symbolPath = new char[MAX_LONGPATH];
if (SUCCEEDED(g_ExtSymbols->GetSymbolPath(symbolPath, MAX_LONGPATH, nullptr)))

Activity

  1. self-assigned this
    on Dec 6, 2019
  2. added this to the 5.0 milestone on Dec 6, 2019
  3. mikem8361 commented on Dec 6, 2019

    @mikem8361
    Contributor

    I need to remove the MAX_LONGPATH definition in palclr.h. The actual definition is in pal.h line 121 and it is 1024 chars.

  4. Zhentar commented on Dec 6, 2019

    @Zhentar
    Author

    While that's better, it still doesn't completely solve the problem; my "minimal" sympath has two http URLs and 4 UNC paths in it, and each one of those is individually allowed to be longer than 1024 characters

  5. mikem8361 commented on Dec 15, 2019

    @mikem8361
    Contributor

    PR: #690

  6. ghost locked as resolved and limited conversation to collaborators on Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions