Package: openjdk-6-jdk
Version: 6b10dfsg-2
Severity: normal

When compiling the source for LaTeXDraw [1] (which I am in the process
of packaging), I get a SIGSEGV from javac. The actual file being
compiled when this occurs varies but is generally the 50 to 70th file in
the compilation process (of the 111 source files). The crashdump
generated by the jvm is attached. Compilation is being performed in sid
cowbuilder on an etch machine.

The same source compiles with no problems with the javac from the
sun-java6-jdk package.

It seems that this (or a related problem) has been seen in various
javac's since java 5 [2,3] and the same workaround is applicable:
passing "-client" to the jvm prevents the segfault (add "-J-client" if
using javac directly or use "ANT_OPTS=-client; ant" if using ant).

There appear to be related bugs in both the icedtea bugzilla [4,5] and
in the sun bugs db [6]; as per discussion on #debian-java, here's a bug
in the Debian bts too.

Let me know if I can provide any further information.

cheers
Stuart


[1] latexdraw.sf.net version 1.9.5 --
http://downloads.sourceforge.net/latexdraw/LaTeXDraw1.9.5_src.zip?modtime=1193349194&big_mirror=0

[2] Googling for "libjvm.so sigsegv" turns up a few discussions of this.

[3] e.g. http://forum.java.sun.com/thread.jspa?threadID=5132238&tstart=75

[4] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=152

[5] Additional related bugs that mostly have no comments attached to
them other than the original report at
http://icedtea.classpath.org/bugzilla/buglist.cgi?quicksearch=libjvm.so

[6] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6708395

-- System Information:
Debian Release: 4.0
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (100, 'stable'), (60, 'testing'), (50, 
'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-etchnhalf.1-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x403572ac, pid=32014, tid=1815362448
#
# Java VM: OpenJDK Server VM (1.6.0_0-b10 mixed mode linux-x86)
# Problematic frame:
# V  [libjvm.so+0x1bf2ac]
#
# If you would like to submit a bug report, please visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x08103c00):  JavaThread "CompilerThread1" daemon 
[_thread_in_native, id=32024, stack(0x6c2c4000,0x6c344000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), 
si_addr=0x00000000

Registers:
EAX=0x00000000, EBX=0x407b68a0, ECX=0x0000140c, EDX=0x6c342700
ESP=0x6c341f10, EBP=0x6c341f68, ESI=0x087e2a2c, EDI=0x00000000
EIP=0x403572ac, CR2=0x00000000, EFLAGS=0x00010216

Top of Stack: (sp=0x6c341f10)
0x6c341f10:   085aa018 00000000 00000004 4073ef64
0x6c341f20:   00000001 01342700 0000000d 084a4704
0x6c341f30:   00000003 00000001 00000001 ffffffff
0x6c341f40:   08078cb8 087c8e9c 00000004 087c8990
0x6c341f50:   08785190 00000010 085aa018 407b68a0
0x6c341f60:   08785190 6c342700 6c342088 403593f8
0x6c341f70:   6c342700 00000001 6c34276c 6c34206c
0x6c341f80:   0869eba0 00007fec 6c342010 6c34206c 

Instructions: (pc=0x403572ac)
0x4035729c:   89 46 18 8b 7d f0 8b 07 89 3c 24 ff 50 40 89 c7
0x403572ac:   8b 00 21 46 34 8b 47 04 21 46 38 8b 47 08 21 46 

Stack: [0x6c2c4000,0x6c344000],  sp=0x6c341f10,  free space=503k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x1bf2ac]
V  [libjvm.so+0x1c13f8]
V  [libjvm.so+0x212aa8]
V  [libjvm.so+0x213f57]
V  [libjvm.so+0x1adcdd]
V  [libjvm.so+0x218718]
V  [libjvm.so+0x218e00]
V  [libjvm.so+0x53e0c7]
V  [libjvm.so+0x542b86]
V  [libjvm.so+0x542c32]
V  [libjvm.so+0x467fb7]
C  [libpthread.so.0+0x5f3b]


Current CompileTask:
C2:106  !   
com.sun.tools.javac.parser.Parser.literal(Lcom/sun/tools/javac/util/Name;)Lcom/sun/tools/javac/tree/JCTree$JCExpression;
 (751 bytes)


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x08105800 JavaThread "Low Memory Detector" daemon [_thread_blocked, 
id=32025, stack(0x6c200000,0x6c250000)]
=>0x08103c00 JavaThread "CompilerThread1" daemon [_thread_in_native, id=32024, 
stack(0x6c2c4000,0x6c344000)]
  0x08102800 JavaThread "CompilerThread0" daemon [_thread_in_native, id=32023, 
stack(0x6c044000,0x6c0c4000)]
  0x08101400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=32022, 
stack(0x6bff4000,0x6c044000)]
  0x080e8800 JavaThread "Finalizer" daemon [_thread_blocked, id=32021, 
stack(0x6bfa4000,0x6bff4000)]
  0x080e4400 JavaThread "Reference Handler" daemon [_thread_blocked, id=32020, 
stack(0x6bf54000,0x6bfa4000)]
  0x08057400 JavaThread "main" [_thread_in_native, id=32016, 
stack(0x40c0b000,0x40c5b000)]

