SkyLined / BugId

Detect, analyze and uniquely identify crashes in Windows applications
https://bugid.skylined.nl
Other
499 stars 90 forks source link

Undefined variable sFastFailCodeDescription. #107

Closed soiax closed 2 years ago

soiax commented 2 years ago
┌───[ Fatal builtins.NameError Exception in thread 29072/0x7190 (cThread#271883BA980{main = __fRun, #29072, running}) 
│ Undefined variable sFastFailCodeDescription.
│
│ Local variables:
│   oBugReport = <mBugId.cBugReport.cBugReport.cBugReport object at 0x00000271884361D0>#271884361D0
│   oException = <mBugId.cException.cException object at 0x0000027188495FC0>#27188495FC0
│   oProcess = <mBugId.cProcess.cProcess.cProcess object at 0x0000027188469B10>#27188469B10
│   oWindowsAPIThread = <mWindowsAPI.cThread#27188495ED0|tid = 0x73F8|pid = 0x758C|access = [SYNCHRONIZE | THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION | THREAD_QUERY_LIMITED_INFORMATION]|TEB @ 0x7726000|stack @ 0x74DFD20 - 0x74D2000>#27188495ED0
│   uFastFailCode = 5
│
│ Stack for thread 29072/0x7190 (cThread#271883BA980{main = __fRun, #29072, running}):
│ ─┐ __fRun @ C:\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py/66
│  │ 65:      try:
│  │ 66:        oSelf.__fActivity(*oSelf.__axActivityArguments);
│  ├─┐ cCdbWrapper_fCdbStdInOutHelperThread @ C:\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_fCdbStdInOutHelperThread.py/54
│  ╷ │ 53:    oCdbWrapper.fbFireCallbacks("Log message", "Main loop #%d" % uMainLoopCounter);
│  ╷ │ 54:    (bEventIsFatal, bEventHasBeenHandled) = oCdbWrapper.ftbHandleLastCdbEvent(asbOutputWhileRunningApplication);
│  ╷ ├─┐ cCdbWrapper_ftbHandleLastCdbEvent @ C:\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_ftbHandleLastCdbEvent.py/204
│  ╷ ╷ │ 203:    oCdbWrapper.o0ReservedMemoryVirtualAllocation = None;
│  ╷ ╷ │ 204:  o0BugReport = cBugReport.fo0CreateForException(
│  ╷ ╷ ├─┐ cBugReport?.fo0CreateForException @ C:\BugId\modules\mBugId\cBugReport\cBugReport.py/109
│  ╷ ╷ ╷ │ 108:    if oException.uCode in dfoAnalyzeException_by_uExceptionCode:
│  ╷ ╷ ╷ │ 109:      o0BugReport = dfoAnalyzeException_by_uExceptionCode[oException.uCode](o0BugReport, oProcess, oWindowsAPIThread, oException);
│  ╷ ╷ ╷ ├─┐ cBugReport_foAnalyzeException_STATUS_STACK_BUFFER_OVERRUN @ C:\BugId\modules\mBugId\cBugReport\cBugReport_foAnalyzeException_STATUS_STACK_BUFFER_OVERRUN.py/104
│  ╷ ╷ ╷ ╷ │ 103:    oBugReport.s0BugDescription = "A critical issue was detected (code %X, fail fast code %d: %s)." % \
│  ╷ ╷ ╷ ╷ │ 104:        (oException.uCode, uFastFailCode, sFastFailCodeDescription);
│  ╒═══════╛ ▲ NameError("name 'sFastFailCodeDescription' is not defined")
│  │ __fRun @ C:\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py/74
│  │ 73:        cException, oException, oTraceBack = sys.exc_info();
│  │ 74:        if not oSelf.__oCdbWrapper.fbFireCallbacks("Internal exception", oSelf.__oThread, oException, oTraceBack):
│ ═╛ ▲ Application terminated because exception was not handled.

stdout>ExceptionAddress: 7725d132 (ucrtbase!_invoke_watson+0x00000012)
stdout>   ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
stdout>  ExceptionFlags: 00000001
stdout>NumberParameters: 1
stdout>   Parameter[0]: 00000005
stdout>Subcode: 0x5 FAST_FAIL_INVALID_ARG
SkyLined commented 2 years ago

Hi! Thanks for the report! I've fixed this issue by removing the undefined variable use.