Bug 732792

Summary: SIGSEGV in memcpy when compiling tycho with maven
Product: [Fedora] Fedora Reporter: Stanislav Ochotnicky <sochotni>
Component: java-1.6.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, jon.vanalten, jvanek, lkundrak, mjw, mmatejov, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-23 15:54:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
hs_err log from the crash none

Description Stanislav Ochotnicky 2011-08-23 15:42:17 UTC
Created attachment 519483 [details]
hs_err log from the crash

Description of problem:
I was compiling java package (tycho) with maven and java received SIGSEGV. 

Version-Release number of selected component (if applicable):
java-1.6.0-openjdk-1.6.0.0-59.1.10.3.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. this might be more tricky since it's entirely possible some of my changes are triggering this. If needed I can retry with default versions.

Comment 1 Deepak Bhole 2011-08-23 15:54:54 UTC
From the looks of it, one or more jar/zip files are being opened by the VM, changed on disk, and being accessed again from the VM object. Because the VM uses mmap to open zip files, once the file contents change, there are memory errors.

This is a known issue (in OpenJDK and Oracle JDK). It is hard to fix in a correct manner without trading significant performance.

Marking dupe of original.

*** This bug has been marked as a duplicate of bug 560232 ***

Comment 2 Andrew John Hughes 2011-08-25 21:07:11 UTC
There's:

changeset:   2354:ee385b4e2ffb
user:        sherman
date:        Thu Mar 11 14:06:09 2010 -0800
summary:     6929479: Add a system property sun.zip.disableMemoryMapping to disable mmap use in ZipFile

I thought someone had backported this to 6 but I don't see it.