Memcached.gem will not run on JRuby
-----------------------------------

                 Key: JRUBY-5654
                 URL: http://jira.codehaus.org/browse/JRUBY-5654
             Project: JRuby
          Issue Type: Bug
          Components: C Extensions
            Reporter: Evan Weaver
            Assignee: Thomas E Enebo


I updated memcached.gem to compile properly under JRuby. However, using JRuby 
head (RVM doesn't include cext support in JRuby 1.6.0), it doesn't actually run:

  /p/fauna/memcached master $ gdb --args ruby test/unit/memcached_test.rb 
  (gdb) r
  Starting program: /Users/eweaver/.rvm/rubies/jruby-head/bin/ruby 
test/unit/memcached_test.rb
  Invalid memory access of location 0x72ebf3f009 rip=0x1010abbf9
  Program received signal EXC_BAD_ACCESS, Could not access memory.
  Reason: KERN_INVALID_ADDRESS at address: 0x00000072ebf3f009
  [Switching to process 11218]
  0x00000001010abbf9 in JVM_MonitorWait ()
  (gdb) bt
  #0  0x00000001010abbf9 in JVM_MonitorWait ()
  #1  0x000000010119eb12 in JVM_Socket ()
  #2  0x000000010d05ecf9 in JNIEnv_::CallObjectMethod ()
  #3  0x000000010d06b28c in rb_undef_method ()
  #4  0x000000010becf401 in SWIG_Ruby_define_class [inlined] () at 
/Volumes/Projects/fauna/memcached/ext/rlibmemcached_wrap.c:1498
  #5  0x000000010becf401 in Init_rlibmemcached () at rlibmemcached_wrap.c:13121
  #6  0x000000010d065f59 in Java_org_jruby_cext_Native_callInit ()
  #7  0x0000000102214cc8 in ?? ()
  ...
  #87 0x0000000102204438 in ?? ()
  #88 0x000000010109eda7 in JVM_Lseek ()
  #89 0x000000010109eb7a in JVM_Lseek ()
  #90 0x00000001010c1af1 in JVM_FindLoadedClass ()
  #91 0x00000001010c1999 in JVM_FindLoadedClass ()
  #92 0x0000000100002d23 in ArgParser::constructBootClassPath ()
  #93 0x0000000100003270 in ArgParser::setupMaxHeapAndStack ()
  #94 0x00007fff812774f6 in _pthread_start ()
  #95 0x00007fff812773a9 in thread_start ()
  (gdb) 

Any clues? Memcached.gem 1.2.4.pre is the version you want (or current git 
master).



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