stop using mmap for zip I/O
Alan Bateman
Alan.Bateman at oracle.com
Thu Feb 26 22:24:45 UTC 2015
On 26/02/2015 22:17, christos at zoulas.com wrote:
> Hi,
>
> There are numerous bug reports about the jvm crashing in libzip...
> Just google for "libzip java crash". The bottom line is that using
> mmap is problematic (I can get into more per OS details if necessary)
> because it will potentially signal when the file size is altered.
> Can we please turn USE_MMAP off, and/or remove the code (zip_util.c)?
>
Sherman has a number of proposals here for some time.
In the mean-time then you run run with -Dsun.zip.disableMemoryMapping to
disable mmapping of the CEN in environments where there is potential to
overwrite zip files that are in use.
-Alan.
More information about the core-libs-dev
mailing list