for (RubyThread th : thrs) {
System.err.println("\n" + th);
RubyException exc = new RubyException(runtime, runtime.getRuntimeError(), "");
ThreadContext tc = threadService.getThreadContextForThread(th);
if (tc != null) {
exc.setBacktraceData(new BacktraceData(th.javaBacktrace(), tc.createBacktrace2(0, false), false, false, Gather.NORMAL));
exc.printBacktrace(System.err);
} else {
System.err.println(" [no longer alive]");
}
}