Home
%3CLINGO-SUB%20id%3D%22lingo-sub-723654%22%20slang%3D%22en-US%22%3EThe%20Case%20of%20the%20Random%20IE%20and%20WMP%20Crashes%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-723654%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TechNet%20on%20Jun%2002%2C%202008%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20When%20I%20experienced%20a%20crash%20in%20Internet%20Explorer%20(IE)%20on%20my%20home%2064-bit%20gaming%20system%20one%20day%2C%20I%20chalked%20it%20up%20to%20random%20third-party%20plug-in%20memory%20corruption.%20I%20moved%20on%2C%20but%20a%20few%20days%20later%20had%20another%20crash%20in%20IE.%20Then%2C%20Windows%20Media%20Player%20(WMP)%20started%20crashing%20every%20third%20or%20fourth%20time%20I%20used%20it%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%3CSHAPETYPE%20coordsize%3D%2221600%2C21600%22%20filled%3D%22f%22%20id%3D%22_x0000_t75%22%20preferrelative%3D%22t%22%20spt%3D%2275%22%20path%3D%22m%404%405l%404%4011%409%4011%409%405xe%22%20stroked%3D%22f%22%3E%0A%20%20%20%20%20%3CSTROKE%20joinstyle%3D%22miter%22%3E%0A%20%20%20%20%20%3C%2FSTROKE%3E%0A%20%20%20%20%20%3CFORMULAS%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22if%20lineDrawn%20pixelLineWidth%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%400%201%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%200%200%20%401%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%402%201%202%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%403%2021600%20pixelWidth%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%403%2021600%20pixelHeight%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%400%200%201%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%406%201%202%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%407%2021600%20pixelWidth%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%408%2021600%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%407%2021600%20pixelHeight%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%4010%2021600%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%3C%2FFORMULAS%3E%0A%20%20%20%20%20%3CPATH%20gradientshapeok%3D%22t%22%20connecttype%3D%22rect%22%20extrusionok%3D%22f%22%3E%0A%20%20%20%20%20%3C%2FPATH%3E%0A%20%20%20%20%20%0A%20%20%20%20%20%3CLOCK%20aspectratio%3D%22t%22%20ext%3D%22edit%22%3E%0A%20%20%20%20%20%3C%2FLOCK%3E%0A%20%20%20%20%3C%2FSHAPETYPE%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22393%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064673%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064673%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121026iF43EEC228C2F97A4%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20393px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20Crashes%20in%20different%20programs%20seemed%20to%20point%20at%20a%20more%20fundamental%20problem.%20I%20had%20over-clocked%20the%20CPU%2C%20so%20I%20speculated%20that%20the%20rash%20of%20crashes%20were%20a%20side-effect%20of%20CPU%20overheating%20and%20reluctantly%20dialed%20back%20the%20clock%20multiplier%20to%20the%20factory%20specification.%20%3CSPAN%20style%3D%22mso-spacerun%3A%20yes%22%3E%20%3C%2FSPAN%3E%20To%20my%20dismay%2C%20however%2C%20the%20crashes%20continued.%20My%20next%20theory%20was%20that%20I%20had%20bad%20RAM%2C%20but%20the%20Windows%20Vista%20Memory%20Diagnostic%20failed%20to%20identify%20any%20problems.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20Hardware%20problems%20seemingly%20cleared%2C%20my%20next%20move%20was%20to%20look%20at%20the%20process%20crash%20dumps%20to%20see%20if%20they%20held%20any%20clues.%20But%20first%20I%20had%20to%20find%20a%20crash%20dump%20to%20look%20at.%20Windows%20XP%E2%80%99s%20Application%20Error%20Reporting%20process%20always%20generates%20a%20dump%20before%20showing%20you%20the%20application%20crash%20dialog%2C%20and%20you%20can%20find%20the%20location%20of%20the%20dump%20by%20clicking%20to%20see%20the%20report%20details%20and%20then%20viewing%20the%20report%E2%80%99s%20technical%20information%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22231%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064674%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064674%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121027iFC78BC3E387B8408%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20231px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20Windows%20Vista%E2%80%99s%20corresponding%20dialog%20doesn%E2%80%99t%20offer%20a%20way%20to%20get%20at%20a%20report%E2%80%99s%20technical%20information%20and%20it%20doesn%E2%80%99t%20generate%20a%20dump%20unless%20Microsoft%E2%80%99s%20Windows%20Error%20Reporting%20(WER)%20servers%20request%20it%2C%20which%20they%20only%20do%20for%20crashes%20reported%20in%20high%20volumes.%20Fortunately%2C%20WerFault%2C%20the%20process%20that%20presents%20the%20dialog%2C%20keeps%20the%20crashed%20process%20around%20until%20you%20press%20the%20Close%20Program%20button%2C%20which%20offers%20an%20opportunity%20to%20attach%20to%20the%20process%20with%20a%20debugger%20and%20examine%20it.%20You%20can%20see%20WerFault%E2%80%99s%20handle%20to%20a%20crashed%20Windows%20Media%20Player%20process%20in%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb896653.aspx%22%20mce_href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb896653.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EProcess%20Explorer%20%3C%2FA%3E%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CIMG%20height%3D%22266%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064685%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064685%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121028iA7738E8249CF0A26%22%20style%3D%22WIDTH%3A%20357px%3B%20HEIGHT%3A%20266px%22%20width%3D%22357%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20next%20time%20I%20had%20a%20crash%2C%20I%20launched%20WinDbg%2C%20the%20Windows%20Debugger%20from%20the%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Fwww.microsoft.com%2Fwhdc%2Fdevtools%2Fdebugging%2Fdefault.mspx%22%20mce_href%3D%22http%3A%2F%2Fwww.microsoft.com%2Fwhdc%2Fdevtools%2Fdebugging%2Fdefault.mspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EDebugging%20Tools%20for%20Windows%20%3C%2FA%3Epackage%20that%E2%80%99s%20available%20for%20free%20download%20from%20Microsoft.%20After%20making%20sure%20that%20I%20had%20the%20symbol%20configuration%20set%20to%20point%20at%20the%20Microsoft%20public%20symbol%20server%20(e.g.%20srv*c%3A%5Csymbols*%3CA%20href%3D%22http%3A%2F%2Fmsdl.microsoft.com%2Fdownload%2Fsymbols%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fmsdl.microsoft.com%2Fdownload%2Fsymbols%3C%2FA%3E)%20in%20the%20Symbol%20File%20Path%20dialog%2C%20I%20went%20to%20the%20File%20menu%20and%20selected%20the%20%E2%80%9CAttach%20to%20a%20Process...%E2%80%9D%20menu%20entry%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22202%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064676%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064676%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121029iFB7537F356E67C50%22%20style%3D%22WIDTH%3A%20318px%3B%20HEIGHT%3A%20202px%22%20width%3D%22318%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20That%20opens%20the%20WinDbg%20process%20selection%20dialog%2C%20which%20I%20scrolled%20through%20to%20find%20the%20crashed%20process.%20When%20I%20selected%20the%20process%2C%20WinDbg%20opened%20it%20and%20presented%20the%20same%20interface%20it%20does%20when%20it%26nbsp%3Bloads%20a%20crash%20dump%2C%20except%20that%20when%20you%20load%20a%20crash%20dump%2C%20you%20can%20execute%20the%20%3CI%20style%3D%22mso-bidi-font-style%3A%20normal%22%3E!analyze%20%3C%2FI%3Edebugger%20command%20that%20uses%20heuristics%20to%20try%20and%20pinpoint%20the%20cause%20of%20the%20crash%3B%20when%20you%20perform%20a%20debugger%20attach%2C%20an%20analysis%20will%20just%20tell%20you%20what%20you%20already%20know%2C%20that%20you%20attached%20with%20a%20debugger%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22438%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064677%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064677%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121030i5516302C3F5ECAC6%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20438px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20Looking%20for%20a%20potential%20cause%20of%20a%20crash%20when%20attached%20requires%20looking%20at%20the%20stack%20of%20each%20thread%20in%20the%20process%2C%20so%20I%20opened%20the%20Processes%20and%20Threads%20and%20Call%20Stack%20dialogs%20in%20the%20View%20menu%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20size%3D%223%22%3E%20%3CFONT%20face%3D%22Calibri%22%3E%20%3CSPAN%20style%3D%22mso-spacerun%3A%20yes%22%3E%20%3CIMG%20height%3D%22279%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064679%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064679%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121031i1B9ED7A674EB31A0%22%20style%3D%22WIDTH%3A%20354px%3B%20HEIGHT%3A%20279px%22%20width%3D%22354%22%20%2F%3E%20%3C%2FSPAN%3E%20%3C%2FFONT%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20size%3D%223%22%3E%20%3CFONT%20face%3D%22Calibri%22%3E%20I%20started%20examining%20threads%20by%20selecting%20the%20first%20entry%20in%20the%20threads%20dialog%3A%20%3C%2FFONT%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22107%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064680%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064680%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121032iDF79082DBD265504%22%20style%3D%22WIDTH%3A%20281px%3B%20HEIGHT%3A%20107px%22%20width%3D%22281%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20WinDbg%20command%20window%20usually%20grays%20and%20says%20%E2%80%9CBusy%E2%80%9D%20as%20WinDbg%20pulls%20symbols%20from%20the%20symbol%20server%2C%20after%20which%20the%20call%20stack%20dialog%20populates%20with%20the%20function%20nesting%20of%20the%20selected%20thread%20at%20the%20time%20of%20the%20crash.%20I%20examined%20each%20thread%E2%80%99s%20stack%20in%20turn%2C%20moving%20between%20threads%20by%20pressing%20the%20down%20arrow%20and%20then%20the%20enter%20key%2C%20hunting%20for%20a%20stack%20that%20had%20function%20names%20with%20the%20words%20%E2%80%9Cexception%E2%80%9D%20or%20%E2%80%9Cfault%E2%80%9D%20in%20them.%20Near%20the%20end%20of%20the%20list%20I%20came%20across%20this%20one%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22293%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064681%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064681%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121033iDC1A33DCA60689EE%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20293px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20I%20noticed%20that%20the%20top%20of%20the%20list%20is%20full%20of%20functions%20with%20%E2%80%9CException%E2%80%9D%20in%20their%20names.%20Looking%20down%20the%20list%20(up%20the%20stack)%2C%20I%20saw%20that%20a%20function%20in%20Nvappfilter%20called%20Kernel32.dll%E2%80%99s%20HeapFree%20function%2C%20leading%20to%20the%20crash.%20The%20exception%20in%20the%20heap%E2%80%99s%20free%20routines%20meant%20that%20either%20the%20caller%20passed%20a%20bogus%20heap%20address%20or%20that%20the%20heap%20was%20already%20corrupted%20when%20the%20function%20executed.%20If%20a%20Windows%20DLL%20had%20been%20the%20caller%20I%20would%20have%20suspected%20the%20latter%2C%20but%20in%20this%20case%20the%20caller%20was%20a%20third-party%20DLL%2C%20which%20I%20could%20tell%20by%20the%20fact%20that%20WinDbg%20couldn%E2%80%99t%20locate%20symbol%20information%20for%20it%20and%20hence%20didn%E2%80%99t%20know%20the%20names%20of%20the%20functions%20within%20it.%20I%20confirmed%20that%20by%20issuing%20the%20%3CI%20style%3D%22mso-bidi-font-style%3A%20normal%22%3Elm%20%3C%2FI%3E(list%20module)%20command%20to%20look%20at%20its%20version%20information%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22355%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064682%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064682%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121034i39584B226EEB6A6F%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20355px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20Nvappfilter%20was%20now%20my%20primary%20suspect%2C%20but%20I%20didn%E2%80%99t%20have%20direct%20evidence%20that%20it%20was%20responsible.%20I%20continued%20to%20use%20the%20system%20and%20followed%20the%20same%20debugging%20steps%20on%20the%20next%20several%20crashes.%20Whether%20it%20was%20IE%2C%20WMP%20or%20a%20game%2C%20the%20faulting%20stack%20was%20always%20the%20same%2C%20with%20Nvappfilter%20calling%20HeapFree.%20That%E2%80%99s%20still%20not%20conclusive%20proof%2C%20but%20the%20anecdotal%20evidence%20was%20pretty%20compelling.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20At%20that%20point%20I%20went%20to%20see%20if%20there%20were%20updates%20for%20Nvappfilter%2C%20but%20I%20wasn%E2%80%99t%20sure%20what%20software%20package%20it%20was%20associated%20with.%20I%20entered%20its%20name%20in%20a%20Web%20search%20and%20discovered%20that%20it%E2%80%99s%20part%20of%20the%20nVidia%E2%80%99s%20FirstPacket%20feature%20that%20prioritizes%20game%20traffic%20and%20that%E2%80%99s%20included%20in%20the%20nForce%20motherboard%E2%80%99s%20software%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22373%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064683%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064683%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121035i65FB9CA06750F8BE%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20373px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20I%20went%20to%20nVidia%E2%80%99s%20site%20and%20downloaded%20the%20most%20recent%20nForce%20driver%20package%2C%20but%20it%20failed%20to%20update%20Nvappfilter.dll%20and%20I%20continued%20to%20have%20the%20crashes.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20nVidia%20control%20panel%20offers%20no%20way%20that%20I%20could%20find%20to%20prevent%20Nvappfilter%20from%20loading%2C%20so%20my%20only%20recourse%20was%20to%20manually%20disable%20it.%20I%20wasn%E2%80%99t%20using%20the%20FirstPacket%20feature%2C%20which%20I%20had%20previously%20been%20unaware%20of%2C%20so%20I%20wouldn%E2%80%99t%20miss%20it%2C%20but%20first%20I%20had%20to%20figure%20out%20how%20it%20configured%20Windows%20to%20load%20it.%20For%20that%20I%20turned%20to%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb963902.aspx%22%20mce_href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb963902.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAutoruns%20%3C%2FA%3E%2C%20where%20I%20found%20references%20to%20Nvappfilter%E2%80%99s%2032-bit%20and%2064-bit%20versions%20in%20the%20Winsock%20Layered%20Service%20Provider%20(LSP)%20section%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22248%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064684%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F3064684%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121036i1E0D8C58A09AE42D%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20248px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20I%20deleted%20all%20of%20Nvappfilter%E2%80%99s%20entries%2C%20rebooted%20the%20system%20and%20have%20been%20crash-free%20since.%20While%20I%20was%20writing%20this%20post%2C%20I%20checked%20again%20for%20nForce%20software%20updates%20to%20see%20if%20Nvappfilter%20had%20been%20updated.%20The%20latest%20version%20doesn%E2%80%99t%20look%20like%20it%20includes%20Nvappfilter%20or%20any%20other%20Winsock%20LSP%2C%20so%20assuming%20Nvappfilter%20was%20at%20fault%2C%20it%E2%80%99s%20no%20longer%20an%20issue.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20One%20other%20thing%20I%E2%80%99ve%20done%20since%20I%20investigated%20these%20crashes%20is%20take%20advantage%20of%20Vista%20SP1%E2%80%99s%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fbb513638(VS.85).aspx%22%20mce_href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fbb513638(VS.85).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%E2%80%9Clocal%20dumps%E2%80%9D%20functionality%20%3C%2FA%3Eso%20that%20I'll%26nbsp%3Bautomatically%26nbsp%3Bget%20a%26nbsp%3Bcrash%20dump%20to%20investigate%20for%20any%20application%20crash%20I%20experience.%20If%20you%20create%20a%20key%20named%20HKLM%5CSoftware%5CMicrosoft%5CWindows%5CWindows%20Error%20Reporting%5CLocalDumps%2C%20WerFault%20will%20always%20save%20a%20dump.%20Crashes%20go%20by%20default%20into%20%25LOCALAPPDATA%25%5CCrashdumps%2C%20but%20you%20can%20override%20that%20with%20a%20Registry%20value%20and%20also%20specify%20a%20limit%20on%20the%20number%20of%20crashes%20WerFault%20will%20keep.%20%3C%2FFONT%3E%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-723654%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TechNet%20on%20Jun%2002%2C%202008%20When%20I%20experienced%20a%20crash%20in%20Internet%20Explorer%20(IE)%20on%20my%20home%2064-bit%20gaming%20system%20one%20day%2C%20I%20chalked%20it%20up%20to%20random%20third-party%20plug-in%20memory%20corruption.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-723654%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMark%20Russinovich%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TechNet on Jun 02, 2008

