Skip to content

BugId fails with error: "Cannot convert address '00000000' to a value" #135

@maxcoderrrr

Description

@maxcoderrrr

Hi,
I was running the latest release of BugId and encountered the following error:

→ Command line: C:\foo\bar.exe C:\foo\bar.input
+ Main process 1364/0x554 (bar.exe, x86, IL:3): Attached ("C:\foo\bar.exe" C:\foo\bar.input.
┌───[ Fatal builtins.AssertionError Exception in thread 2156/0x86C (cThread#20837D67490{main = __fRun, #2156, running}) ]────────────────────────────────────────────────────────────────────
│ Cannot convert address '00000000' to a value (taken from '72c74aa6 0fbf08          movsx   ecx,word ptr [eax]       ds:002b:00000000=????')
│ 
│ Local variables:
│   asbLastInstructionAndAddress = [b'72c74aa6 0fbf08          movsx   ecx,word ptr [eax]       ds:002b:00000000=????']#1
│   asbOperands = [b'ecx', b'word ptr [eax]       ']#1
│   obInstructionPointerDoesNotPointToAllocatedMemoryMatch = None
│   obLastInstructionMatch = <re.Match object; span=(0, 79), match=b'72c74aa6 0fbf08          movsx   ecx,word ptr [e #1>
│   oBugReport = <mBugId.mBugReport.cBugReport.cBugReport object at 0x0000020837D977D0 #1>
│   oCdbWrapper = <mBugId.cCdbWrapper.cCdbWrapper.cCdbWrapper object at 0x0000020837D52D10 #1>
│   oException = <mBugId.cException.cException object at 0x0000020837C834D0 #1>
│   oProcess = <mBugId.mProcess.cProcess.cProcess object at 0x0000020837DB0510 #1>
│   oWindowsAPIThread = <mWindowsAPI.cThread#20837C83BD0|tid = 0x1FF4|pid = 0x554|access = [SYNCHRONIZE | THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION | THREAD_QUERY_LIMITED_INFORMATION]|TEB @ 0x2F54000|stack @ 0x2D8FD20 - 0x2D7F000 #1>
│   s0ViolationTypeNotes = None
│   sb0AVAddress = b'00000000'
│   sb0AVAddress1 = b'00000000'
│   sb0AVAddress2 = None
│   sb0AVAddress3 = None
│   sb0Operands = b'ecx,word ptr [eax]       '
│   sb0Value = None
│   sbInstruction = b'movsx'
│   sViolationTypeId = 'R'
│   uAccessViolationAddress = 0
│ 
│ Stack for thread 2156/0x86C (cThread#20837D67490{main = __fRun, #2156, running}):
│ ─┐ __fRun @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py:58
│  │ 57:      try:
│  │ 58:        oSelf.__fActivity(*oSelf.__axActivityArguments);
│  ├─┐ cCdbWrapper_fCdbStdInOutHelperThread @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_fCdbStdInOutHelperThread.py:55
│  ╷ │ 54:    oCdbWrapper.fbFireCallbacks("Log message", "Main loop #%d" % uMainLoopCounter);
│  ╷ │ 55:    (bEventIsFatal, bEventHasBeenHandled) = oCdbWrapper.ftbHandleLastCdbEvent(asbOutputWhileRunningApplication);
│  ╷ ├─┐ cCdbWrapper_ftbHandleLastCdbEvent @ C:\BugId3\modules\mBugId\cCdbWrapper\cCdbWrapper_ftbHandleLastCdbEvent.py:218
│  ╷ ╷ │ 217:    oCdbWrapper.o0ReservedMemoryVirtualAllocation = None;
│  ╷ ╷ │ 218:  o0BugReport = cBugReport.fo0CreateForException(
│  ╷ ╷ ├─┐ cBugReport?.fo0CreateForException @ C:\BugId3\modules\mBugId\mBugReport\cBugReport.py:299
│  ╷ ╷ ╷ │ 298:    if oException.uCode in dfoAnalyzeException_by_uExceptionCode:
│  ╷ ╷ ╷ │ 299:      o0BugReport = dfoAnalyzeException_by_uExceptionCode[oException.uCode](o0BugReport, oProcess, oWindowsAPIThread, oException);
│  ╷ ╷ ╷ ├─┐ cBugReport_foAnalyzeException_STATUS_ACCESS_VIOLATION @ C:\BugId3\modules\mBugId\mBugReport\cBugReport_foAnalyzeException_STATUS_ACCESS_VIOLATION.py:144
│  ╷ ╷ ╷ ╷ │ 143:          uAccessViolationAddress = fu0ValueFromCdbHexOutput(sb0AVAddress);
│  ╷ ╷ ╷ ╷ │ 144:          assert uAccessViolationAddress, \
│  ╒═══════╛ ▲ Assertion failed: "Cannot convert address '00000000' to a value (taken from '72c74aa6 0fbf08          movsx   ecx,word ptr [eax]       ds:002b:00000000=????')"
│  │ __fRun @ C:\BugId3\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:\bar\bar.input


  ____________________________________________________________________________
                              __             ╷                   ╷
   ││▌║█▐▐║▌▌█│║║│      _,siSP**YSis,_      ─╒╦╦══╦╗            ─╒╦╦╕    ╔╦╕
   ││▌║█▐▐║▌▌█│║║│    ,SP*'`    . `'*YS,      ║╠══╬╣ ╔╗ ╔╗ ╔╦═╦╗  ║║  ╔╦═╬╣
   ╵2808197631337╵   dS'  _    |    _ 'Sb    ╘╩╩══╩╝ ╚╩═╩╝ ╚╩═╬╣ ╘╩╩╛ ╚╩═╩╝
                    dP     \,-` `-<` `  Y;                 ╚╩═╩╝    ╮╷╭
      ╮╷╭          ,S`  \+' \      \    `Sissssssssssssssssssss,   :O()
     :O()          (S   (   | --====)   :SSSSSSSSSSSSSSSSSSSSSSD    ╯╵╰
      ╯╵╰  ╮╷╭     'S,  /+, /      /    ,S?********************'
           ()O:     Yb    _/'-_ _-<._.  dP
           ╯╵╰       YS,       |      ,SP         https://bugid.skylined.nl
  ____________________`Sbs,_    ' _,sdS`______________________________________
                        `'*YSissiSY*'`
                              ``
┌───[ Version information ]──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ ▲ BugId version: 2025-05-23 12:35 (in trial period).
│ ▲ mBugId version: 2025-05-23 12:34 (in trial period).
│ √ mConsole version: 2025-05-23 10:58.
│ √ mDateTime version: 2025-05-23 10:57.
│ √ mDebugOutput version: 2025-05-23 10:58.
│ √ mFileSystemItem version: 2025-05-23 10:58.
│ √ mHumanReadable version: 2025-05-23 10:57.
│ √ mMultiThreading version: 2025-05-23 10:58.
│ √ mNotProvided version: 2025-05-23 10:57.
│ √ mProductDetails version: 2025-05-23 10:58.
│ √ mRegistry version: 2025-05-23 10:58.
│ √ mWindowsAPI version: 2025-05-23 10:58.
│ √ mWindowsSDK version: 2025-05-23 10:58.
│ • 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.
│ (Underlined modules are covered by a license installed on this system.)
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Thank you in advance for helping to improve BugId!
√ A copy of the error report can be found in C:\BugId3\Internal error reports\2025-08-29 19։02։00.86864 BugId error report #188.txt.

This bug is triggered when some Null pointer derefs are triggered.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions