![]() |
Svchost.exe crashing randomly - Need expert help! |
Post Reply
|
Page <1 56789> |
| Author | |||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Topic: Svchost.exe crashing randomly - Need expert help!Posted: 18 April 2008 at 11:07am |
||||
Did you press F5 after the initial breakin?
What do you mean by this?
If you exited WinDbg, the debuggee was probably terminated.
With noninvasive, WinDbg warns:
However, it will be desirable to receive debug events, so an invasive attach would seem to be appropriate. Visual Studio is likely doing this, so continue using it.
Do you get any messages referring to first-chance exceptions or the like in the output window?
How long since the last crash (aside from any that were the result of playing with debuggers)? Is it atypical to go that amount of time between crashes?
|
|||||
|
Daily affirmation:
net helpmsg 4006 |
|||||
![]() |
|||||
Jackcolt
Groupie
Joined: 01 April 2008 Location: Denmark Online Status: Offline Posts: 73 |
Post Options
Quote Reply
Posted: 18 April 2008 at 8:12am |
||||
|
To be honest I don't know. I can't see an option to select it in Visual Studio 2008.
Just figured out I could use WinDBG instead where I can select it. What should I select? EDIT: Just tried invasive mode... I can't do anything while it's on and after I finally manage to get it to stop, svchost crashes(silently meaning no message from dumpprep or drwatson) So yeah, I've been using non invasive. Edited by Jackcolt - 18 April 2008 at 8:18am |
|||||
![]() |
|||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 18 April 2008 at 3:53am |
||||
Did you attach invasively, or noninvasively? |
|||||
|
Daily affirmation:
net helpmsg 4006 |
|||||
![]() |
|||||
Jackcolt
Groupie
Joined: 01 April 2008 Location: Denmark Online Status: Offline Posts: 73 |
Post Options
Quote Reply
Posted: 18 April 2008 at 3:36am |
||||
|
Well so far nothing. It's just modules being loaded and unloaded, along with threads exitting with code 0. It haven't crashed yet, so there still might be something of interest.
I also found an old file which caused trouble when I wanted to search for stuff in that folder(would yield any results and it took a lot resources). It's 70 MB big zip file which has thousands of folders with around 30.000 smaller files. When I look back, the trouble may have started since I got that file. I've tried copying the file to my laptop to see if it will cause a crash on it. Kinda strange hoping for it crash :D I'll keep the debugger running though. Hopefully I can get something good if it wasn't that(as nothing points towards it anyway) |
|||||
![]() |
|||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 17 April 2008 at 7:03pm |
||||
|
How's it going with the debugger attached to the NETSVCS instance of SVCHOST? Are there ever any first chance exceptions? Any interesting debug output in the debugger's output window?
|
|||||
|
Daily affirmation:
net helpmsg 4006 |
|||||
![]() |
|||||
Jackcolt
Groupie
Joined: 01 April 2008 Location: Denmark Online Status: Offline Posts: 73 |
Post Options
Quote Reply
Posted: 15 April 2008 at 12:42pm |
||||
|
Doh! :P Yeah, it was the handle view.
It looks like it won't crash today. So I guess I'll just wait till it crashes with trying any of the other approaches. Yeah, thanks for the link. That could prove very useful if I can't get anything valuable from Visual Studio. I think troubleshooting with removing third party software and following my hunch about how I've organized my folders will be postponed till I've tried the other options. I btw tried to get that other persons e-mail(the one with the seemingly same problem)... but apparently it doesn't exist. I might try to register on one of the forums he is on and try to pm him. |
|||||
![]() |
|||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 15 April 2008 at 7:36am |
||||
Will be interesting to see how many interruptions you get (if there are a lot of handled / first-chance exceptions, the debugger may break frequently until you ignore the exceptions).
Yes, it appears to be quite similar. Not much there, though, and the thread seems dead.
There's nothing that definitively or even remotely points at AVG. Just trying to eliminate third-party software...
Still nothing interesting showing up in the event logs?
Wonder if an option may be to use a part of the technique described here:
For each service in the NETSVCS group at [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost\netsvcs], change the ImagePath to point to a copy of the SVCHOST.EXE file - SVCHOST_NETSVCS.EXE, for example. Then, set up various GFLAGS for SVCHOST_NETSVCS.EXE, and attach a debugger to SVCHOST_NETSVCS.EXE after rebooting. Initial thought for gflags would be turning on full page heap.
(Of course, you would want to take detailed notes about the changes you make to your system, so you can back out of them...)
|
|||||
|
Daily affirmation:
net helpmsg 4006 |
|||||
![]() |
|||||
Jackcolt
Groupie
Joined: 01 April 2008 Location: Denmark Online Status: Offline Posts: 73 |
Post Options
Quote Reply
Posted: 15 April 2008 at 6:48am |
||||
|
I've checked the loaded modules using visual studio 2008 and nothing seems to out of the ordinary(all windows dlls)
I've attached a debugger(visual studio 2008) to the svchost -netsvcs process... maybe it prints some valuable information to the console. I also found another person with the same problem : http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.help_and_support/2007-08/msg00996.html He doesn't use AVG. I will try Avast later on if I can't get other solutions to work though. I'm more and more getting the feeling that it might be some stupid bug, like having certain amount of avi files with thumbnails(I know this caused trouble with crashing explorer.exe with a friend) Anyways, hopefully the debugger will print some information that can be used for anything. |
|||||
![]() |
|||||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 15 April 2008 at 3:20am |
||||
I know it's a pain, but it will be interesting to see the results...
|
|||||
|
Daily affirmation:
net helpmsg 4006 |
|||||
![]() |
|||||
Jackcolt
Groupie
Joined: 01 April 2008 Location: Denmark Online Status: Offline Posts: 73 |
Post Options
Quote Reply
Posted: 14 April 2008 at 11:13pm |
||||
|
Ah okay, not such a "freak bug" after all
![]() Yeah when I get home, I'll see what I can find in the address space of svchost.exe -netsvcs. My only concern, is that if it was another app screwing it up, would we be able to see it? To me, I might be wrong, it would seem some application has messed with something in the OS. I'll also try changing from AVG to Avast. |
|||||
![]() |
|||||
Post Reply
|
Page <1 56789> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |