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?



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: 
 >Can you crash a Java App to generate java.crash.log? (From: "Mark Brown" <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.