You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to run my project on truffleruby and got this error multiple times.
#25 36.43 Bundler::GemRequireError: There was an error while trying to load the gem 'oj'.
#25 36.43 Gem Load Error is: Unsupported Floating Point Type: f128 (com.oracle.truffle.llvm.runtime.except.LLVMParserException)
This is likely a C extension defining something as a long double which is a 128 floating point number on systems which use the Arm Architecture Procedure Call Standard, as Aarch64 Linux does. oj appears to use long double as a simple way to reduce their error when parsing numbers, we might be able to patch it to avoid this problem. I'm not entirely sure why they seem to have written their own float parser, I'll take a look at the history and see if I can figure it out.
I'll take a look at the history and see if I can figure it out.
Maybe it's the famous dtoa() DoS because it's not linear and creates arbitrarily big integers when parsing long floats (IIRC)? I think an usual fix is to just limit the length of the float to parse and if it's just between 2 floats then whatever cut at a reasonable length.
Tried to run my project on truffleruby and got this error multiple times.
This same error is with those gems too
I use arm64 version on docker (created docker image based on debian by myself). Not sure if it fails on x64 because I'm stuck with my M1 for now.
https://github.com/oracle/truffleruby/releases/download/vm-21.3.0/truffleruby-21.3.0-linux-aarch64.tar.gz
Full stack trace
The text was updated successfully, but these errors were encountered: