[Bug 584] New: ARM Zero c++ interpreter freecol crash using -Xincgc

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue Nov 2 07:23:37 PDT 2010


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=584

           Summary: ARM Zero c++ interpreter freecol crash using -Xincgc
           Product: IcedTea
           Version: 6-1.9
          Platform: all
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Zero
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: xerxes at zafena.se


testcase:
install freecol package under ubuntu 10.10 armel
run freecol
start new game
crash happens before the "world map" are displayed.

workaround:
edit /usr/games/freecol and remove -Xincgc JVM option

java -version:
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9) (6b20-1.9-0ubuntu1)
OpenJDK Zero VM (build 17.0-b16, interpreted mode)

freecol version: 0.9.2+dfsg-2_all

triage:
i have currently only been able to reproduce this bug on ubuntu armel systems

Gdb backtrace indicating some sort of stack corruption:
   1.
      (gdb) run
   2.
      Starting program: /media/flap/java/22okt-zero-cacao/bin/java -classpath
:/usr/share/java/miglayout.jar:/usr/share/java/wstx-lgpl.jar:/usr/share/java/freecol.jar:/usr/share/java/cortado.jar:/usr/share/java/commons-cli.jar
-Djava.net.preferIPv4Stack=true -Xincgc -Xmx180M net.sf.freecol.FreeCol
--freecol-data /usr/share/games/freecol
   3.
      [Thread debugging using libthread_db enabled]
   4.
      process 8686 is executing new program:
/media/flap/java/22okt-zero-cacao/bin/java
   5.
      [Thread debugging using libthread_db enabled]
   6.
      [New Thread 0x4068f470 (LWP 8689)]
   7.
      [New Thread 0x42847470 (LWP 8690)]
   8.
      [New Thread 0x428c7470 (LWP 8691)]
   9.
      [New Thread 0x52955470 (LWP 8692)]
  10.
      [New Thread 0x52b96470 (LWP 8693)]
  11.
      [New Thread 0x52d16470 (LWP 8694)]
  12.
      [New Thread 0x52e96470 (LWP 8695)]
  13.
      [New Thread 0x53336470 (LWP 8696)]
  14.
      [New Thread 0x534b6470 (LWP 8697)]
  15.
      [New Thread 0x53636470 (LWP 8698)]
  16.
      [New Thread 0x536b6470 (LWP 8699)]
  17.
      [New Thread 0x53b8e470 (LWP 8700)]
  18.
      [New Thread 0x53e53470 (LWP 8701)]
  19.
      [New Thread 0x53fd3470 (LWP 8702)]
  20.
      [New Thread 0x54153470 (LWP 8705)]
  21.

  22.
      Program received signal SIGSEGV, Segmentation fault.
  23.
      [Switching to Thread 0x4068f470 (LWP 8689)]
  24.
      BytecodeInterpreter::run (istate=0x4068e5b8)
  25.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp:1601
  26.
      1601 SET_STACK_INT(ary->length(), -1);
  27.
      (gdb) bt
  28.
      #0 BytecodeInterpreter::run (istate=0x4068e5b8)
  29.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp:1601
  30.
      #1 0x40258146 in CppInterpreter::main_loop (recurse=<value optimized
out>, __the_thread__=0x1dc10)
  31.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:81
  32.
      #2 0x40258c50 in CppInterpreter::normal_entry (method=<value optimized
out>, UNUSED=<value optimized out>,
  33.
      __the_thread__=0x1dc10)
  34.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:48
  35.
      #3 0x40258166 in invoke (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  36.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/entry_zero.hpp:56
  37.
      #4 invoke_method (recurse=<value optimized out>, __the_thread__=0x1dc10)
  38.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/interpreter_zero.hpp:28
  39.
      #5 CppInterpreter::main_loop (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  40.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:95
  41.
      #6 0x40258c50 in CppInterpreter::normal_entry (method=<value optimized
out>, UNUSED=<value optimized out>,
  42.
      __the_thread__=0x1dc10)
  43.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:48
  44.
      #7 0x40258166 in invoke (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  45.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/entry_zero.hpp:56
  46.
      #8 invoke_method (recurse=<value optimized out>, __the_thread__=0x1dc10)
  47.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/interpreter_zero.hpp:28
  48.
      #9 CppInterpreter::main_loop (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  49.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:95
  50.
      #10 0x40258c50 in CppInterpreter::normal_entry (method=<value optimized
out>, UNUSED=<value optimized out>,
  51.
      __the_thread__=0x1dc10)
  52.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:48
  53.
      #11 0x40258166 in invoke (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  54.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/entry_zero.hpp:56
  55.
      #12 invoke_method (recurse=<value optimized out>, __the_thread__=0x1dc10)
  56.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/interpreter_zero.hpp:28
  57.
      #13 CppInterpreter::main_loop (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  58.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:95
  59.
      #14 0x40258c50 in CppInterpreter::normal_entry (method=<value optimized
out>, UNUSED=<value optimized out>,
  60.
      __the_thread__=0x1dc10)
  61.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:48
  62.
      #15 0x40258166 in invoke (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  63.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/entry_zero.hpp:56
  64.
      #16 invoke_method (recurse=<value optimized out>, __the_thread__=0x1dc10)
  65.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/interpreter_zero.hpp:28
  66.
      #17 CppInterpreter::main_loop (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  67.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:95
  68.
      #18 0x40258c50 in CppInterpreter::normal_entry (method=<value optimized
