Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Can you crash a Java App to generate java.crash.log?



That works - thanks!  Now we just wait for it to hang again.  :)

-----Original Message-----
From: java-dev-bounces+markbrown=email@hidden
[mailto:java-dev-bounces+markbrown=email@hidden] On Behalf Of
email@hidden
Sent: Thursday, September 30, 2004 11:46 AM
To: email@hidden
Subject: Re: Can you crash a Java App to generate java.crash.log?


Mark Brown wrote:
| In a previous post, I talked about our JComboBox problem, where at times
the
| cursor will turn into a permanent pinwheel and hang the application.  We
| can't seem to reproduce the problem while running through the debugger.
|  
| I was wondering...is there a way to make the application crash at this
point
| so a java.crash.log can be generated, that will tell us which thread is
| hung?
|  
| I tried using "kill -6 PID" (-6 is ABORT), but no log was generated.

I'm not much surprised. "SIGABRT" is generated when a program commits
voluntary suicide, by calling the abort() routine. That generally doesn't
count as a "crash". Me, I'd try a signal that actually says things are
broken: SIGILL (4-illegal instruction) or SIGBUS (10-bus error [illegal
memory address]).

You might also do "kill -QUIT" first, which will cause the JVM to produce a
full set of stack traces (one for each thread), written to the standard
output (which is the console log for bundled applications).

Glen Fisher


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Can you crash a Java App to generate java.crash.log? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.