When I experienced a crash in Internet Explorer (IE) on my home 64-bit gaming system one day, I chalked it up to random third-party plug-in memory corruption. I moved on, but a few days later had another crash in IE. Then, Windows Media Player (WMP) started crashing every third or fourth time I used it:




Crashes in different programs seemed to point at a more fundamental problem. I had over-clocked the CPU, so I speculated that the rash of crashes were a side-effect of CPU overheating and reluctantly dialed back the clock multiplier to the factory specification. To my dismay, however, the crashes continued. My next theory was that I had bad RAM, but the Windows Vista Memory Diagnostic failed to identify any problems.


Hardware problems seemingly cleared, my next move was to look at the process crash dumps to see if they held any clues. But first I had to find a crash dump to look at. Windows XP’s Application Error Reporting process always generates a dump before showing you the application crash dialog, and you can find the location of the dump by clicking to see the report details and then viewing the report’s technical information:




Windows Vista’s corresponding dialog doesn’t offer a way to get at a report’s technical information and it doesn’t generate a dump unless Microsoft’s Windows Error Reporting (WER) servers request it, which they only do for crashes reported in high volumes. Fortunately, WerFault, the process that presents the dialog, keeps the crashed process around until you press the Close Program button, which offers an opportunity to attach to the process with a debugger and examine it. You can see WerFault’s handle to a crashed Windows Media Player process in Process Explorer :




The next time I had a crash, I launched WinDbg, the Windows Debugger from the Debugging Tools for Windows package that’s available for free download from Microsoft. After making sure that I had the symbol configuration set to point at the Microsoft public symbol server (e.g. srv*c:\symbols*http://msdl.microsoft.com/download/symbols) in the Symbol File Path dialog, I went to the File menu and selected the “Attach to a Process...” menu entry:




That opens the WinDbg process selection dialog, which I scrolled through to find the crashed process. When I selected the process, WinDbg opened it and presented the same interface it does when it loads a crash dump, except that when you load a crash dump, you can execute the !analyze debugger command that uses heuristics to try and pinpoint the cause of the crash; when you perform a debugger attach, an analysis will just tell you what you already know, that you attached with a debugger:




Looking for a potential cause of a crash when attached requires looking at the stack of each thread in the process, so I opened the Processes and Threads and Call Stack dialogs in the View menu:




I started examining threads by selecting the first entry in the threads dialog:




The WinDbg command window usually grays and says “Busy” as WinDbg pulls symbols from the symbol server, after which the call stack dialog populates with the function nesting of the selected thread at the time of the crash. I examined each thread’s stack in turn, moving between threads by pressing the down arrow and then the enter key, hunting for a stack that had function names with the words “exception” or “fault” in them. Near the end of the list I came across this one:




I noticed that the top of the list is full of functions with “Exception” in their names. Looking down the list (up the stack), I saw that a function in Nvappfilter called Kernel32.dll’s HeapFree function, leading to the crash. The exception in the heap’s free routines meant that either the caller passed a bogus heap address or that the heap was already corrupted when the function executed. If a Windows DLL had been the caller I would have suspected the latter, but in this case the caller was a third-party DLL, which I could tell by the fact that WinDbg couldn’t locate symbol information for it and hence didn’t know the names of the functions within it. I confirmed that by issuing the lm (list module) command to look at its version information:




Nvappfilter was now my primary suspect, but I didn’t have direct evidence that it was responsible. I continued to use the system and followed the same debugging steps on the next several crashes. Whether it was IE, WMP or a game, the faulting stack was always the same, with Nvappfilter calling HeapFree. That’s still not conclusive proof, but the anecdotal evidence was pretty compelling.


At that point I went to see if there were updates for Nvappfilter, but I wasn’t sure what software package it was associated with. I entered its name in a Web search and discovered that it’s part of the nVidia’s FirstPacket feature that prioritizes game traffic and that’s included in the nForce motherboard’s software:




I went to nVidia’s site and downloaded the most recent nForce driver package, but it failed to update Nvappfilter.dll and I continued to have the crashes.


The nVidia control panel offers no way that I could find to prevent Nvappfilter from loading, so my only recourse was to manually disable it. I wasn’t using the FirstPacket feature, which I had previously been unaware of, so I wouldn’t miss it, but first I had to figure out how it configured Windows to load it. For that I turned to Autoruns , where I found references to Nvappfilter’s 32-bit and 64-bit versions in the Winsock Layered Service Provider (LSP) section:




I deleted all of Nvappfilter’s entries, rebooted the system and have been crash-free since. While I was writing this post, I checked again for nForce software updates to see if Nvappfilter had been updated. The latest version doesn’t look like it includes Nvappfilter or any other Winsock LSP, so assuming Nvappfilter was at fault, it’s no longer an issue.


One other thing I’ve done since I investigated these crashes is take advantage of Vista SP1’s “local dumps” functionality so that I'll automatically get a crash dump to investigate for any application crash I experience. If you create a key named HKLM\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps, WerFault will always save a dump. Crashes go by default into %LOCALAPPDATA%\Crashdumps, but you can override that with a Registry value and also specify a limit on the number of crashes WerFault will keep.