JDK-6795309 : JVM crashes after ^C when .jar file updated while application is running
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 6u10
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • CPU: x86
  • Submitted: 2009-01-19
  • Updated: 2011-02-16
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)

FULL OS VERSION :
Linux sessi 2.6.24-22-server #1 SMP Mon Nov 24 20:06:28 UTC 2008 x86_64 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
When we run our application using java -jar <application.jar> and then update the application.jar file,  JVM crashes inside libzip.so  after sending ^C to the application

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Yes

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java -jar application.jar
update application.jar (for example ant jar)
^C in the console of the application.jar running
application dumps core and produces the error log



EXPECTED VERSUS ACTUAL BEHAVIOR :
Application should stop cleanly.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Stack trace attached seperatly

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
the behavior is detected on one of our applications. it is hard to say which part of the source code causes the problem. I tried to reproduce it in a smaller application, but it did not occur so far. It actually seems it is  caused by a shutdown hook of h2 Database (see the log)....


---------- END SOURCE ----------

Comments
EVALUATION This seems related to 4425695: Updating jar files crashes running programs and as such could be handled in the same way or at least reassign to evaluate by the group who knows more about this issue.
23-09-2010