Other Threads:
  0x080e1000 VMThread [stack: 0x6bed4000,0x6bf54000] [id=32019]
  0x08107000 WatcherThread [stack: 0x6c344000,0x6c3c4000] [id=32026]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 15168K, used 4560K [0x68140000, 0x6a560000, 0x6b9b0000)
  eden space 11584K, 8% used [0x68140000,0x68234fd0,0x68c90000)
  from space 3584K, 99% used [0x68c90000,0x6900f1c0,0x69010000)
  to   space 6912K, 0% used [0x69ea0000,0x69ea0000,0x6a560000)
 PSOldGen        total 28864K, used 9400K [0x4bdb0000, 0x4d9e0000, 0x68140000)
  object space 28864K, 32% used [0x4bdb0000,0x4c6de160,0x4d9e0000)
 PSPermGen       total 16384K, used 6857K [0x43db0000, 0x44db0000, 0x4bdb0000)
  object space 16384K, 41% used [0x43db0000,0x44462778,0x44db0000)

Dynamic libraries:
08048000-08050000 r-xp 00000000 fe:00 228159     
/usr/lib/jvm/java-6-openjdk/jre/bin/java
08050000-08051000 rw-p 00008000 fe:00 228159     
/usr/lib/jvm/java-6-openjdk/jre/bin/java
08051000-08828000 rw-p 08051000 00:00 0          [heap]
40000000-4001a000 r-xp 00000000 fe:00 380272     /lib/ld-2.7.so
4001a000-4001c000 rw-p 0001a000 fe:00 380272     /lib/ld-2.7.so
4001c000-4001e000 rw-p 4001c000 00:00 0 
4001e000-4001f000 r--p 4001e000 00:00 0 
4001f000-40020000 rwxp 4001f000 00:00 0 
40020000-40021000 r--s 00002000 fe:00 164468     
/usr/share/ant/lib/ant-launcher.jar
40021000-40022000 r--s 00002000 fe:00 164468     
/usr/share/ant/lib/ant-launcher.jar
40022000-40023000 r--s 00001000 fe:00 383913     /usr/share/java/gettext.jar
40023000-40037000 r-xp 00000000 fe:00 393031     /usr/lib/libz.so.1.2.3.3
40037000-40038000 rw-p 00013000 fe:00 393031     /usr/lib/libz.so.1.2.3.3
40038000-4004c000 r-xp 00000000 fe:00 380289     /lib/libpthread-2.7.so
4004c000-4004e000 rw-p 00013000 fe:00 380289     /lib/libpthread-2.7.so
4004e000-40051000 rw-p 4004e000 00:00 0 
40051000-40054000 r-xp 00000000 fe:00 540672     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/jli/libjli.so
40054000-40055000 rw-p 00003000 fe:00 540672     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/jli/libjli.so
40055000-40057000 r-xp 00000000 fe:00 380278     /lib/libdl-2.7.so
40057000-40059000 rw-p 00001000 fe:00 380278     /lib/libdl-2.7.so
40059000-40191000 r-xp 00000000 fe:00 380275     /lib/libc-2.7.so
40191000-40192000 r--p 00138000 fe:00 380275     /lib/libc-2.7.so
40192000-40194000 rw-p 00139000 fe:00 380275     /lib/libc-2.7.so
40194000-40198000 rw-p 40194000 00:00 0 
40198000-4077a000 r-xp 00000000 fe:00 540713     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server/libjvm.so
4077a000-407c4000 rw-p 005e1000 fe:00 540713     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server/libjvm.so
407c4000-40be5000 rw-p 407c4000 00:00 0 
40be5000-40c09000 r-xp 00000000 fe:00 380279     /lib/libm-2.7.so
40c09000-40c0b000 rw-p 00023000 fe:00 380279     /lib/libm-2.7.so
40c0b000-40c0e000 ---p 40c0b000 00:00 0 
40c0e000-40c5b000 rwxp 40c0e000 00:00 0 
40c5b000-40c62000 r-xp 00000000 fe:00 380291     /lib/librt-2.7.so
40c62000-40c64000 rw-p 00006000 fe:00 380291     /lib/librt-2.7.so
40c64000-40c6b000 r-xp 00000000 fe:00 540712     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/native_threads/libhpi.so
40c6b000-40c6c000 rw-p 00006000 fe:00 540712     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/native_threads/libhpi.so
40c6c000-40c70000 r--s 00079000 fe:00 245054     
/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar
40c70000-40c71000 r--s 00000000 fe:00 383794     /usr/share/java/libintl.jar
40c71000-40c84000 r-xp 00000000 fe:00 380281     /lib/libnsl-2.7.so
40c84000-40c86000 rw-p 00012000 fe:00 380281     /lib/libnsl-2.7.so
40c86000-40c88000 rw-p 40c86000 00:00 0 
40c88000-40c8f000 r-xp 00000000 fe:00 380282     /lib/libnss_compat-2.7.so
40c8f000-40c91000 rw-p 00006000 fe:00 380282     /lib/libnss_compat-2.7.so
40c91000-40c99000 r-xp 00000000 fe:00 380286     /lib/libnss_nis-2.7.so
40c99000-40c9b000 rw-p 00007000 fe:00 380286     /lib/libnss_nis-2.7.so
40c9b000-40ca4000 r-xp 00000000 fe:00 380284     /lib/libnss_files-2.7.so
40ca4000-40ca6000 rw-p 00008000 fe:00 380284     /lib/libnss_files-2.7.so
40ca6000-40cae000 rw-s 00000000 fe:00 179045     /tmp/hsperfdata_root/32014
40cae000-40cba000 r-xp 00000000 fe:00 540709     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libverify.so
40cba000-40cbb000 rw-p 0000c000 fe:00 540709     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libverify.so
40cbb000-40cdf000 r-xp 00000000 fe:00 540686     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libjava.so
40cdf000-40ce1000 rw-p 00023000 fe:00 540686     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libjava.so
40ce1000-40ce8000 r-xp 00000000 fe:00 540710     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libzip.so
40ce8000-40ce9000 rw-p 00006000 fe:00 540710     
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libzip.so
40ce9000-40f29000 rwxp 40ce9000 00:00 0 
40f29000-43ce9000 rwxp 40f29000 00:00 0 
43ce9000-43cf2000 rwxp 43ce9000 00:00 0 
43cf2000-43da9000 rwxp 43cf2000 00:00 0 
43da9000-43daf000 r--s 00098000 fe:00 427228     /usr/share/java/js-1.7R1.jar
43daf000-43db0000 r--s 00004000 fe:00 454163     
/usr/share/java/net.sourceforge.jlibeps-0.1.0.jar
43db0000-44db0000 rwxp 43db0000 00:00 0 
44db0000-4bdb0000 rwxp 44db0000 00:00 0 
4bdb0000-4d9e0000 rwxp 4bdb0000 00:00 0 
4d9e0000-68140000 rwxp 4d9e0000 00:00 0 
68140000-6a560000 rwxp 68140000 00:00 0 
6a560000-6b9b0000 rwxp 6a560000 00:00 0 
6b9b0000-6b9b8000 rwxp 6b9b0000 00:00 0 
6b9b8000-6b9f0000 rwxp 6b9b8000 00:00 0 
6b9f0000-6b9ff000 rwxp 6b9f0000 00:00 0 
6b9ff000-6bad1000 rwxp 6b9ff000 00:00 0 
6bad1000-6bae4000 rwxp 6bad1000 00:00 0 
6bae4000-6baee000 rwxp 6bae4000 00:00 0 
6baee000-6bafe000 rwxp 6baee000 00:00 0 
6bafe000-6bbd1000 rwxp 6bafe000 00:00 0 
6bbd1000-6bbd9000 rwxp 6bbd1000 00:00 0 
6bbd9000-6bc11000 rwxp 6bbd9000 00:00 0 
6bc11000-6bc12000 ---p 6bc11000 00:00 0 
6bc12000-6bc91000 rwxp 6bc12000 00:00 0 
6bc91000-6bc92000 ---p 6bc91000 00:00 0 
6bc92000-6bd11000 rwxp 6bc92000 00:00 0 
6bd11000-6bea1000 r--s 033fc000 fe:00 245072     
/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar
6bea1000-6bed4000 rw-p 6bea1000 00:00 0 
6bed4000-6bed5000 ---p 6bed4000 00:00 0 
6bed5000-6bf54000 rwxp 6bed5000 00:00 0 
6bf54000-6bf57000 ---p 6bf54000 00:00 0 
6bf57000-6bfa4000 rwxp 6bf57000 00:00 0 
6bfa4000-6bfa7000 ---p 6bfa4000 00:00 0 
6bfa7000-6bff4000 rwxp 6bfa7000 00:00 0 
6bff4000-6bff7000 ---p 6bff4000 00:00 0 
6bff7000-6c044000 rwxp 6bff7000 00:00 0 
6c044000-6c047000 ---p 6c044000 00:00 0 
6c047000-6c0c4000 rwxp 6c047000 00:00 0 
6c0c4000-6c0cd000 r--s 00065000 fe:00 475698     
/usr/share/java/gnome-java-bridge.jar
6c0cd000-6c0d5000 r--s 0002c000 fe:00 452621     /usr/share/java/jaxp-1.3.jar
6c0d5000-6c0ec000 r--s 00117000 fe:00 452627     /usr/share/java/xercesImpl.jar
6c0ec000-6c100000 r--s 00131000 fe:00 164467     /usr/share/ant/lib/ant.jar
6c100000-6c1fa000 rw-p 6c100000 00:00 0 
6c1fa000-6c200000 ---p 6c1fa000 00:00 0 
6c200000-6c203000 ---p 6c200000 00:00 0 
6c203000-6c250000 rwxp 6c203000 00:00 0 
6c250000-6c2af000 r--s 00b99000 fe:00 408692     
/usr/lib/jvm/java-6-openjdk/lib/tools.jar
6c2af000-6c2c3000 r--s 00131000 fe:00 164467     /usr/share/ant/lib/ant.jar
6c2c4000-6c2c7000 ---p 6c2c4000 00:00 0 
6c2c7000-6c344000 rwxp 6c2c7000 00:00 0 
6c344000-6c345000 ---p 6c344000 00:00 0 
6c345000-6c3c4000 rwxp 6c345000 00:00 0 
6c3c4000-6c3cd000 r--s 00065000 fe:00 475698     
/usr/share/java/gnome-java-bridge.jar
6c3cd000-6c3d4000 r--s 00079000 fe:00 454161     
/usr/share/java/net.sourceforge.jiu-0.14.2.jar
6c400000-6c4ef000 rw-p 6c400000 00:00 0 
6c4ef000-6c500000 ---p 6c4ef000 00:00 0 
6c500000-6c5fb000 rw-p 6c500000 00:00 0 
6c5fb000-6c600000 ---p 6c5fb000 00:00 0 
6c700000-6c7f5000 rw-p 6c700000 00:00 0 
6c7f5000-6c800000 ---p 6c7f5000 00:00 0 
6c800000-6c8e8000 rw-p 6c800000 00:00 0 
6c8e8000-6c900000 ---p 6c8e8000 00:00 0 
6c900000-6c9f2000 rw-p 6c900000 00:00 0 
6c9f2000-6ca00000 ---p 6c9f2000 00:00 0 
6ca00000-6cada000 rw-p 6ca00000 00:00 0 
6cada000-6cb00000 ---p 6cada000 00:00 0 
bfc10000-bfc23000 rwxp bffeb000 00:00 0          [stack]
bfc23000-bfc25000 rw-p bfffe000 00:00 0 
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]

