Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugId fails with error: "Cannot process get symbol output for address 0xnnnnnnnnnnnnnnn" #131

Open
maxcoderrrr opened this issue Jul 31, 2024 · 0 comments

Comments

@maxcoderrrr
Copy link

Hi,
I was running the latest release of BugId (2024-07-09 13:37) and encountered the following error:

→ Command line: C:\foo\bar.exe C:\asdf\asdf.bar
▲ Full page heap is not enabled for bar.exe in process 4076/0xFEC.
  Without page heap enabled, detection and analysis of any bugs will be sub-
  optimal. Please enable page heap to improve detection and analysis.

  You can enable full page heap for bar.exe by running:

      PageHeap.cmd "bar.exe" ON

+ Main process 4076/0xFEC (bar.exe, x86, IL:3): Attached ("C:\foo\bar.exe " C:\asdf\asdf.bar).
► Main process 4076/0xFEC (bar.exe, x86, IL:3): debug Critical error detected c0000374
┌───[ Fatal builtins.AssertionError Exception in thread 6376/0x18E8 (cThread#1F4A1E3FA90{main = __fRun, #6376, running}) ]────────────────────────────────────────────────────
│ Cannot process get symbol output for address 0xEB084589018C81F8:
│ 018c81f8
│ 
│ Local variables:
│   asbSymbolOutput = [<instance builtins:bytes "b'018c81f8'">#1F4A1EB9890]#1F4A1EAEB00
│   obSymbolOrAddressMatch = <re.Match object; span=(0, 8), match=b'018c81f8'>#1F4A1DA3A40
│   oProcess = <mBugId.cProcess.cProcess.cProcess object at 0x000001F4A1E90D10>#1F4A1E90D10
│   oSymbolWithOrWithoutAddressMatch = <re.Match object; span=(0, 8), match=b'018c81f8'>#1F4A1DD5E10
│   sb0Address = <instance builtins:bytes "b'018c81f8'">#1F4A1EB9890
│   sb0FunctionSymbol = None
│   sb0ModuleCdbIdOrAddress = None
│   sb0ModuleOffset = None
│   sb0OffsetInFunction = None
│   sb0UnloadedModuleFileName = None
│   sb0UnloadedModuleOffset = None
│   sbAddressDescription = <instance builtins:bytes "b'Get function symbol for CALL instruction target address 0xEB084589018C81F8'">#1F4A1DB1760
│   sbGetSymbolCommand = <instance builtins:bytes 'b\'.printf "%y\\\\n", 0xEB084589018C81F8;\''>#1F4A1EA08F0
│   sbPlusOrMinusOffset = None
│   sbSymbol = <instance builtins:bytes "b'018c81f8'">#1F4A1EB9890
│   uAddress = 16935862853465571832
│ 
│ Stack for thread 6376/0x18E8 (cThread#1F4A1E3FA90{main = __fRun, #6376, running}):
│ ─┐ __fRun @ C:\BugId33\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:58
│  │ 57:      try:
│  │ 58:        oSelf.__fActivity(*oSelf.__axActivityArguments);
│  ├─┐ cCdbWrapper_fCdbStdInOutHelperThread @ C:\BugId33\modules\mBugId\cCdbWrapper\cCdbWrapper_fCdbStdInOutHelperThread.py:53
│  ╷ │ 52:    oCdbWrapper.fbFireCallbacks("Log message", "Main loop #%d" % uMainLoopCounter);
│  ╷ │ 53:    (bEventIsFatal, bEventHasBeenHandled) = oCdbWrapper.ftbHandleLastCdbEvent(asbOutputWhileRunningApplication);
│  ╷ ├─┐ cCdbWrapper_ftbHandleLastCdbEvent @ C:\BugId33\modules\mBugId\cCdbWrapper\cCdbWrapper_ftbHandleLastCdbEvent.py:219
│  ╷ ╷ │ 218:    oCdbWrapper.o0ReservedMemoryVirtualAllocation = None;
│  ╷ ╷ │ 219:  o0BugReport = cBugReport.fo0CreateForException(
│  ╷ ╷ ├─┐ cBugReport?.fo0CreateForException @ C:\BugId33\modules\mBugId\cBugReport\cBugReport.py:138
│  ╷ ╷ ╷ │ 137:    # Create a preliminary error report.
│  ╷ ╷ ╷ │ 138:    o0BugReport = cBugReport.foCreate(
│  ╷ ╷ ╷ ├─┐ cBugReport?.foCreate @ C:\BugId33\modules\mBugId\cBugReport\cBugReport.py:185
│  ╷ ╷ ╷ ╷ │ 184:    );
│  ╷ ╷ ╷ ╷ │ 185:    fApplyBugTranslationsToBugReport(oCdbWrapper, oBugReport);
│  ╷ ╷ ╷ ╷ ├─┐ fApplyBugTranslationsToBugReport @ C:\BugId33\modules\mBugId\mBugTranslations\fApplyBugTranslationsToBugReport.py:65
│  ╷ ╷ ╷ ╷ ╷ │ 64:    for oBugTranslation in aoBugTranslations:
│  ╷ ╷ ╷ ╷ ╷ │ 65:      if oBugTranslation.fbApplyToBugReport(oCdbWrapper, oBugReport):
│  ╷ ╷ ╷ ╷ ╷ ├─┐ cBugTranslation?.fbApplyToBugReport @ C:\BugId33\modules\mBugId\mBugTranslations\cBugTranslation.py:107
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 106:        ] if s]);
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 107:      if not oBugReport.o0Stack:
│  ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ o0Stack @ C:\BugId33\modules\mBugId\cBugReport\cBugReport.py:105
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 104:    if oSelf.__o0Stack is None:
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 105:      oSelf.__o0Stack = cStack.foCreate(oSelf.__oProcess, oSelf.__oWindowsAPIThread, oSelf.uStackFramesCount);
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ cStack?.foCreate @ C:\BugId33\modules\mBugId\cStack.py:322
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 321:        else:
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 322:          sb0CallTargetSymbol = oProcess.fsb0GetSymbolForAddress(u0CallTargetAddressFromInstruction, b"Get function symbol for CALL instruction target address 0x%X" % u0CallTargetAddressFromInstruction);
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ cProcess?.fsb0GetSymbolForAddress @ C:\BugId33\modules\mBugId\cProcess\cProcess.py:254
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 253:      return oSelf.__dsb0Symbol_by_uAddress[uAddress];
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 254:    sb0Symbol = cProcess_fsb0GetSymbolForAddress(oSelf, uAddress, sbAddressDescription);
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ cProcess_fsb0GetSymbolForAddress @ C:\BugId33\modules\mBugId\cProcess\cProcess_fsb0GetSymbolForAddress.py:71
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 70:      return sbSymbol;
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 71:  raise AssertionError(
│  ╒═══════════════════╛ ▲ Assertion failed: 'Cannot process get symbol output for address 0xEB084589018C81F8:\r\n018c81f8'
│  │ __fRun @ C:\BugId33\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:66
│  │ 65:        cException, oException, oTraceBack = sys.exc_info();
│  │ 66:        if not oSelf.__oCdbWrapper.fbFireCallbacks("Internal exception", oSelf.__oThread, oException, oTraceBack):
│ ═╛ ▲ Application terminated because exception was not handled.
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Please report the above details at the below web-page so it can be addressed:
    https://github.com/SkyLined/BugId/issues/new
If you do not have a github account, or you want to report this issue
privately, you can also send an email to:
    [email protected]

In your report, please copy ALL the information about the exception reported
above, as well as the stack trace and BugId version information. This makes
it easier to determine the cause of this issue and makes for faster fixes.

If you can reproduce the issue, it would help a lot if you can run BugId in
verbose mode by adding the --verbose command-line argument.
as in: BugId -v --isa=x86 --n0ApplicationMaxRunTimeInSeconds=120 C:\foo\bar.exe -- C:\asdf\asdf.bar


  ____________________________________________________________________________
                              __
   ││▌║█▐▐║▌▌█│║║│      _,siSP**YSis,_       ╒╦╦══╦╗             ╒╦╦╕    ╔╦╕
   ││▌║█▐▐║▌▌█│║║│    ,SP*'`    . `'*YS,      ║╠══╬╣ ╔╗ ╔╗ ╔╦═╦╗  ║║  ╔╦═╬╣
   ╵2808197631337╵   dS'  _    |    _ 'Sb    ╘╩╩══╩╝ ╚╩═╩╝ ╚╩═╬╣ ╘╩╩╛ ╚╩═╩╝
                    dP     \,-` `-<` `  Y;                 ╚╩═╩╝    ╮╷╭
      ╮╷╭          ,S`  \+' \      \    `Sissssssssssssssssssss,   :O()    ╲ö╱
     :O()          (S   (   | --====)   :SSSSSSSSSSSSSSSSSSSSSSD    ╯╵╰    ─O─
      ╯╵╰  ╮╷╭     'S,  /+, /      /    ,S?********************'           ╱O╲
           ()O:     Yb    _/'-_ _-<._.  dP
           ╯╵╰       YS,       |      ,SP         https://bugid.skylined.nl
  ____________________`Sbs,_    ' _,sdS`______________________________________
                        `'*YSissiSY*'`
                              ``
┌───[ Version information ]───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ ▲ BugId version: 2024-07-09 11:41 (in trial period).
│ ▲ mBugId version: 2024-07-09 11:41 (in trial period).
│ √ mConsole version: 2024-07-09 11:41.
│ √ mDateTime version: 2024-07-09 11:41.
│ √ mDebugOutput version: 2024-07-09 11:41.
│ √ mFileSystemItem version: 2024-07-09 11:41.
│ √ mHumanReadable version: 2024-07-09 11:41.
│ √ mMultiThreading version: 2024-07-09 11:41.
│ √ mNotProvided version: 2024-07-09 11:41.
│ √ mProductDetails version: 2024-07-09 11:41.
│ √ mRegistry version: 2024-07-09 11:41.
│ √ mWindowsAPI version: 2024-07-09 11:41.
│ √ mWindowsSDK version: 2024-07-09 11:41.
│ • Platform OS: Windows-10-10.0.19045-SP0 on AMD64 processor.
│ • Python version: 3.11.1, 64 bit.
│ • cdb.exe (x86) version: 10.0.17763.132.
│ • cdb.exe (x64) version: 10.0.17763.132.
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Thank you in advance for helping to improve BugId!

I encountered this issue in many instances where I was running BugId with PageHeap disabled for the target application.
The reason was simply that some crashes don't occur if PageHeap is enabled.

Any help to fix this issue would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant