Alex created JRUBY-6268:
---------------------------

             Summary: JRuby throws java.lang.NullPointerException when native C 
API library is called
                 Key: JRUBY-6268
                 URL: https://jira.codehaus.org/browse/JRUBY-6268
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.2
         Environment: $ uname -a
Linux alex 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011 x86_64 
GNU/Linux

$ jruby -v
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM) 64-Bit 
Server VM 1.6.0_26) [linux-amd64-java]
            Reporter: Alex
            Assignee: Thomas E Enebo


RubyBasicObject.java:648:in `getRuntime': java.lang.NullPointerException
        from JRuby.java:70:in `callRubyMethod0'
        from Native.java:-2:in `callMethod1'
        from NativeMethod1.java:48:in `call'
        from CachingCallSite.java:137:in `call'
        from sample_bsd.rb:31:in `block_2$RUBY$__file__'
        from sample_bsd$block_2$RUBY$__file__:65535:in `call'
        from CompiledBlock.java:112:in `yield'
        from CompiledBlock.java:95:in `yield'
        from Block.java:130:in `yield'
        from RubyFixnum.java:252:in `times'
        from RubyFixnum$i$0$0$times.gen:65535:in `call'
        from CachingCallSite.java:272:in `cacheAndCall'
        from CachingCallSite.java:114:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from sample_bsd.rb:28:in `block_1$RUBY$__file__'
        from sample_bsd$block_1$RUBY$__file__:65535:in `call'
        from CompiledBlock.java:112:in `yield'
        from CompiledBlock.java:95:in `yield'
        from CompiledBlock.java:75:in `yieldSpecific'
        from Block.java:99:in `yieldSpecific'
        from ZYieldNode.java:25:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:75:in `INTERPRET_METHOD'
        from InterpretedMethod.java:169:in `call'
        from DefaultMethod.java:171:in `call'
        from WrapperMethod.java:74:in `call'
        from CachingCallSite.java:272:in `cacheAndCall'
        from CachingCallSite.java:114:in `callBlock'
        from CachingCallSite.java:118:in `call'
        from CallNoArgBlockPassNode.java:53:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:75:in `INTERPRET_METHOD'
        from InterpretedMethod.java:169:in `call'
        from DefaultMethod.java:171:in `call'
        from AliasMethod.java:81:in `call'
        from CachingCallSite.java:272:in `cacheAndCall'
        from CachingCallSite.java:114:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from sample_bsd.rb:27:in `block_0$RUBY$__file__'
        from sample_bsd$block_0$RUBY$__file__:65535:in `call'
        from CompiledBlock.java:112:in `yield'
        from CompiledBlock.java:95:in `yield'
        from Block.java:130:in `yield'
        from YieldNode.java:113:in `interpret'
        from LocalAsgnNode.java:123:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from BlockNode.java:71:in `interpret'
        from ASTInterpreter.java:75:in `INTERPRET_METHOD'
        from InterpretedMethod.java:298:in `call'
        from DefaultMethod.java:219:in `call'
        from WrapperMethod.java:86:in `call'
        from CachingCallSite.java:332:in `cacheAndCall'
        from CachingCallSite.java:216:in `callBlock'
        from CachingCallSite.java:220:in `call'
        from FCallSpecialArgBlockPassNode.java:42:in `interpret'
        from NewlineNode.java:104:in `interpret'
        from ASTInterpreter.java:75:in `INTERPRET_METHOD'
        from InterpretedMethod.java:169:in `call'
        from DefaultMethod.java:171:in `call'
        from WrapperMethod.java:74:in `call'
        from CachingCallSite.java:272:in `cacheAndCall'
        from CachingCallSite.java:114:in `callBlock'
        from CachingCallSite.java:123:in `callIter'
        from sample_bsd.rb:26:in `__file__'
        from sample_bsd.rb:-1:in `load'
        from Ruby.java:671:in `runScript'
        from Ruby.java:575:in `runNormally'
        from Ruby.java:424:in `runFromMain'
        from Main.java:278:in `doRunFromMain'
        from Main.java:198:in `internalRun'
        from Main.java:164:in `run'
        from Main.java:148:in `run'
        from Main.java:128:in `main'

I am trying to use IP2Location ruby client with jruby 
http://ip2location.com/developers/ruby. Resolving IP address to geo location in 
loop fails consistently after 5070 iterations. Sometimes I get SIGSEGV from JVM 
:(

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f105cace000, pid=602, tid=139708317136640
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 
compressed oops)
# Problematic frame:
# J  org.jruby.RubyBasicObject.getRuntime()Lorg/jruby/Ruby;


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