Package: gcj-4.6-jre-headless
Version: 4.6.1-2
Severity: normal
File: /usr/bin/gij-4.6
X-Debbugs-CC: debian-bsd@lists.debian.org
Hi,
gij-4.6 just segfault for any java code under kfreebsd-amd64 (whereas it works
fine under kfreebsd-i386). I tested all this under asdfasdf.debian.net
porterbox.
Here is some example :
Test.java
----------------------------
public class Test {
public static void main(String[] args) {
System.out.println("OK");
}
}
----------------------------
$> /usr/lib/jvm/java-gcj-4.6/bin/javac Test.java
$> /usr/lib/jvm/java-gcj-4.6/bin/java Test
Segmentation fault
$>
Here is ktrace output for last fopen before crash :
----------------------------
59454 gij-4.6 CALL open(0x648bc0,O_RDONLY|O_LARGEFILE,<unused>0)
59454 gij-4.6 NAMI "/var/lib/gcj-4.6/classmap.db"
59454 gij-4.6 RET open 5
59454 gij-4.6 CALL stat(0x7fffffffe1a0,0x7fffffffe110)
59454 gij-4.6 NAMI "/var/lib/gcj-4.6/classmap.db"
59454 gij-4.6 STRU invalid record
59454 gij-4.6 RET stat 0
59454 gij-4.6 CALL fstat(0x5,0x7fffffffe1e0)
59454 gij-4.6 STRU invalid record
59454 gij-4.6 RET fstat 0
59454 gij-4.6 CALL mmap(0,0x4000,PROT_READ,MAP_PRIVATE,0x5,0)
59454 gij-4.6 RET mmap 34366324736/0x800648000
59454 gij-4.6 PSIG SIGSEGV SIG_DFL
----------------------------
So I thought it was linked to some previous mmap issues we already had (see
[1] or [2]) so I tried to skip mmap'ing of this classmap.db file (used for AOT-
Compile).
Sadly, it's not better :
$> /usr/lib/jvm/java-gcj-4.6/bin/java -Dgnu.gcj.precompiled.db.path= Test
Segmentation fault
$>
Ktrace :
----------------------------
75773 gij-4.6 NAMI "/home/drazzib/Test.class"
75773 gij-4.6 STRU invalid record
75773 gij-4.6 RET stat 0
75773 gij-4.6 CALL read(0x5,0x694c0c,0x194)
75773 gij-4.6 GIO fd 5 read 404 bytes
[...]
75773 gij-4.6 RET read 404/0x194
75773 gij-4.6 CALL close(0x5)
75773 gij-4.6 RET close 0
75773 gij-4.6 PSIG SIGSEGV SIG_DFL
----------------------------
Did someone have any clue ?
[1] http://bugs.debian.org/570889
[2] http://bugs.debian.org/571532
Regards,
--
Damien - Debian Developper
http://wiki.debian.org/DamienRaudeMorvan
Attachment:
signature.asc
Description: This is a digitally signed message part.