out>, UNUSED=<value optimized out>,
  69.
      __the_thread__=0x1dc10)
  70.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:48
  71.
      #19 0x40258166 in invoke (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  72.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/entry_zero.hpp:56
  73.
      #20 invoke_method (recurse=<value optimized out>, __the_thread__=0x1dc10)
  74.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/interpreter_zero.hpp:28
  75.
      #21 CppInterpreter::main_loop (recurse=<value optimized out>,
__the_thread__=0x1dc10)
  76.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:95
  77.
      #22 0x40258c50 in CppInterpreter::normal_entry (method=<value optimized
out>, UNUSED=<value optimized out>,
  78.
      __the_thread__=0x1dc10)
  79.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp:48
  80.
      #23 0x403dd788 in invoke (call_wrapper=0x405d2018, result=<value
optimized out>, result_type=<value optimized out>,
  81.
      method=0x4dcdb528,
  82.
      entry_point=0x40748140
"!\214%@!\214%@a\214%@\241\214%@!\214%@!\214%@!\214%@!\214%@!\214%@!\214%@!\214%@\001\206%@\001\206%@",
parameters=0x405d20d0, parameter_words=2, __the_thread__=0x1dc10)
  83.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/entry_zero.hpp:56
  84.
      #24 invoke_method (call_wrapper=0x405d2018, result=<value optimized out>,
result_type=<value optimized out>,
  85.
      method=0x4dcdb528,
  86.
      entry_point=0x40748140
"!\214%@!\214%@a\214%@\241\214%@!\214%@!\214%@!\214%@!\214%@!\214%@!\214%@!\214%@\001\206%@\001\206%@",
parameters=0x405d20d0, parameter_words=2, __the_thread__=0x1dc10)
  87.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/interpreter_zero.hpp:28
  88.
      #25 StubGenerator::call_stub (call_wrapper=0x405d2018, result=<value
optimized out>, result_type=<value optimized out>,
  89.
      method=0x4dcdb528,
  90.
      entry_point=0x40748140
"!\214%@!\214%@a\214%@\241\214%@!\214%@!\214%@!\214%@!\214%@!\214%@!\214%@!\214%@\001\206%@\001\206%@",
parameters=0x405d20d0, parameter_words=2, __the_thread__=0x1dc10)
  91.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/cpu/zero/vm/stubGenerator_zero.cpp:68
  92.
      #26 0x402cf856 in JavaCalls::call_helper (result=0x405d21d8, m=<value
optimized out>, args=0x405d20cc,
  93.
      __the_thread__=0x1dc10) at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/share/vm/runtime/javaCalls.cpp:387
  94.
      #27 0x40391b5e in os::os_exception_wrapper (f=0xfffb0e64, value=<value
optimized out>, method=<value optimized out>,
  95.
      args=<value optimized out>, thread=0x1dc10)
  96.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/os/linux/vm/os_linux.cpp:4048
  97.
      #28 0x402cecd6 in JavaCalls::call (result=0x402cecd7, method=...,
args=0x405d20cc, __the_thread__=<value optimized out>)
  98.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/share/vm/runtime/javaCalls.cpp:293
  99.
      #29 0x402da5e6 in jni_invoke_nonstatic (env=<value optimized out>,
result=0x405d21d8, receiver=<value optimized out>,
 100.
      call_type=<value optimized out>, method_id=0xe7048, args=0x405d21bc,
__the_thread__=0x1dc10)
 101.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:1093
 102.
      #30 0x402e1bd2 in jni_CallObjectMethod (env=0x1dd28, obj=0xea2c0,
methodID=0xe7048)
 103.
      at
/media/flap/openjdk-6-6b20-1.9/build/openjdk/hotspot/src/share/vm/prims/jni.cpp:1350
 104.
      #31 0x406c2ff2 in JNU_GetStringPlatformChars (env=0x1dd28, jstr=<value
optimized out>, isCopy=<value optimized out>)
 105.
      at ../../../src/share/native/common/jni_util.c:791
 106.
      #32 0x406c6952 in Java_java_io_UnixFileSystem_getBooleanAttributes0
(env=0x1dd28, this=<value optimized out>,
 107.
      file=<value optimized out>) at
../../../src/solaris/native/java/io/UnixFileSystem_md.c:177
 108.
      #33 0x40428b40 in ffi_call_SYSV () from
/media/flap/java/22okt-zero-cacao/jre/lib/arm/server/libjvm.so
 109.
      #34 0x404289ec in ffi_call () from
/media/flap/java/22okt-zero-cacao/jre/lib/arm/server/libjvm.so
 110.
      #35 0x404289ec in ffi_call () from
/media/flap/java/22okt-zero-cacao/jre/lib/arm/server/libjvm.so
 111.
      Backtrace stopped: previous frame identical to this frame (corrupt
stack?)
 112.
      (gdb) list
 113.
      1596
 114.
      1597 CASE(_arraylength):
 115.
      1598 {
 116.
      1599 arrayOop ary = (arrayOop) STACK_OBJECT(-1);
 117.
      1600 CHECK_NULL(ary);
 118.
      1601 SET_STACK_INT(ary->length(), -1);
 119.
      1602 UPDATE_PC_AND_CONTINUE(1);
 120.
      1603 }
 121.
      1604
 122.
      1605 /* monitorenter and monitorexit for locking/unlocking an object */
 123.
      (gdb) 

ary= 0x20


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list