New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trapping reserved signals doesn't print a meaningful message #3208

Closed
kyrylo opened this Issue Aug 1, 2015 · 1 comment

Comments

Projects
None yet
4 participants
@kyrylo
Contributor

kyrylo commented Aug 1, 2015

Let's trap a reserved signal:

trap(:ILL) {}

Output from MRI:

ArgumentError: can't trap reserved signal: SIGILL

Output from JRuby 9.0.0.0

ArgumentError: malformed format string - %S
from org/jruby/RubyString.java:1168:in `%'

It seems like JRuby tries to print the error, but fails for some reason.

Freaky added a commit to Freaky/jruby that referenced this issue Aug 1, 2015

Correct a format string in Signal#trap.
Fixes #3208: Trapping reserved signals doesn't print a meaningful
message
@Freaky

This comment has been minimized.

Show comment
Hide comment
@Freaky

Freaky Aug 1, 2015

Contributor

Simple format string error from holding down shift too long:

 raise ArgumentError.new("can't trap reserved signal: SIG%S" % sig)
Contributor

Freaky commented Aug 1, 2015

Simple format string error from holding down shift too long:

 raise ArgumentError.new("can't trap reserved signal: SIG%S" % sig)

kares added a commit to kares/jruby that referenced this issue Nov 13, 2015

Correct a format string in Signal#trap.
Fixes #3208: Trapping reserved signals doesn't print a meaningful
message

@kares kares closed this in 18df48a Nov 13, 2015

@kares kares added this to the JRuby 9.0.5.0 milestone Nov 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment