Skip to content
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

JRuby 9.0.0.0 on OpenBSD-i386 raises EINVAL unexpectedly when using IO#pos or IO#rewind #3194

Open
jeremyevans opened this issue Jul 28, 2015 · 0 comments

Comments

@jeremyevans
Copy link
Contributor

$ jruby -ve "File.open('foo.test', 'wb').pos"
jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 OpenJDK Server VM 24.80-b11 on 1.7.0_80-b15 +jit [OpenBSD-i386]
Errno::EINVAL: Invalid argument - foo.test
    pos at org/jruby/RubyIO.java:1535
  <top> at -e:1
$ jruby -ve "f = File.open('foo.test', 'rb'); f.read; f.rewind"
jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 OpenJDK Server VM 24.80-b11 on 1.7.0_80-b15 +jit [OpenBSD-i386]
Errno::EINVAL: Invalid argument - foo.test
  rewind at org/jruby/RubyIO.java:1739
   <top> at -e:1

This only happens on OpenBSD-i386, it does not happen on OpenBSD-amd64. I've also tried using JDK 1.8.0, but receive the same error with that, here's the jruby -v line for that:

jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 OpenJDK Server VM 25.45-b02 on 1.8.0_45-b14 +jit [OpenBSD-i386]

Any ideas where to look for the fix? Is this something that could be fixed in jnr-posix?

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

No branches or pull requests

2 participants