Closed aaaaaaaaahhfhhfhf closed 1 year ago
Hi, thank you for the report!
It seems the mWindowsAPI
module it is using is outdated because it is missing a recently added method.
I am now running an update that pulls in the latest version of mWindowsAPI
. I will let you know once that's done.
This is taking a bit longer since I have some unfinished improvements that are causing the tests to fail.
Thanks for the update!
The changes I was working on should now be stable: I ran an update and all tests passed. This means all modules should now be up-to-date. Please try cloning again and testing it.
Thank you for reporting this. Feel free to close this bug if you can confirm it works with the latest version. If I do not hear back from you, I will close the bug out myself.
Thanks! Now it seems to be working, although another error kicks in when report is being created:
PS C:\Users\dev\Downloads\BugId> C:\Python310\python.exe .\BugId.py C:\Windows\system32\rundll32.exe -- advapi32 CloseThreadWaitChainSession
┌───[ Software license warning ]─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ ▲ You have no license for BugId and your trial period will expire on February 3rd, 2022
│ ▲ You have no license for mBugId and your trial period will expire on February 3rd, 2022
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
→ Command line: C:\Windows\system32\rundll32.exe advapi32 CloseThreadWaitChainSession
+ Main process 10524/0x291C (rundll32.exe, x64, IL:2): Attached (C:\Windows\system32\rundll32.exe advapi32 CloseThreadWaitChainSession).
┌───[ A bug was detected ]───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Id @ Location: AVR:NULL 810.20c @ rundll32.exe!advapi32.dll!WctRemoveEntry
│ Description: An Access Violation exception happened at 0x0 while attempting to read memory at 0x0 using a NULL pointer.
│ Security impact: None
│ Version: rundll32.exe 10.0.19041.746 (x64)
│ advapi32.DLL 10.0.19041.1052 (x64)
┌───[ Fatal builtins.NameError Exception in thread 15064/0x3AD8 (cThread#28F09A322C0{main = __fRun, #15064, running}) ]──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Undefined variable u0NumberOfRepeats.
│
│ Local variables:
│ bCountBugs = False
│ oBugId = <mBugId.cBugId.cBugId object at 0x0000028F09A01C90>#28F09A01C90
│ oBugReport = <mBugId.cBugReport.cBugReport.cBugReport object at 0x0000028F09A83280>#28F09A83280
│ sBugIdAndLocation = 'AVR:NULL 810.20c @ rundll32.exe!advapi32.dll!WctRemoveEntry'
│ sOutputFileNamesHeader = 'AVR:NULL 810.20c @ rundll32.exe!advapi32.dll!WctRemoveEntry'
│ sVersionInformation = 'advapi32.DLL 10.0.19041.1052 (x64)'
│
│ Stack for thread 15064/0x3AD8 (cThread#28F09A322C0{main = __fRun, #15064, running}):
│ ─┐ __fRun @ C:\Users\dev\Downloads\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py/66
│ │ 65: try:
│ │ 66: oSelf.__fActivity(*oSelf.__axActivityArguments);
│ ├─┐ cCdbWrapper_fCdbStdInOutHelperThread @ C:\Users\dev\Downloads\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:\Users\dev\Downloads\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_ftbHandleLastCdbEvent.py/220
│ ╷ ╷ │ 219: ### Report bug and see if the collateral bug handler can ignore it #################################################
│ ╷ ╷ │ 220: o0BugReport.fReport();
│ ╷ ╷ ├─┐ cBugReport?.fReport @ C:\Users\dev\Downloads\BugId\modules\mBugId\cBugReport\cBugReport.py/329
│ ╷ ╷ ╷ │ 328:
│ ╷ ╷ ╷ │ 329: assert oCdbWrapper.fbFireCallbacks("Bug report", oSelf), \
│ ╷ ╷ ╷ ├─┐ <lambda> @ C:\Users\dev\Downloads\BugId\modules\mBugId\cBugId.py/193
│ ╷ ╷ ╷ ╷ │ 192: sEventName,
│ ╷ ╷ ╷ ╷ │ 193: lambda oCdbWrapper, *txArguments: fCallback(oBugId, *txArguments), # replace oCdbWrapper with oBugId
│ ╷ ╷ ╷ ╷ ├─┐ fBugReportCallback @ C:\Users\dev\Downloads\BugId\BugId.py/407
│ ╷ ╷ ╷ ╷ ╷ │ 406: # In JIT mode and when counting bugs we prefix the report with the date and time.
│ ╷ ╷ ╷ ╷ ╷ │ 407: bPrefixWithBugIdStartDateTime = gbRunningAsJITDebugger or bCountBugs or u0NumberOfRepeats is not None,
│ ╷ ╷ ╷ ╷ ╷ │ ▲ NameError("name 'u0NumberOfRepeats' is not defined")
│ ╷ ╷ ╷ ╷ ╷ │ fBugReportCallback @ C:\Users\dev\Downloads\BugId\BugId.py/484
│ ╷ ╷ ╷ ╷ ╷ │ 483: finally:
│ ╷ ╷ ╷ ╷ ╷ │ 484: oConsole.fUnlock();
│ ╒═════════╛
│ │ __fRun @ C:\Users\dev\Downloads\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.
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
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 C:\Windows\system32\rundll32.exe -- advapi32 CloseThreadWaitChainSession
____________________________________________________________________________
__
││▌║█▐▐║▌▌█│║║│ _,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: 2022-01-05 09:41 (in trial period).
│ ▲ mBugId version: 2022-01-05 09:40 (in trial period).
│ √ mConsole version: 2022-01-05 09:38.
│ √ mDateTime version: 2022-01-05 09:38.
│ √ mDebugOutput version: 2022-01-05 09:38.
│ √ mFileSystemItem version: 2022-01-05 09:38.
│ √ mHumanReadable version: 2022-01-05 09:38.
│ √ mMultiThreading version: 2022-01-05 09:38.
│ √ mNotProvided version: 2022-01-05 09:38.
│ √ mProductDetails version: 2022-01-05 09:39.
│ √ mRegistry version: 2022-01-05 09:38.
│ √ mWindowsAPI version: 2022-01-05 09:38.
│ √ mWindowsSDK version: 2022-01-05 09:38.
│ • Windows version: Windows 10 Pro release 2009, build 19044 x64.
│ • Python version: 3.10.0 x64.
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Thank you in advance for helping to improve BugId!
┌───[ Fatal builtins.TypeError Exception in thread 15064/0x3AD8 (cThread#28F09A322C0{main = __fRun, #15064, running}) ]──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ 'NoneType' object is not iterable
│
│ Local variables:
│ oException = <instance builtins:NameError 'NameError("name \'u0NumberOfRepeats\' is not defined")'>#28F0AA970A0
│ oTraceBack = <traceback object at 0x0000028F0AA90A80>#28F0AA90A80
│ rErrorReportFileName = <instance re:Pattern "re.compile('\\\\A\\\\d{4}.\\\\d\\\\d.\\\\d\\\\d \\\\d\\\\d.\\\\d\\\\d.\\\\d\\\\d(?:.\\\\d+)? BugId error report #(\\\\d+)\\\\.txt\\\\Z')">#28F09B00F20
│ uIndex = 1
│
│ Stack for thread 15064/0x3AD8 (cThread#28F09A322C0{main = __fRun, #15064, running}):
│ ─┐ __fRun @ C:\Users\dev\Downloads\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):
│ ├─┐ <lambda> @ C:\Users\dev\Downloads\BugId\modules\mBugId\cBugId.py/193
│ ╷ │ 192: sEventName,
│ ╷ │ 193: lambda oCdbWrapper, *txArguments: fCallback(oBugId, *txArguments), # replace oCdbWrapper with oBugId
│ ╷ ├─┐ fInternalExceptionCallback @ C:\Users\dev\Downloads\BugId\BugId.py/195
│ ╷ ╷ │ 194: gbAnInternalErrorOccured = True;
│ ╷ ╷ │ 195: fSaveInternalExceptionReportAndExit(oException, oTraceBack);
│ ╷ ╷ ├─┐ fSaveInternalExceptionReportAndExit @ C:\Users\dev\Downloads\BugId\BugId.py/210
│ ╷ ╷ ╷ │ 209: # Scan for previous error reports, so we can number them:
│ ╷ ╷ ╷ │ 210: for oPotentialOlderErrorReport in goInternalErrorReportsFolder.faoGetChildren():
│ ╒═════╛ ▲ TypeError("'NoneType' object is not iterable")
│ │ __fRun @ C:\Users\dev\Downloads\BugId\modules\mBugId\cCdbWrapper\cCdbWrapper_cHelperThread.py/88
│ │ 87: "Could not terminate cdb";
│ │ 88: oSelf.__oCdbWrapper.bCdbIsRunning = False;
│ ═╛ ▲ Application terminated because exception was not handled.
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
P
I have been refactoring the underlying code to address this. This requires quite a bit of effort and I've found (or introduced) some issues in the .zip file handling that I want to fix as well but haven't tracked down to their origin.
Unfortunately, I am out sick with the flu at the moment.
I believe this issue was fixed a while ago. If not, please reopen.
Cloned BugId with
git clone --recurse-submodules https://github.com/SkyLined/BugId.git
, testing it with method described in readme, getting internal error: