Bug 79761 - error in .jar file crashes VM!
Summary: error in .jar file crashes VM!
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: vm
Depends on:
Blocks:
 
Reported: 2004-11-30 05:48 EST by Michael Moser CLA
Modified: 2004-11-30 13:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moser CLA 2004-11-30 05:48:27 EST
We have a .jar file here (the .jarfile of hell! :-) ), which if listed on a 
project's classpath causes eclipse to crash - and not only eclipse but 
apparently even the VM (so maybe this bug should be forwarded to the VM 
authors - please advise)!

I checked this with Sun's VM 1.4.2 and with IBM's VM 1.4.2 - in both cases 
eclipse dies with the follwing message:

---------------------------------
A virtual machine error has occured. 
You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without warning.
See the .log for more details.

Do you want to exit the workbench?

[Yes] [No]
---------------------------------

I can provide the .log file as well as the offending .jar file - just let me 
know.

Michael
Comment 1 Michael Moser CLA 2004-11-30 05:51:24 EST
If bugzilla would allow me to attach files I would have attached the two right 
away...
Michael
Comment 2 Philipe Mulet CLA 2004-11-30 06:05:31 EST
Could you mail these files to me directly ?
Comment 3 Philipe Mulet CLA 2004-11-30 08:57:37 EST
From reporter:
it seems, that the defect .jar file was created by erroneously checking it into
our CVS repository as "ASCII" (instead of binary). So CVS probably replaced CRLF
by CR and maybe also any tags (if it found such in the binary file). But of
course accessing such a file shouldn't kill the VM... Probably some bug in the
native .zip file handling...
Comment 4 Olivier Thomann CLA 2004-11-30 12:57:00 EST
We need to add check for error while reading a corrupted zip file.
Comment 5 Olivier Thomann CLA 2004-11-30 13:22:55 EST
We cannot catch this case, because it throws an InternalError. We should never
catch an InternalError.
Closing as a VM bug.
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4615343.