Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Darwin kernel hang -- how to diagnose?

 
   Mac (Home) -> General Discussion RSS
Next:  StarLOGO sur Mac  
Author Message
SM Ryan

External


Since: Aug 18, 2005
Posts: 16



(Msg. 1) Posted: Wed May 16, 2007 7:22 pm
Post subject: Darwin kernel hang -- how to diagnose?
Archived from groups: comp>unix>programmer, others (more info?)

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.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
If your job was as meaningless as theirs, wouldn't you go crazy too?
Back to top
Login to vote
Herb Petschauer

External


Since: May 17, 2007
Posts: 1



(Msg. 2) Posted: Thu May 17, 2007 1:09 am
Post subject: Re: Darwin kernel hang -- how to diagnose? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <134mmfbcuj47q79 RemoveThis @corp.supernews.com>,
SM Ryan <wyrmwif RemoveThis @tango-sierra-oscar-foxtrot-tango.fake.org> 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.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Is KQueue still broken on Darwin? - I have a program that gets in an uninterruptible wait for hours and days. I'm using sockets and kqueue. I have never had problems with sockets before, but kqueue used to crash the kernel. Does anyone know if kqueue still borks the machine? kill -KILL..

[BINDINGS] NSTableView vs. NSUserDefaultsController - I've already posted the following message to Apple's cocoa-dev mailing list, so if you subscribe to that list or are a regular reader of CocoaBuilder.com, you've already seen this. I'm posting here since I've appeared to have violated list..

Any tame MAC users out there ? - Hi all, could anyone tell me why the HTML generated from an XSL/XML merge would not display on an apple Mac. http://www.bedfords.co.uk/pages/search/search.asp (and just click "search") The page works fine on IE5,IE6, Mozilla and Firefox. Th...

[ANN] ADHOC/MacHack sessions announcement & the Transition.. - Apple is moving to Intel -- Don't Panic! Come to ADHOC and learn what developers need to do. Held in Dearborn, Michigan from July 27th through 31st (a little over a month after WWDC), ADHOC has always been focused on giving developers the edge when i...

Use of stty - Has anyone here used stty to set the baud rate of a serial port in a script or just from the command line ? I am trying to use "screen <ser port path>" which gives you a serial (VT100) terminal through the selected port. In my case I am...
       Mac (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact