Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
Hi Everyone,
We have a kernel mode driver which after a sequence of hibernate stress tests resulted in one of the driver module repeatedly loading and unloading.
The resulting error code on device manager is 38 - which according to MSDN is that driver prior unloading failed.
From the WPP logs, all modules seem to cleanup and unload properly. Not sure how to debug this problem
Also we have a crash dump collected after we see this error on driver. But at that point we see driver is unloaded several times (by checking the output of lm ).
Is there anyway we can find the culprit causing this.?
Can the dump collected be any useful despite driver already unloaded. ?
Appreciate any help. Thanks
Upcoming OSR Seminars | ||
---|---|---|
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead! | ||
Kernel Debugging | 30 January 2023 | Live, Online |
Developing Minifilters | 20 March 2023 | Live, Online |
Internals & Software Drivers | 17 April 2023 | Live, Online |
Writing WDF Drivers | 22 May 2023 | Live, Online |
Comments
I see couple of similar posts with similar error code. Looks like OS has some dangling reference on the driver image ?
How do I check this on a remote system where this issue is rarely seen? I can't get live setup for setting breakpoints and such.
Only trace logs and crash dump post the error code is possible. How do I track Object reference counts in this case? Any tips please ?
@cyberteen You probably want this question in NTDEV, not here... You might try asking in that forum.
Peter Viscarola
OSR
@OSRDrivers
Ah okay. Looks like that forum is more active and appropriate.
Thanks Peter, will repost it there.