Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In JRuby, how do I determine what causes java.lang.ThreadDeath?

While running unit tests for some code that interacts with temporary files in JRuby, I sometimes get the following:

Exception: java.lang.ThreadDeath thrown from the UncaughtExceptionHandler in thread "Thread-6395"

It doesn't seem to cause any problems, but what's going on, and how can I determine where it's occurring? I tried turning on -d, but that didn't give me a stack trace for the exception.

like image 451
Andrew Grimm Avatar asked Nov 14 '12 03:11

Andrew Grimm


1 Answers

FWIW: This could be related to http://jira.codehaus.org/browse/JRUBY-7074 .

I'm seeing this Thread-Death output occasionally with a JRuby programm that doesn't use backticks, but calls system.

like image 182
Anonymous Avatar answered Sep 21 '22 15:09

Anonymous