-
Notifications
You must be signed in to change notification settings - Fork 185
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
Array#pack raises an internal exception when called with <L
or >L
#2791
Comments
It seems a bug that CRuby accepts them before and in fact it seems to ignore them (!):
TruffleRuby works fine with the correct So TruffleRuby should raise a proper Ruby exception though for this case, probably an ArgumentError. |
As @andrykonchin found, there is actually a warning on CRuby with $VERBOSE=true:
Which seems somewhat related to https://bugs.ruby-lang.org/issues/19108. |
Fixed in e2940ef. Thank you for reporting! The decision is to warn unconditionally in Ruby 3.2 and to raise an exception in the next Ruby version. The issue - https://bugs.ruby-lang.org/issues/19150. |
I ran into an issue with
Array#pack
when trying to get my test suite passing on truffleruby-22.3.0. I was able to isolate the issue to callingArray#pack
with<L
or>L
.Steps To Reproduce
Expected Result
"\x00\x00\x00\x00"
Actual Result
truffleruby: an internal exception escaped out of the interpreter,
please report it to https://github.com/oracle/truffleruby/issues.
Additional Information
truffleruby 22.3.0, like ruby 3.0.3, GraalVM CE Native [x86_64-linux]
The text was updated successfully, but these errors were encountered: