IO#stat on non-file objects breaks JRuby hard
---------------------------------------------

                 Key: JRUBY-2072
                 URL: http://jira.codehaus.org/browse/JRUBY-2072
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
         Environment: Latest JRuby 1.1RC1 (r5843)
            Reporter: Vladimir Sizikov
            Priority: Critical
             Fix For: JRuby 1.1RC2


IO#stat on non-file objects breaks JRuby hard:

{noformat}
p $stdin.stat
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up 
function 'fstat': /lib/libc.so.6: undefined symbol: fstat
        at com.sun.jna.Function.<init>(Function.java:116)
        at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:219)
        at com.sun.jna.Library$Handler.invoke(Library.java:191)
        at $Proxy0.fstat(Unknown Source)
        at org.jruby.ext.posix.BaseNativePOSIX.fstat(BaseNativePOSIX.java:30)
        at org.jruby.RubyFileStat.setup(RubyFileStat.java:94)
        at org.jruby.RubyFileStat.newFileStat(RubyFileStat.java:88)
        at org.jruby.Ruby.newFileStat(Ruby.java:2069)
        at org.jruby.RubyIO.stat(RubyIO.java:2234)
        at org.jruby.RubyIOInvoker$stat_method_0_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:181)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:331)
        at ruby.opt.work.samples.io_minus_stat_dot_rb.__file__(io-stat.rb:1)
        at ruby.opt.work.samples.io_minus_stat_dot_rb.load(io-stat.rb)
        at org.jruby.Ruby.runScript(Ruby.java:492)
        at org.jruby.Ruby.runNormally(Ruby.java:412)
        at org.jruby.Ruby.runFromMain(Ruby.java:292)
        at org.jruby.Main.run(Main.java:142)
        at org.jruby.Main.run(Main.java:88)
        at org.jruby.Main.main(Main.java:79)

{noformat}

-- 
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