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 1.7.20 causes EBAD while installing default gems #3696

Closed
eregon opened this issue Feb 24, 2016 · 3 comments
Closed

JRuby 1.7.20 causes EBAD while installing default gems #3696

eregon opened this issue Feb 24, 2016 · 3 comments

Comments

@eregon
Copy link
Member

eregon commented Feb 24, 2016

See for instance https://travis-ci.org/jruby/jruby/jobs/111468477 (seems very reproducible, all last 10 builds failed with EBADF)

Environment

  • JRuby version: Maven Polyglot "using jruby 1.7.20"

This tends to reproduce the problem on my linux machine:

rm -rf lib/target/rubygems && MAVEN_OPTS="-Xmx50m" ./mvnw -pl lib

The travis build above change truffle's java version to 8 but it is also reproducible without changing any pom (with enough tries).

How can I debug this or fix it?

Log:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building JRuby Lib Setup 9.1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ jruby-stdlib ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ jruby-stdlib ---
[INFO] 
[INFO] --- polyglot-maven-plugin:0.1.11:execute (install_gems) @ jruby-stdlib ---
using jruby 1.7.20
install gems unless already installed
/home/eregon/.m2/repository/rubygems/jruby-openssl/0.9.15/jruby-openssl-0.9.15.gem
Errno::EBADF: Bad file descriptor - Bad file descriptor
            read at org/jruby/RubyIO.java:3095
            read at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package/tar_reader/entry.rb:126
            read at org/jruby/ext/zlib/JZlibRubyGzipReader.java:339
            read at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package/tar_reader/entry.rb:126
  extract_tar_gz at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:370
            open at org/jruby/RubyIO.java:1183
            open at org/jruby/RubyKernel.java:350
  extract_tar_gz at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:369
            each at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package/tar_reader.rb:64
  extract_tar_gz at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:351
     open_tar_gz at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:443
            wrap at org/jruby/ext/zlib/RubyGzipFile.java:108
     open_tar_gz at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:440
  extract_tar_gz at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:350
   extract_files at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:331
            each at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package/tar_reader.rb:64
   extract_files at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:328
            open at org/jruby/RubyIO.java:1183
            open at org/jruby/RubyKernel.java:350
    with_read_io at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package/file_source.rb:29
   extract_files at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/package.rb:325
   extract_files at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/installer.rb:722
         install at /home/eregon/.m2/repository/org/jruby/jruby-stdlib/1.7.20/jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/installer.rb:248
        eval_pom at /home/eregon/code/jruby/lib/pom.rb:121
            each at org/jruby/RubyArray.java:1613
        eval_pom at /home/eregon/code/jruby/lib/pom.rb:111
            call at org/jruby/RubyProc.java:271
@mkristian
Copy link
Member

@eregon change this https://github.com/jruby/jruby/blob/master/.mvn/extensions.xml#L6 to version 0.1.15 which uses jruby-9k under the hood which does not show this EBADF

if this does not help let me know

@enebo enebo added this to the Won't Fix milestone May 16, 2017
@enebo
Copy link
Member

enebo commented May 16, 2017

1.7.x is EOL and this will not get fixed. Marking WONTFIX

@enebo enebo closed this as completed May 16, 2017
@eregon
Copy link
Member Author

eregon commented May 16, 2017

I think fa4846f fixes this so indeed it can be closed.

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

4 participants