-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
solaris, javadb_10.0, 2.0, 1.3.0, 1.4.1, 1.4.1_01, 5.0, 5.0u1, 6, 6u16
-
generic, x86, sparc
-
generic, linux, linux_redhat_9.0, solaris, solaris_9, solaris_nevada, solaris_10, windows_2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
Occasionnally, when updating a jar file while a java program uses it, said jave program throws
spurious ClassNotFound errors. This is somewhat surprising, as similar problems don't occur
when for instance updating a shared library (.so file) while programs use it.
The problem occurs both on Windows and on Linux
The reason why it doesn't happen for C libraries is because these are mmapped in PRIVATE
mode into the program's address space, and hence the program sees a snapshot of their state how
the library was when first started. It can thus continue its work undisturbed even through updates.
Would it be possible to implement a similar scheme for access to .jar? For platforms where mmap
is not supported, such as Windows, the jar could be read entirely in memory upon first use.
(Review ID: 118787)
======================================================================
- duplicates
-
JDK-6713913 Fatal errors during jar file processing
- Closed
-
JDK-6578394 javaws-started app dumps core in libzip`ZIP_GetEntry
- Closed
-
JDK-7129299 JVM crash issue related to jar files
- Closed
-
JDK-4843994 JarURLConnection gets confused and throws exceptions after replacing jar file
- Closed
-
JDK-6179434 SIGBUS from ZipFile.getEntry
- Closed
-
JDK-6426429 crash when browsing to webapp/portlet URL while JAR file is being updated/reloaded
- Closed
-
JDK-6553958 JVM crash when running NetBeans 6.0
- Closed
-
JDK-6236070 Unexpected eeror in HotSpot VM. It got a SIGBUS.
- Closed
-
JDK-5082306 SIGBUS from libzip.so in Tiger b60
- Closed
- relates to
-
JDK-6390352 SIGBUS in libzip.so when using java.util.zip
- Closed
-
JDK-5086611 Reading of JarEntry results in Hotspot error instead of throwing Java Exception
- Closed
-
JDK-6795309 JVM crashes after ^C when .jar file updated while application is running
- Open
-
JDK-6633178 JVM crash (SIGBUS) on T2000
- Closed