VM Arguments:
jvm_args: -Dant.home=/usr/share/ant -Dant.library.dir=/usr/share/ant/lib 
java_command: org.apache.tools.ant.launch.Launcher -cp  
-Dlib.dir=/usr/share/java jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin:/root/bin:/root/documents/projects/dda/bin:/root/documents/projects/combmodel/bin
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386
SHELL=/bin/bash
DISPLAY=:0

Signal Handlers:
SIGSEGV: [libjvm.so+0x57a7b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x57a7b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x464a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x464a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGXFSZ: [libjvm.so+0x464a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x464a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x464330], sa_mask[0]=0x00000000, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x466860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x466860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x466860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x466860], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


---------------  S Y S T E M  ---------------

OS:lenny/sid

uname:Linux 2.6.24-etchnhalf.1-686 #1 SMP Wed Jun 11 10:21:32 UTC 2008 i686
libc:glibc 2.7 NPTL 2.7 
rlimit: STACK infinity, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:0.03 0.27 0.32

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 6, 
cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 2075428k(153780k free), swap 6291440k(5314488k free)

vm_info: OpenJDK Server VM (1.6.0_0-b10) for linux-x86 JRE (1.6.0_0-b10), built 
on Jul 14 2008 18:44:29 by "doko" with gcc 4.3.1

time: Tue Jul 15 20:11:55 2008
elapsed time: 2 seconds

Reply via email to