Name: ksC84122 Date: 06/07/99
JDK 1.3 java.util.zip.ZipFile(File file) dumps core with the attached zip file. The zip file
attached is a regular one and can be easily read by the UNIX zip utility.
A test example which demonstrates this problem.
===== test.java ========
import java.util.zip.*;
import java.io.IOException;
import java.io.File;
public class test {
public static void main (String argv[]) {
File file = new File("nomanif.zip");
String fileName = file.toString();
try {
new ZipFile(file);
} catch (IOException e) {
System.out.println("Unexpected " + e);
return;
}
System.out.println("Test Passed. OKAY.");
return;
}
}
========= Sample run (JDK1.2.2) ==========
#>java test
Test Passed. OKAY.
========= Sample run (JDK1.3) ==========
#>java test
SIGFPE 8* arithmetic exception
si_signo [8]: SIGFPE 8* arithmetic exception
si_errno [0]: Error 0
si_code [1]: FPE_INTDIV [addr: 0xEF62773C]
stackpointer=efffba70
Full thread dump Classic VM (JDK-1.3-F, green threads):
"Finalizer" (TID:0xebc98308, sys_thread_t:0x61328, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:166)
"Reference Handler" (TID:0xebc98398, sys_thread_t:0x5fbb0, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0xebc983c8, sys_thread_t:0x58d20, state:CW) prio=5
"main" (TID:0xebc981c8, sys_thread_t:0x26ae0, state:R) prio=5
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
at test.main(test.java, Compiled Code)
Monitor Cache Dump:
java.lang.ref.ReferenceQueue$Lock@EBC98320/EBCCE028: <unowned>
Waiting to be notified:
"Finalizer" (0x61328)
java.lang.ref.Reference$Lock@EBC983A8/EBCCDB20: <unowned>
Waiting to be notified:
"Reference Handler" (0x5fbb0)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "main" (0x26ae0) 1 entry
Dynamic loading lock: <unowned>
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x58d20)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x2bdd0)
Thread queue lock: owner "main" (0x26ae0) 1 entry
Monitor registry: owner "main" (0x26ae0) 1 entry
SIGABRT 6* abort (generated by abort(3) routine)
si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
si_errno [0]: Error 0
si_code [0]: SI_USER [pid: 2324, uid: 346]
stackpointer=efffba70
Full thread dump Classic VM (JDK-1.3-F, green threads):
"Finalizer" (TID:0xebc98308, sys_thread_t:0x61328, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:166)
"Reference Handler" (TID:0xebc98398, sys_thread_t:0x5fbb0, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0xebc983c8, sys_thread_t:0x58d20, state:CW) prio=5
"main" (TID:0xebc981c8, sys_thread_t:0x26ae0, state:R) prio=5
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
at test.main(test.java, Compiled Code)
Monitor Cache Dump:
java.lang.ref.ReferenceQueue$Lock@EBC98320/EBCCE028: <unowned>
Waiting to be notified:
"Finalizer" (0x61328)
java.lang.ref.Reference$Lock@EBC983A8/EBCCDB20: <unowned>
Waiting to be notified:
"Reference Handler" (0x5fbb0)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "main" (0x26ae0) 1 entry
Dynamic loading lock: <unowned>
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x58d20)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x2bdd0)
Thread queue lock: owner "main" (0x26ae0) 1 entry
Monitor registry: owner "main" (0x26ae0) 1 entry
Abort (core dumped)
======================================================================
- duplicates
-
JDK-4241357 Crash reading from zip file with 1 entry
- Closed