jruby/thread_dump fails in JRuby 1.7.2 #641

Closed
ginkel opened this Issue Apr 16, 2013 · 1 comment

Projects

None yet

2 participants

@ginkel
ginkel commented Apr 16, 2013

After sending a SIGUSR2 to a JRuby process that requires jruby/thread_dump, an error is written to STDERR before the process aborts:

Ruby Thread Dump
================
* Thread: RubyThread-6: [...]/message_queue.rb:27
* Stack:

NameError: no method 'getBacktraceData' for arguments (org.jruby.runtime.ThreadContext,java.lang.Thread,org.jruby.RubyBoolean.True) on Java::OrgJrubyRuntimeBacktrace::
/home/tg/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/thread_dump.rb:34:in `(root)'
org/jruby/java/proxies/ArrayJavaProxy.java:138:in `each'
/home/tg/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/jruby/thread_dump.rb:12:in `(root)'
org/jruby/RubyProc.java:261:in `call'
org/jruby/RubyProc.java:249:in `call'

JRuby version details:

jruby 1.7.2 (1.9.3p327) 2013-01-30 fffffff on Java HotSpot(TM) 64-Bit Server VM 1.7.0_17-b02 [linux-amd64]
@BanzaiMan BanzaiMan closed this in 94833b8 Jun 18, 2013
@BanzaiMan
Member

This should work now.

$ jruby -r 'jruby/thread_dump' -e 'sleep 50'
Ruby Thread Dump
================
* Thread: main
* Stack:
RuntimeError: thread dump
   sleep at org/jruby/RubyKernel.java:845
  (root) at -e:1


Ruby Thread Dump
================
* Thread: main
* Stack:
RuntimeError: thread dump
   sleep at org/jruby/RubyKernel.java:845
  (root) at -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment