SimpleDateFormat thread problems?
Jeff Sturm
jsturm@one-point.com
Mon May 10 19:18:00 GMT 2004
On 10 May 2004, Tom Tromey wrote:
> Vladimir> Related question: Is there a way to dump the stack trace for a given
> Vladimir> thread? I can only seem to look at the stack trace for the currently
> Vladimir> running thread.
>> In gdb, just switch to the thread you're interested in with the
> "thread" command, then "bt".
>> Outside of gdb, no, I don't think there is a way.
You can also attach gdb to a running java process to get a thread dump, at
least on NPTL targets (I seem to remember it didn't work on LinuxThreads).
I wonder if core files now preserve thread stacks... hey, it seems to
work! At least on my FC1 box.
So you can either a) start a process with gdb, b) attach to an already
running process or c) force a core dump and debug that.
Jeff
More information about the Java
mailing list