Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Number of attachments :
      2

      Description

      Running ant test on a fresh clone of jruby master, jruby-launcher rspecs fail on Ubuntu.

      See attached log for full build log.

      kingtim@tumult:~/workspace/jruby$ ant test
      Buildfile: /home/kingtim/workspace/jruby/build.xml
      
      init:
      
      prepare-bin-jruby:
      
      jar:
      
      init:
      
      create-dirs:
      
      copy-resources:
      
      update-constants:
           [echo] Updating Constants.java
           [echo] ...using git revision = 42e7d46, tzdata = 2010k
           [copy] Copying 1 file to /home/kingtim/workspace/jruby/src_gen/org/jruby/runtime
           [copy] Copying 1 file to /home/kingtim/workspace/jruby/src_gen/org/jruby/runtime
      
      _uc_internal_:
      
      prepare:
      
      compile-annotation-binder:
      
      compile-jruby:
            [apt] Since compiler setting isn't classic or modern, ignoring fork setting.
            [apt] Since compiler setting isn't classic or modern, ignoring fork setting.
      
      emma:
      
      instrument:
      
      generate-method-classes:
      
      _gmc_internal_:
      
      generate-unsafe:
      
      _gu_internal_:
      
      compile:
      
      unzip-native-libs:
      
      jar-jruby:
      
      add-emma-jars:
      
      compile-test:
          [javac] Compiling 169 source files to /home/kingtim/workspace/jruby/build/classes/test
          [javac] Note: Some input files use unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
      
      copy-test-files:
           [copy] Copying 18 files to /home/kingtim/workspace/jruby/build/classes/test
      
      install-dev-gems:
      
      install-jruby-launcher-gem:
           [java] INFO:  gem "jruby-launcher" is not installed
           [java] Building native extensions.  This could take a while...
      *** glibc detected *** /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby: free(): invalid pointer: 0x089984d0 ***
      ======= Backtrace: =========
      /lib/i386-linux-gnu/libc.so.6(+0x6ebc2)[0x401afbc2]
      /lib/i386-linux-gnu/libc.so.6(+0x6f862)[0x401b0862]
      /lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0x401b394d]
      /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0x400e480f]
      /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1b)[0x400cbc4b]
      /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby[0x804b9df]
      /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby[0x80496f3]
      /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x4015a113]
      /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby[0x8049731]
      ======= Memory map: ========
      08048000-08053000 r-xp 00000000 08:01 3040045    /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
      08053000-08054000 r-xp 0000a000 08:01 3040045    /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
      08054000-08055000 rwxp 0000b000 08:01 3040045    /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
      08998000-089b9000 rwxp 00000000 00:00 0          [heap]
      40000000-4001e000 r-xp 00000000 08:01 4202084    /lib/i386-linux-gnu/ld-2.13.so
      4001e000-4001f000 r-xp 0001d000 08:01 4202084    /lib/i386-linux-gnu/ld-2.13.so
      4001f000-40020000 rwxp 0001e000 08:01 4202084    /lib/i386-linux-gnu/ld-2.13.so
      40020000-40021000 r-xp 00000000 00:00 0          [vdso]
      40021000-40024000 rwxp 00000000 00:00 0 
      40037000-40115000 r-xp 00000000 08:01 4603092    /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      40115000-40116000 ---p 000de000 08:01 4603092    /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      40116000-4011a000 r-xp 000de000 08:01 4603092    /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      4011a000-4011b000 rwxp 000e2000 08:01 4603092    /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      4011b000-40122000 rwxp 00000000 00:00 0 
      40122000-4013e000 r-xp 00000000 08:01 4202083    /lib/i386-linux-gnu/libgcc_s.so.1
      4013e000-4013f000 r-xp 0001b000 08:01 4202083    /lib/i386-linux-gnu/libgcc_s.so.1
      4013f000-40140000 rwxp 0001c000 08:01 4202083    /lib/i386-linux-gnu/libgcc_s.so.1
      40140000-40141000 rwxp 00000000 00:00 0 
      40141000-402b7000 r-xp 00000000 08:01 4202087    /lib/i386-linux-gnu/libc-2.13.so
      402b7000-402b9000 r-xp 00176000 08:01 4202087    /lib/i386-linux-gnu/libc-2.13.so
      402b9000-402ba000 rwxp 00178000 08:01 4202087    /lib/i386-linux-gnu/libc-2.13.so
      402ba000-402bd000 rwxp 00000000 00:00 0 
      402bd000-402e5000 r-xp 00000000 08:01 4202091    /lib/i386-linux-gnu/libm-2.13.so
      402e5000-402e6000 r-xp 00028000 08:01 4202091    /lib/i386-linux-gnu/libm-2.13.so
      402e6000-402e7000 rwxp 00029000 08:01 4202091    /lib/i386-linux-gnu/libm-2.13.so
      402e7000-402e9000 rwxp 00000000 00:00 0 
      40300000-40321000 rwxp 00000000 00:00 0 
      40321000-40400000 ---p 00000000 00:00 0 
      bf900000-bf921000 rw-p 00000000 00:00 0          [stack]
      .
      .
      .
      [multiple failures omitted]
      .
      .
      .
      *** glibc detected *** /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby: free(): invalid pointer: 0x09c4e4e8 ***
      ======= Backtrace: =========
      /lib/i386-linux-gnu/libc.so.6(+0x6ebc2)[0x401afbc2]
      /lib/i386-linux-gnu/libc.so.6(+0x6f862)[0x401b0862]
      /lib/i386-linux-gnu/libc.so.6(cfree+0x6d)[0x401b394d]
      /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0x400e480f]
      /usr/lib/i386-linux-gnu/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x1b)[0x400cbc4b]
      /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby[0x804b9df]
      /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby[0x80496f3]
      /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x4015a113]
      /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby[0x8049731]
      ======= Memory map: ========
      08048000-08053000 r-xp 00000000 08:01 3040045    /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
      08053000-08054000 r-xp 0000a000 08:01 3040045    /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
      08054000-08055000 rwxp 0000b000 08:01 3040045    /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
      09c4e000-09c6f000 rwxp 00000000 00:00 0          [heap]
      40000000-4001e000 r-xp 00000000 08:01 4202084    /lib/i386-linux-gnu/ld-2.13.so
      4001e000-4001f000 r-xp 0001d000 08:01 4202084    /lib/i386-linux-gnu/ld-2.13.so
      4001f000-40020000 rwxp 0001e000 08:01 4202084    /lib/i386-linux-gnu/ld-2.13.so
      40020000-40021000 r-xp 00000000 00:00 0          [vdso]
      40021000-40024000 rwxp 00000000 00:00 0 
      40037000-40115000 r-xp 00000000 08:01 4603092    /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      40115000-40116000 ---p 000de000 08:01 4603092    /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
      40116000-4011a000 r-xp 000de000 08:01 4603092    /usr/          got: nil (using =~)
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-expectations-2.7.0/lib/rspec/expectations/fail_with.rb:32:in `fail_with'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-expectations-2.7.0/lib/rspec/matchers/operator_matcher.rb:48:in `fail_with_message'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-expectations-2.7.0/lib/rspec/matchers/operator_matcher.rb:70:in `__delegate_operator'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-expectations-2.7.0/lib/rspec/matchers/operator_matcher.rb:60:in `eval_match'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-expectations-2.7.0/lib/rspec/matchers/operator_matcher.rb:29:in `=~'
           [java]      # org/jruby/RubyProc.java:269:in `call'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/spec/launcher_spec.rb:195:in `(root)'
           [java]      # org/jruby/RubyKernel.java:1918:in `instance_eval'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/example.rb:51:in `run'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/example.rb:110:in `with_around_hooks'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/example.rb:48:in `run'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/example_group.rb:306:in `run_examples'
           [java]      # org/jruby/RubyArray.java:2322:in `collect'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/example_group.rb:302:in `run_examples'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/example_group.rb:274:in `run'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/command_line.rb:24:in `run'
           [java]      # org/jruby/RubyArray.java:2322:in `collect'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/command_line.rb:24:in `run'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/reporter.rb:12:in `report'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/command_line.rb:21:in `run'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:80:in `run_in_process'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:69:in `run'
           [java]      # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/rspec-core-2.7.0/lib/rspec/core/runner.rb:10:in `autorun'
           [java]      # org/jruby/RubyProc.java:269:in `call'
           [java]      # org/jruby/RubyProc.java:223:in `call'
           [java] 
           [java] Finished in 1.32 seconds
           [java] 36 examples, 1 failure
           [java] 
           [java] Failed examples:
           [java] 
           [java] rspec ./spec/launcher_spec.rb:190 # JRuby native launcher should include a bare : or ; at the end of the classpath, to include PWD in the path
           [java] rake aborted!
           [java] ruby /home/kingtim/workspace/jruby/bin/jruby -S rspec ./spec/launcher_spec.rb failed
           [java] 
           [java] Tasks: TOP => default => spec
           [java] (See full trace by running task with --trace)
           [java] make: *** [test] Error 1
           [java] 
           [java] 
           [java] Gem files will remain installed in /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java for inspection.
           [java] Results logged to /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/./gem_make.out
      
      BUILD FAILED
      /home/kingtim/workspace/jruby/build.xml:824: Java returned: 1
      
      Total time: 29 seconds
      
      1. ant_test.log
        90 kB
        Tim King
      2. hs_err_pid17591.log
        17 kB
        Tim King

        Activity

        Hide
        Tim King added a comment -

        Not sure if this is any help or not, but when I run

        /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby
        

        I get the following error... I have also attached the hs_err_pid17591.log file.

        kingtim@tumult:~/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java$ /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby 
        java.lang.ClassNotFoundException 
         - klass: 'java/lang/ClassNotFoundException'
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        #  Internal Error (exceptions.cpp:397), pid=17591, tid=3063679856
        #  fatal error: ExceptionMark destructor expects no pending exceptions
        #
        # JRE version: 6.0_29-b11
        # Java VM: Java HotSpot(TM) Server VM (20.4-b02 mixed mode linux-x86 )
        # An error report file with more information is saved as:
        # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/hs_err_pid17591.log
        #
        # If you would like to submit a bug report, please visit:
        #   http://java.sun.com/webapps/bugreport/crash.jsp
        #
        Aborted
        
        Show
        Tim King added a comment - Not sure if this is any help or not, but when I run /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby I get the following error... I have also attached the hs_err_pid17591.log file. kingtim@tumult:~/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java$ /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/build/home/bin/jruby java.lang.ClassNotFoundException - klass: 'java/lang/ClassNotFoundException' # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (exceptions.cpp:397), pid=17591, tid=3063679856 # fatal error: ExceptionMark destructor expects no pending exceptions # # JRE version: 6.0_29-b11 # Java VM: Java HotSpot(TM) Server VM (20.4-b02 mixed mode linux-x86 ) # An error report file with more information is saved as: # /home/kingtim/workspace/jruby/lib/ruby/gems/1.8/gems/jruby-launcher-1.0.9-java/hs_err_pid17591.log # # If you would like to submit a bug report, please visit: # http: //java.sun.com/webapps/bugreport/crash.jsp # Aborted
        Hide
        Sébastien Le Callonnec added a comment -

        I have also been getting the same error when running ant test. I was also getting the following error, which looked like a jruby-launcher memory leak:

        *** glibc detected *** /home/sebastien/dev/jruby-launcher/build/home/bin/jruby: free(): invalid pointer: 0x0000000001a575f0 ***
        ======= Backtrace: =========
        /lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x2b9e7d730a96]
        /lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x2b9e7d734d7c]
        /home/sebastien/dev/jruby-launcher/build/home/bin/jruby[0x403c82]
        /home/sebastien/dev/jruby-launcher/build/home/bin/jruby[0x401ecf]
        /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x2b9e7d6d930d]
        /home/sebastien/dev/jruby-launcher/build/home/bin/jruby[0x401f19]
        ======= Memory map: ========
        00400000-0040a000 r-xp 00000000 08:03 4595870                            /home/sebastien/dev/jruby-launcher/build/home/bin/jruby
        0060a000-0060b000 r--p 0000a000 08:03 4595870                            /home/sebastien/dev/jruby-launcher/build/home/bin/jruby
        0060b000-0060c000 rw-p 0000b000 08:03 4595870                            /home/sebastien/dev/jruby-launcher/build/home/bin/jruby
        01a57000-01a78000 rw-p 00000000 00:00 0                                  [heap]
        2b9e7cf77000-2b9e7cf98000 r-xp 00000000 08:15 9965200                    /lib/x86_64-linux-gnu/ld-2.13.so
        2b9e7cf98000-2b9e7cf9b000 rw-p 00000000 00:00 0 
        2b9e7d197000-2b9e7d198000 r--p 00020000 08:15 9965200                    /lib/x86_64-linux-gnu/ld-2.13.so
        2b9e7d198000-2b9e7d19a000 rw-p 00021000 08:15 9965200                    /lib/x86_64-linux-gnu/ld-2.13.so
        2b9e7d19a000-2b9e7d282000 r-xp 00000000 08:15 11541874                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
        2b9e7d282000-2b9e7d482000 ---p 000e8000 08:15 11541874                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
        2b9e7d482000-2b9e7d48a000 r--p 000e8000 08:15 11541874                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
        2b9e7d48a000-2b9e7d48c000 rw-p 000f0000 08:15 11541874                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
        2b9e7d48c000-2b9e7d4a1000 rw-p 00000000 00:00 0 
        2b9e7d4a1000-2b9e7d4b6000 r-xp 00000000 08:15 9965234                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        2b9e7d4b6000-2b9e7d6b5000 ---p 00015000 08:15 9965234                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        2b9e7d6b5000-2b9e7d6b6000 r--p 00014000 08:15 9965234                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        2b9e7d6b6000-2b9e7d6b7000 rw-p 00015000 08:15 9965234                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        2b9e7d6b7000-2b9e7d6b8000 rw-p 00000000 00:00 0 
        2b9e7d6b8000-2b9e7d84d000 r-xp 00000000 08:15 9965213                    /lib/x86_64-linux-gnu/libc-2.13.so
        2b9e7d84d000-2b9e7da4c000 ---p 00195000 08:15 9965213                    /lib/x86_64-linux-gnu/libc-2.13.so
        2b9e7da4c000-2b9e7da50000 r--p 00194000 08:15 9965213                    /lib/x86_64-linux-gnu/libc-2.13.so
        2b9e7da50000-2b9e7da51000 rw-p 00198000 08:15 9965213                    /lib/x86_64-linux-gnu/libc-2.13.so
        2b9e7da51000-2b9e7da57000 rw-p 00000000 00:00 0 
        2b9e7da57000-2b9e7dada000 r-xp 00000000 08:15 9965243                    /lib/x86_64-linux-gnu/libm-2.13.so
        2b9e7dada000-2b9e7dcd9000 ---p 00083000 08:15 9965243                    /lib/x86_64-linux-gnu/libm-2.13.so
        2b9e7dcd9000-2b9e7dcda000 r--p 00082000 08:15 9965243                    /lib/x86_64-linux-gnu/libm-2.13.so
        2b9e7dcda000-2b9e7dcdb000 rw-p 00083000 08:15 9965243                    /lib/x86_64-linux-gnu/libm-2.13.so
        2b9e7dcdb000-2b9e7dcdf000 rw-p 00000000 00:00 0 
        2b9e80000000-2b9e80021000 rw-p 00000000 00:00 0 
        2b9e80021000-2b9e84000000 ---p 00000000 00:00 0 
        7fff64fe3000-7fff65004000 rw-p 00000000 00:00 0                          [stack]
        7fff6510f000-7fff65110000 r-xp 00000000 00:00 0                          [vdso]
        ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
        

        Running the exe through valgrind, I have been able to fix these issues on Ubuntu 11.10 64. Here are the commits:

        https://github.com/tychobrailleur/jruby-launcher/commit/7fe33244b48fb6c38e7d30c869f0edb3fe6ea0ab
        https://github.com/tychobrailleur/jruby-launcher/commit/7c263a10fd1f6d7dabb65e96ef1576a224e6c560

        jruby-launcher specs now pass for me:

        
        rake
        rake/gempackagetask is deprecated.  Use rubygems/package_task instead
        ..............................
        
        Finished in 1.314 seconds
        
        30 examples, 0 failures
        

        I’d be interested to know whether this fixes the problem for others too.

        Show
        Sébastien Le Callonnec added a comment - I have also been getting the same error when running ant test . I was also getting the following error, which looked like a jruby-launcher memory leak: *** glibc detected *** /home/sebastien/dev/jruby-launcher/build/home/bin/jruby: free(): invalid pointer: 0x0000000001a575f0 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x2b9e7d730a96] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x2b9e7d734d7c] /home/sebastien/dev/jruby-launcher/build/home/bin/jruby[0x403c82] /home/sebastien/dev/jruby-launcher/build/home/bin/jruby[0x401ecf] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x2b9e7d6d930d] /home/sebastien/dev/jruby-launcher/build/home/bin/jruby[0x401f19] ======= Memory map: ======== 00400000-0040a000 r-xp 00000000 08:03 4595870 /home/sebastien/dev/jruby-launcher/build/home/bin/jruby 0060a000-0060b000 r--p 0000a000 08:03 4595870 /home/sebastien/dev/jruby-launcher/build/home/bin/jruby 0060b000-0060c000 rw-p 0000b000 08:03 4595870 /home/sebastien/dev/jruby-launcher/build/home/bin/jruby 01a57000-01a78000 rw-p 00000000 00:00 0 [heap] 2b9e7cf77000-2b9e7cf98000 r-xp 00000000 08:15 9965200 /lib/x86_64-linux-gnu/ld-2.13.so 2b9e7cf98000-2b9e7cf9b000 rw-p 00000000 00:00 0 2b9e7d197000-2b9e7d198000 r--p 00020000 08:15 9965200 /lib/x86_64-linux-gnu/ld-2.13.so 2b9e7d198000-2b9e7d19a000 rw-p 00021000 08:15 9965200 /lib/x86_64-linux-gnu/ld-2.13.so 2b9e7d19a000-2b9e7d282000 r-xp 00000000 08:15 11541874 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 2b9e7d282000-2b9e7d482000 ---p 000e8000 08:15 11541874 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 2b9e7d482000-2b9e7d48a000 r--p 000e8000 08:15 11541874 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 2b9e7d48a000-2b9e7d48c000 rw-p 000f0000 08:15 11541874 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 2b9e7d48c000-2b9e7d4a1000 rw-p 00000000 00:00 0 2b9e7d4a1000-2b9e7d4b6000 r-xp 00000000 08:15 9965234 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b9e7d4b6000-2b9e7d6b5000 ---p 00015000 08:15 9965234 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b9e7d6b5000-2b9e7d6b6000 r--p 00014000 08:15 9965234 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b9e7d6b6000-2b9e7d6b7000 rw-p 00015000 08:15 9965234 /lib/x86_64-linux-gnu/libgcc_s.so.1 2b9e7d6b7000-2b9e7d6b8000 rw-p 00000000 00:00 0 2b9e7d6b8000-2b9e7d84d000 r-xp 00000000 08:15 9965213 /lib/x86_64-linux-gnu/libc-2.13.so 2b9e7d84d000-2b9e7da4c000 ---p 00195000 08:15 9965213 /lib/x86_64-linux-gnu/libc-2.13.so 2b9e7da4c000-2b9e7da50000 r--p 00194000 08:15 9965213 /lib/x86_64-linux-gnu/libc-2.13.so 2b9e7da50000-2b9e7da51000 rw-p 00198000 08:15 9965213 /lib/x86_64-linux-gnu/libc-2.13.so 2b9e7da51000-2b9e7da57000 rw-p 00000000 00:00 0 2b9e7da57000-2b9e7dada000 r-xp 00000000 08:15 9965243 /lib/x86_64-linux-gnu/libm-2.13.so 2b9e7dada000-2b9e7dcd9000 ---p 00083000 08:15 9965243 /lib/x86_64-linux-gnu/libm-2.13.so 2b9e7dcd9000-2b9e7dcda000 r--p 00082000 08:15 9965243 /lib/x86_64-linux-gnu/libm-2.13.so 2b9e7dcda000-2b9e7dcdb000 rw-p 00083000 08:15 9965243 /lib/x86_64-linux-gnu/libm-2.13.so 2b9e7dcdb000-2b9e7dcdf000 rw-p 00000000 00:00 0 2b9e80000000-2b9e80021000 rw-p 00000000 00:00 0 2b9e80021000-2b9e84000000 ---p 00000000 00:00 0 7fff64fe3000-7fff65004000 rw-p 00000000 00:00 0 [stack] 7fff6510f000-7fff65110000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Running the exe through valgrind, I have been able to fix these issues on Ubuntu 11.10 64. Here are the commits: https://github.com/tychobrailleur/jruby-launcher/commit/7fe33244b48fb6c38e7d30c869f0edb3fe6ea0ab https://github.com/tychobrailleur/jruby-launcher/commit/7c263a10fd1f6d7dabb65e96ef1576a224e6c560 jruby-launcher specs now pass for me: rake rake/gempackagetask is deprecated. Use rubygems/package_task instead .............................. Finished in 1.314 seconds 30 examples, 0 failures I’d be interested to know whether this fixes the problem for others too.
        Hide
        Tim King added a comment -

        Patching Sébastien's fixes into my workspace fixes the problem for me.

        jruby-launcher specs are passing with those changes.

        Show
        Tim King added a comment - Patching Sébastien's fixes into my workspace fixes the problem for me. jruby-launcher specs are passing with those changes.
        Hide
        Hiro Asari added a comment -

        Hi, Sébastian,

        Your fork is a bit old (off vvs/jruby-launcher rather than jruby/jruby-launcher), but it appears that the commits apply cleanly to the current repo.

        I created a branch (https://github.com/jruby/jruby-launcher/tree/jruby-6313); can you guys double check that it works to your satisfaction? If so (and with your consensus), I will merge them to the master branch. (Additionally, it seems that it merits a 1.0.11 release.)

        Thanks.

        Show
        Hiro Asari added a comment - Hi, Sébastian, Your fork is a bit old (off vvs/jruby-launcher rather than jruby/jruby-launcher), but it appears that the commits apply cleanly to the current repo. I created a branch ( https://github.com/jruby/jruby-launcher/tree/jruby-6313 ); can you guys double check that it works to your satisfaction? If so (and with your consensus), I will merge them to the master branch. (Additionally, it seems that it merits a 1.0.11 release.) Thanks.
        Hide
        Sébastien Le Callonnec added a comment -

        Ok, I am now working off jruby-launcher.

        I have checked the patch applied in the jruby-6313 branch, and it works fine:

        rake
        /home/sebastien/.rvm/rubies/jruby-1.6.5.1/bin/jruby -S rspec ./spec/launcher_spec.rb
        ....................................
        
        Finished in 1.91 seconds
        36 examples, 0 failures
        

        Thanks!

        Show
        Sébastien Le Callonnec added a comment - Ok, I am now working off jruby-launcher . I have checked the patch applied in the jruby-6313 branch, and it works fine: rake /home/sebastien/.rvm/rubies/jruby-1.6.5.1/bin/jruby -S rspec ./spec/launcher_spec.rb .................................... Finished in 1.91 seconds 36 examples, 0 failures Thanks!
        Hide
        Hiro Asari added a comment -

        I pushed jruby-launcher 1.0.11 with SĂ©bastian's commits.

        Show
        Hiro Asari added a comment - I pushed jruby-launcher 1.0.11 with SĂ©bastian's commits.
        Hide
        Tim King added a comment -

        This is working now for me. Cheers.

        Show
        Tim King added a comment - This is working now for me. Cheers.

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Tim King
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: