If I place a single class file in a zip archive and run the java launcher on that class, it crashes. This is a regression with respect to 1.2.2.
For example (note that trivial.zip is attached to this bug report):
- this works fine
/home/gordonh/work> /usr/local/java/jdk1.2.2/solaris/bin/java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2-U, green threads, sunwjit)
/home/gordonh/work> /usr/local/java/jdk1.2.2/solaris/bin/java -classpath trivial.zip Trivial
Hello, World!
- ... but this crashes
/home/gordonh/work> /usr/local/java/jdk1.3/solaris/bin/java -version
java version "1.3"
Classic VM (build JDK-1.3-E, green threads, sunwjit)
/home/gordonh/work> /usr/local/java/jdk1.3/solaris/bin/java -classpath trivial.zip Trivial
SIGFPE 8* arithmetic exception
si_signo [8]: SIGFPE 8* arithmetic exception
si_errno [0]: Error 0
si_code [1]: FPE_INTDIV [addr: 0xEF62842C]
stackpointer=effff2b8
For example (note that trivial.zip is attached to this bug report):
- this works fine
/home/gordonh/work> /usr/local/java/jdk1.2.2/solaris/bin/java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2-U, green threads, sunwjit)
/home/gordonh/work> /usr/local/java/jdk1.2.2/solaris/bin/java -classpath trivial.zip Trivial
Hello, World!
- ... but this crashes
/home/gordonh/work> /usr/local/java/jdk1.3/solaris/bin/java -version
java version "1.3"
Classic VM (build JDK-1.3-E, green threads, sunwjit)
/home/gordonh/work> /usr/local/java/jdk1.3/solaris/bin/java -classpath trivial.zip Trivial
SIGFPE 8* arithmetic exception
si_signo [8]: SIGFPE 8* arithmetic exception
si_errno [0]: Error 0
si_code [1]: FPE_INTDIV [addr: 0xEF62842C]
stackpointer=effff2b8
- duplicates
-
JDK-4243163 JVM abort (core dumped) when CLASSPATH points to additional zip-file
- Closed
-
JDK-4244338 java.util.zip.ZipFile(File file) dumps core
- Closed