Hugh Cayless created JRUBY-6356:
-----------------------------------

             Summary: Bad file descriptor error under JDK 1.7
                 Key: JRUBY-6356
                 URL: https://jira.codehaus.org/browse/JRUBY-6356
             Project: JRuby
          Issue Type: Bug
          Components: Application Error, Rails WAR Deployment
    Affects Versions: JRuby 1.6.2
         Environment: Red Hat EL 2.6.32-220.el6.x86_64, JDK 1.7 update 2
            Reporter: Hugh Cayless


I have a Rails app that uses Grit to interact with a git repo. Under JDK 1.6 
everything works, but if I switch to 1.7u2, I'm seeing the exception:

Errno::EBADF: Bad file descriptor - Bad file descriptor

Relevant snippet of the backtrace:

org/jruby/RubyIO.java:1982:in `close'
org/jruby/RubyIO.java:3664:in `popen3'
:
vendor/gems/grit-2.0.0/lib/grit/git.rb:248:in `sh' 
(see 
https://github.com/papyri/sosol/blob/v1.0.17-rc4/vendor/gems/grit-2.0.0/lib/grit/git.rb#L248)
vendor/gems/grit-2.0.0/lib/grit/git.rb:240:in `run'
vendor/gems/grit-2.0.0/lib/grit/git.rb:215:in `method_missing'

The error is consistent. It happens every time I try to access the page that 
calls this function.

If I switch the app back to JDK 1.6, everything works again.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to