Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Darwin kern...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 941 of 1040
Post > Topic >>

Re: Darwin kernel hang -- how to diagnose?

by Herb Petschauer <bogvardi+nntp@[EMAIL PROTECTED] > May 17, 2007 at 01:09 AM

In article <134mmfbcuj47q79@[EMAIL PROTECTED]
>,
 SM Ryan <wyrmwif@[EMAIL PROTECTED]
> wrote:

> I have program that somehow gets the process into uninterruptible
> wait status (U is in the ps -x display), and the process is hung
> and unkillable. The machine then hangs on shutdown requiring a
> power cycle to restart.
> 
> I doubt Apple will provide any help in diagnosing this, so are there
> any tools to let a programmer who has never done kernel programming
> at least find out where in the kernel the process is hung? If I can
> find say a sequence of section (2) calls that cause this, then at
> least I can avoid that sequence; or do more thread locking. Or
> something. At the moment I have no idea where to start.
> 

Hi

1) try running "sample" on your hung process, that should tell you where 
the process is hung up.  I don't know if "sample" is on your system 
without dev tools installed.  Open a terminal window and type "sample", 
if it's installed you'll get directions.

2)  ssh into your machine from another machine, execute "sudo tail -f 
/var/log/system.log" and see if the kernel is logging failure messages 
in the system log.  Depending on where in your shutdown sequence the 
hang is occurring your ssh session may get terminated before you see 
anything useful.
 
3)  Boot in verbose (command-V) or single user mode (command-S during 
startup).  The kernel may be logging failure messages that you're not 
seeing and they'll show up in both of these modes.  Verbose would be 
where I start.

4) File a bug.

Cheers,
-H.

-- 
To reply via email, replace "LastNameHere" with my last name.
 




 2 Posts in Topic:
Darwin kernel hang -- how to diagnose?
SM Ryan <wyrmwif@[EMAI  2007-05-16 19:22:19 
Re: Darwin kernel hang -- how to diagnose?
Herb Petschauer <bogva  2007-05-17 01:09:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:26:54 CST 2008.