I am trying to debug a ruby program that periodically hangs when run
under jruby. It runs okay under MRI (1.8.7 and 1.9.1).
Is there a way for me to install a signal handler that prints all of the
thread callstacks and exits? This would help me pinpoint where in the
code it is hanging.
I was thinking something along the lines of this:
need to use ABRT since jruby doesn’t see a ctrl-c and I need to send
a kill -9 to exit
trap ‘ABRT’ do
@threads.each do |thread|
# print callstack?
I’d appreciate any help in this matter. Thank you…
To unsubscribe from this list, please visit: