Bug 640012

Summary: SIGSEGV when compiling maven-doxia (cause found)
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: medium Docs Contact:
Priority: low    
Version: rawhideCC: ahughes, dbhole, jvanek, langel, lkundrak, mjw, mjw, mmatejov, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-09 15:58:07 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:
Bug Depends On:    
Bug Blocks: 639805    
Attachments:
Description Flags
patch causing openjdk SIGSEGV
none
koji build.log with openjdk SIGSEGV
none
hs error log from doxia build none

Description Stanislav Ochotnicky 2010-10-04 14:42:42 UTC
Description of problem:
I am encountering SIGSEGV when maven is compiling maven-doxia package. This is happening after I added patch changing one line (removing plexus annotation from comment).

I am attaching build.log from koji and patch file causing said behaviour. 

You can see changes causing said behaviour in maven-doxia git repository in openjdk-segv branch

Version-Release number of selected component (if applicable):
from build.log
# JRE version: 6.0_18-b18
# Java VM: OpenJDK Server VM (14.0-b16 mixed mode linux-x86 )
# Derivative: IcedTea6 1.8
# Distribution: Custom build (Tue Jun 15 08:46:25 UTC 2010)
# Problematic frame:
# C  [libc.so.6+0x12f8f6]


How reproducible:
Always

Steps to Reproduce:
1. fedpkg clone maven-doxia
2. git checkout -b openjdk-segv -t origin/openjdk-segv
3. fedpkg srpm
4. fedpkg scratch-build --srpm <srpm>

Comment 1 Stanislav Ochotnicky 2010-10-04 14:44:02 UTC
Created attachment 451416 [details]
patch causing openjdk SIGSEGV

Comment 2 Stanislav Ochotnicky 2010-10-04 14:45:00 UTC
Created attachment 451418 [details]
koji build.log with openjdk SIGSEGV

Comment 3 Mark Wielaard 2010-10-05 07:24:49 UTC
Please also attach the /builddir/build/BUILD/maven-doxia-1.1.3/hs_err_pid25440.log file

Comment 4 Stanislav Ochotnicky 2010-10-13 09:47:18 UTC
FYI I have problems with mock when building doxia (investigating). That's why I wasn't able to get you the hs_err log. I'll add it once my mock problem is solved. But I found out that openjdk fails only on x86_64 machines, i686 works fine. That might help a bit I hope

Comment 5 Stanislav Ochotnicky 2010-12-09 10:40:16 UTC
Ok, I managed to get hs_err file (attached). I was wrong about i686 working and x86_64 failing, it's the other way around (sorry if that made things harder).

Comment 6 Stanislav Ochotnicky 2010-12-09 10:41:02 UTC
Created attachment 467726 [details]
hs error log from doxia build

Comment 7 Stanislav Ochotnicky 2010-12-09 10:42:27 UTC
One more bit of information: The build works fine in mock (both i686 and x86_64) so I guess it only fails on true i686 build hosts.

Comment 8 Deepak Bhole 2010-12-09 15:58:07 UTC
Thanks for the trace! Looks like it happened in zip code during getEntry. 

Such an error is known to happen if a jar/zip file is updated after the vm has built a map of its contents. There is already a bug open for this. Closing this one as a dupe.

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