How to detect BSOD before it happens ?

Hello everyone,

Everything is in the title. How can I detect BSOD when developing a minifilter before it happens using Visual Studio 2013 ? Is there a way to do so using VS online debugging ?

Thanks in advance.

There is not a way to do this period. This is the “holy grail” of fault
tolerant computing, most of us know how to recover if you don’t crash.
Think about it this way, if the system knew you were doing something that
was going to cause a crash, do you think it would allow you to do it?

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.fr
Sent: Wednesday, April 29, 2015 9:58 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to detect BSOD before it happens ?

Hello everyone,

Everything is in the title. How can I detect BSOD when developing a
minifilter before it happens using Visual Studio 2013 ? Is there a way to do
so using VS online debugging ?

Thanks in advance.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

So all I can do, is generating a dump then investigate after the crash using windbg ? Can’t I generate a debug version using VS and debugging in it ?

thank you.

I’m not entirely sure what you’re asking here.

Have you considered trying PreFAST (win7 WDK) or Static Code Analysis in
VS2013 (Win8 WDK)?

They will help you detect some problems in your code that a compiler won’t
catch.

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Wednesday, April 29, 2015 7:05 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to detect BSOD before it happens ?

There is not a way to do this period. This is the “holy grail” of fault
tolerant computing, most of us know how to recover if you don’t crash.
Think about it this way, if the system knew you were doing something that
was going to cause a crash, do you think it would allow you to do it?

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.fr
Sent: Wednesday, April 29, 2015 9:58 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to detect BSOD before it happens ?

Hello everyone,

Everything is in the title. How can I detect BSOD when developing a
minifilter before it happens using Visual Studio 2013 ? Is there a way to do
so using VS online debugging ?

Thanks in advance.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Well at least in Windbg (I never us VS debugging) the debugger breaks in
when the crash is being processed. At that point you can look at all of
memory and otherwise debug (you just cannot continue without crashing).

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.fr
Sent: Wednesday, April 29, 2015 10:11 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to detect BSOD before it happens ?

So all I can do, is generating a dump then investigate after the crash using
windbg ? Can’t I generate a debug version using VS and debugging in it ?

thank you.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

You can live debug in vs. It is still a bsod, just not yet painted blue on the screen.

d

Bent from my phone


From: xxxxx@hotmail.frmailto:xxxxx
Sent: ?4/?29/?2015 7:10 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] How to detect BSOD before it happens ?

So all I can do, is generating a dump then investigate after the crash using windbg ? Can’t I generate a debug version using VS and debugging in it ?

thank you.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Thank you guys for the help.