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 find module 'ntdll'!?" #130

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

BugId fails with error: "Cannot find module 'ntdll'!?" #130

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
+ Main process 6908/0x1AFC (bar.exe, x86, IL:3): Attached ("C:\foo\bar.exe" C:\asdf\asdf.bar).
┌───[ Fatal builtins.AssertionError Exception in thread 8172/0x1FEC (cThread#2E16418FB10{main = __fRun, #8172, running}) ]────────────────────────────────────────────────────
│ Cannot find module 'ntdll'!?
│ 
│ Local variables:
│   i0OffsetFromStartOfFunction = None
│   o0Function = None
│   o0Module = None
│   obSymbolOrAddressMatch = <re.Match object; span=(0, 42), match=b'ntdll!NtWow64IsProcessorFeaturePresent+0xc'>#2E1640F3640
│   oProcess = <mBugId.cProcess.cProcess.cProcess object at 0x000002E1641E8E90>#2E1641E8E90
│   sb0Address = None
│   sb0FunctionSymbol = <instance builtins:bytes "b'NtWow64IsProcessorFeaturePresent'">#2E1641F04E0
│   sb0ModuleCdbIdOrAddress = <instance builtins:bytes "b'ntdll'">#2E16416DB60
│   sb0ModuleOffset = None
│   sb0OffsetInFunction = <instance builtins:bytes "b'c'">#7FFBDD3915E0
│   sb0UnloadedModuleFileName = None
│   sb0UnloadedModuleOffset = None
│   sbModuleCdbId = <instance builtins:bytes "b'ntdll'">#2E16416DB60
│   sbPlusOrMinusOffset = <instance builtins:bytes "b'+'">#7FFBDD390B60
│   sbSymbolOrAddress = <instance builtins:bytes "b'ntdll!NtWow64IsProcessorFeaturePresent+0xc'">#2E1641F17F0
│   u0Address = None
│   u0ModuleOffset = None
│ 
│ Stack for thread 8172/0x1FEC (cThread#2E16418FB10{main = __fRun, #8172, 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:141
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 140:    # If more top frames may be irrelevant, see if they are there and hide them:
│  ╷ ╷ ╷ ╷ ╷ ╷ │ 141:    if (oSelf.bAdditionalIrrelevantNoneTopStackFrames or oSelf.rb0AdditionalIrrelevantStackFrameSymbols) and 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:269
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 268:        o0Function, i0OffsetFromStartOfFunction
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 269:      ) = oProcess.ftxSplitSymbolOrAddress(sbCdbSymbolOrAddress);
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ├─┐ cProcess_ftxSplitSymbolOrAddress @ C:\BugId33\modules\mBugId\cProcess\cProcess_ftxSplitSymbolOrAddress.py:32
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 31:    o0Module = oProcess.fo0GetModuleForCdbId(sbModuleCdbId);
│  ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ ╷ │ 32:    assert o0Module, \
│  ╒═════════════════╛ ▲ Assertion failed: "Cannot find module 'ntdll'!?"
│  │ __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:
    BugId@skylined.nl

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!

Any help to fix this issue would be great. Please let me know in case any further information is required.

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