SkyLined / BugId

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

AttributeError("'NoneType' object has no attribute 'oStdOutPipe'",) #83

Closed MostafaSoliman closed 5 years ago

MostafaSoliman commented 6 years ago

Hello, I am trying BugId, I used the below commands

pageheap rundll32.exe ON
BugId.cmd %WinDir%\system32\rundll32.exe -- advapi32 CloseThreadWaitChainSession

BugId dumped the below error.

* Command line: C:\WINDOWS\system32\rundll32.exe advapi32 CloseThreadWaitChainSession
┌─ An internal exception has occured ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ AttributeError("'NoneType' object has no attribute 'oStdOutPipe'",)
│
│  Stack:
│   0 cCdbWrapper_fasReadOutput @ d:\fuzzing\BugId\modules\cBugId\cCdbWrapper_fasReadOutput.py/85
│      > sChar = oCdbWrapper.oCdbConsoleProcess.oStdOutPipe.fsReadBytes(1); # return "" if pipe is closed.
│   1 fasReadOutput @ d:\fuzzing\BugId\modules\cBugId\cCdbWrapper.py/395
│      > return cCdbWrapper_fasReadOutput(oCdbWrapper, *axArguments, **dxArguments);
│   2 cCdbWrapper_fCdbStdInOutThread @ d:\fuzzing\BugId\modules\cBugId\cCdbWrapper_fCdbStdInOutThread.py/57
│      > oCdbWrapper.fasReadOutput();
│   3 fCdbStdInOutThread @ d:\fuzzing\BugId\modules\cBugId\cCdbWrapper.py/407
│      > return cCdbWrapper_fCdbStdInOutThread(oCdbWrapper);
│   4 fThreadWrapper @ d:\fuzzing\BugId\modules\cBugId\cCdbWrapper.py/312
│      > fActivity(*axActivityArguments);
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
┌─ Version information ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ ∙ BugId version: 2018-05-30 19:58 (in trial period).
│     You are running an old version: the latest released version is 2018-06-18 20:10, available at https://github.com/SkyLined/BugId/archive/master.zip.
│ ∙ mFileSystem version: 2018-05-30 11:27 (in trial period).
│     You are running an old version: the latest released version is 2018-06-18 20:11, available at https://github.com/SkyLined/mFileSystem/archive/master.zip.
│ ∙ mWindowsAPI version: 2018-05-18 08:51 (in trial period).
│     You are running an old version: the latest released version is 2018-06-18 20:12, available at https://github.com/SkyLined/mWindowsAPI/archive/master.zip.
│ ∙ cBugId version: 2018-05-30 19:54 (in trial period).
│     You are running an old version: the latest released version is 2018-06-18 20:10, available at https://github.com/SkyLined/cBugId/archive/master.zip.
│ ∙ mProductDetails version: 2018-04-18 21:07 (in trial period).
│     You are running an old version: the latest released version is 2018-06-18 20:11, available at https://github.com/SkyLined/mProductDetails/archive/master.zip.
│ ∙ oConsole version: 2018-05-30 11:28 (in trial period).
│     You are running an old version: the latest released version is 2018-06-18 20:12, available at https://github.com/SkyLined/oConsole/archive/master.zip.
│ ∙ Windows version: Windows 10 Home release 1709, build 16299 x64.
│ ∙ Python version: 2.7.14 x64.
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

I have also tried another app i am fuzzing and it dumped the same error. Would you please help.

Thanks,

SkyLined commented 6 years ago

Hey,

Sorry for the late reply; I was on holiday.

It appears you did not install Debugging Tools for Windows, which is required to use BugId. To install, download the Windows 10 SDK installer at:

https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

After downloading, run the installer. You can deselect all other features of the SDK before installation; only Debugging Tools for Windows is required.

Once you have completed these steps, please try again.


I've improved the error handling around this: in the next version BugId will give you a clean error message explaining this requirement and providing the above installation steps.

Thank you for the bug report and helping make BugId better!

SkyLined commented 5 years ago

No response; I'll assume you installed Debugging Tools for Windows and that this addressed the issue for you.

I've improve the error handling in https://github.com/SkyLined/cBugId/commit/1f50df92130344c0a50d4bbd046e6685b5b1b21c