Summary: | java crashes on segfault with just bare -classpath option | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Clock <clock> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED UPSTREAM | ||
Severity: | critical | CC: | camilo.aguilar, morten |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Clock
2005-08-30 08:24:26 UTC
on amd64 crash too dev ~ # java -classpath *** glibc detected *** free(): invalid next size (fast): 0x0000000040113010 *** Aborted Addiotional Information dev ~ # java -version java version "1.4.2-02" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02) Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-02, mixed mode) dev ~ # export MALLOC_CHECK_=3 dev ~ # valgrind --tool=memcheck java -classpath malloc: using debugging hooks malloc: using debugging hooks ==29473== Memcheck, a memory error detector. ==29473== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==29473== Using LibVEX rev 1313, a library for dynamic binary translation. ==29473== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==29473== Using valgrind-3.0.0, a dynamic binary instrumentation framework. ==29473== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==29473== For more details, rerun with: -v ==29473== ==29473== Invalid write of size 8 ==29473== at 0x4000267B: (within /opt/blackdown-jdk-1.4.2.02/bin/java) ==29473== by 0x40001AC8: (within /opt/blackdown-jdk-1.4.2.02/bin/java) ==29473== by 0x140EEE06566D: __libc_start_main (in /lib/libc-2.3.5.so) ==29473== by 0x400019A9: (within /opt/blackdown-jdk-1.4.2.02/bin/java) ==29473== Address 0x140EEE271048 is 0 bytes after a block of size 24 alloc'd ==29473== at 0x140EEDD19F9E: malloc (in /usr/lib/valgrind/vgpreload_memcheck.so) ==29473== by 0x40003768: (within /opt/blackdown-jdk-1.4.2.02/bin/java) ==29473== by 0x40002602: (within /opt/blackdown-jdk-1.4.2.02/bin/java) ==29473== by 0x40001AC8: (within /opt/blackdown-jdk-1.4.2.02/bin/java) ==29473== by 0x140EEE06566D: __libc_start_main (in /lib/libc-2.3.5.so) ==29473== by 0x400019A9: (within /opt/blackdown-jdk-1.4.2.02/bin/java) malloc: using debugging hooks *** glibc detected *** free(): invalid pointer: 0x0000000040113010 *** Aborted # java -version java version "1.4.2-03" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03) Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-03, mixed mode) # java -clasppath Unrecognized option: -clasppath Could not create the Java virtual machine. works fine with 1.4.2.03-r2 on ~amd64. (In reply to comment #2) > # java -clasppath > Unrecognized option: -clasppath > Could not create the Java virtual machine. > > works fine with 1.4.2.03-r2 on ~amd64. I'm sorry, just mispelled classpath... Confirming the bug. # java -classpath *** glibc detected *** free(): invalid next size (fast): 0x0000000040113010 *** Aborted This problem is not present in java-1.5.0.06-r2: $ java -version java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) $ java -classpath -classpath requires class path specification This is really something upstream would have to fix for affected versions, particularly since they are closed source. |