{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3634","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3634/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3634/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3634/events","html_url":"https://github.com/jruby/jruby/issues/3634","id":130648392,"number":3634,"title":"JRuby 1.7.24 - EBADF Bad file descriptor ","user":{"login":"kimptoc","id":38746,"avatar_url":"https://avatars.githubusercontent.com/u/38746?v=3","gravatar_id":"","url":"https://api.github.com/users/kimptoc","html_url":"https://github.com/kimptoc","followers_url":"https://api.github.com/users/kimptoc/followers","following_url":"https://api.github.com/users/kimptoc/following{/other_user}","gists_url":"https://api.github.com/users/kimptoc/gists{/gist_id}","starred_url":"https://api.github.com/users/kimptoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimptoc/subscriptions","organizations_url":"https://api.github.com/users/kimptoc/orgs","repos_url":"https://api.github.com/users/kimptoc/repos","events_url":"https://api.github.com/users/kimptoc/events{/privacy}","received_events_url":"https://api.github.com/users/kimptoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T11:03:55Z","updated_at":"2016-03-04T04:24:38Z","closed_at":null,"body":"Since switching to 1.7.24 (from 1.7.23), running on Windows with JDK 1.7.0_80-b15.  Also run this on Linux and did not see the issue there.\r\n \r\nOn this line – a global constant is defined via the call to a function that returns a string.  There is an identical call to the same method that is done in the parent class (run_integration_tests.rb, line 112)\r\n```\r\nFIX_MESSAGE_FILE = EmarketsCheckAdaptor::EmarketsFixConfig::fix_data_dictionary_file\r\n```\r\nIf I move the constant into a class, it does not have a problem.  Looks like I am no longer allowed to redefine constants . \r\n``` \r\n10:53:38:332|0091-00038:TH3 ERROR: RunIntegrationTests:Errno::EBADF:Bad file descriptor - Bad file descriptor\r\n10:53:38:333|0053-00038:TH3 INFO: org/jruby/RubyIO.java:1411:in `write'\r\n10:53:38:333|0134-00038:TH3 INFO: C:/rbidev/IonPlatformPostMerge/config/RaboWriter/integration_tests/tests/test_emarkets_check_adaptor.rb:23:in `(root)'\r\n10:53:38:333|0059-00038:TH3 INFO: org/jruby/RubyKernel.java:1040:in `require'\r\n10:53:38:333|0196-00038:TH3 INFO: /C:/Users/kimptonc/.m2/repository/org/jruby/jruby-complete/1.7.24/jruby-complete-1.7.24.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n10:53:38:333|0152-00038:TH3 INFO: file:/C:/Users/kimptonc/.m2/repository/org/jruby/jruby-complete/1.7.24/jruby-complete-1.7.24.jar!/jruby/kernel19/kernel.rb:1:in `(root)'\r\n10:53:38:333|0163-00038:TH3 INFO: file:/C:/Users/kimptonc/.m2/repository/org/jruby/jruby-complete/1.7.24/jruby-complete-1.7.24.jar!/jruby/kernel19/kernel.rb:13:in `require_relative'\r\n10:53:38:333|0053-00038:TH3 INFO: org/jruby/RubyProc.java:281:in `call'\r\n10:53:38:333|0123-00038:TH3 INFO: C:/rbidev/IonPlatformPostMerge/config/RaboWriter/integration_tests/run_integration_tests.rb:113:in `(root)'\r\n```\r\n\r\nI have changed the code to not make them global constants and that fixes things."},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/192094838","html_url":"https://github.com/jruby/jruby/issues/3634#issuecomment-192094838","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3634","id":192094838,"user":{"login":"headius","id":10135,"avatar_url":"https://avatars.githubusercontent.com/u/10135?v=3","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T04:24:38Z","updated_at":"2016-03-04T04:24:38Z","body":"It sounds like you've worked around it, but can we see the code that caused this? I'm not sure where I could find \"run_integration_tests.rb, line 112\" or the other assignment of this constant, but I'd really like to  figure out the root problem here. If we're not properly namespacing constants, that's a serious bug.\r\n\r\n@kimptoc Can you provide more information?"}}