Skip to content

jruby/thread_dump.rb seems to be broken #8431

@fxposter

Description

@fxposter

Environment Information

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc): 9.4.9.0
  • Operating system and platform (e.g. uname -a): linux/macos

Expected Behavior

if you try to kill -usr2 PID this simple program:

require 'jruby/thread_dump'
sleep 1000

You should get a thread dump printed to stderr/stdout.

Actual Behavior

Instead this error is printed:

* Thread: main
* Stack:
ArgumentError: wrong number of arguments (given 3, expected 2)
  <main> at /opt/jruby/lib/ruby/stdlib/jruby/thread_dump.rb:34
    each at org/jruby/java/proxies/ArrayJavaProxy.java:461
  <main> at /opt/jruby/lib/ruby/stdlib/jruby/thread_dump.rb:10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions