repeated popen call may throw NULL pointer exception
----------------------------------------------------

                 Key: JRUBY-2951
                 URL: http://jira.codehaus.org/browse/JRUBY-2951
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.3
         Environment: Linux amd64 Sun jre 1.6
            Reporter: Michal Suchanek
         Attachments: testt2_.rb

For me the attached code locks up within few iterations, and sometimes throws a 
NULL pointer exception.

ava.lang.NullPointerException
       at org.jruby.util.io.OpenFile.finalize(OpenFile.java:241)
       at org.jruby.util.io.OpenFile.cleanup(OpenFile.java:226)
       at org.jruby.RubyIO.close2(RubyIO.java:1684)
       at org.jruby.RubyIO.close(RubyIO.java:1662)
       at org.jruby.RubyIOInvoker$close_method_0_0.call(Unknown Source)
       at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:123)
       at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:333)
       at ruby.Users.hramrach.testt2.rescue_2$RUBY$__rescue__(testt2.rb)
       at ruby.Users.hramrach.testt2.method__0$RUBY$try_analyze(testt2.rb:16)
       at 
ruby.Users.hramrach.testt2Invokermethod__0$RUBY$try_analyzeOpt.call(Unknown
Source)
       at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:134)
       at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:111)
       at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:282)
       at ruby.Users.hramrach.testt2.block_3$RUBY$__block__(testt2.rb:21)
       at 
ruby.Users.hramrach.testt2BlockCallback$block_3$RUBY$__block__xx1.call(Unknown
Source)
       at org.jruby.runtime.CompiledBlock.yield(CompiledBlock.java:100)
       at org.jruby.runtime.Block.yield(Block.java:100)
       at org.jruby.RubyInteger.upto(RubyInteger.java:122)
       at org.jruby.RubyIntegerInvoker$upto_method_1_0.call(Unknown Source)
       at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:159)
       at 
org.jruby.runtime.CallSite$InlineCachingCallSite.callIter(CallSite.java:415)
       at ruby.Users.hramrach.testt2.__file__(testt2.rb:20)
       at ruby.Users.hramrach.testt2.__file__(testt2.rb)
       at ruby.Users.hramrach.testt2.load(testt2.rb)
       at org.jruby.Ruby.runScript(Ruby.java:541)
       at org.jruby.Ruby.runNormally(Ruby.java:454)
       at org.jruby.Ruby.runFromMain(Ruby.java:327)
       at org.jruby.Main.run(Main.java:194)
       at org.jruby.Main.run(Main.java:91)
       at org.jruby.Main.main(Main.java:82)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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