Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1065966

Summary: mvn archetype:generate fails with stack overflows
Product: [Fedora] Fedora Reporter: robert
Component: mavenAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 19CC: akurtako, java-sig-commits, mizdebsk, msrb, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-17 12:36:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description robert 2014-02-17 12:25:58 UTC
Description of problem:

Using maven on a power7 machine fails with multiple stack overflows


Version-Release number of selected component (if applicable):
Apache Maven 3.0.5 (rNON-CANONICAL_2013-03-12_12-47_mockbuild; 2013-03-12 13:47:10+0100)
Maven home: /usr/share/maven
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc19.ppc64/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "3.11.7-200.fc19.ppc64p7", arch: "ppc64", family: "unix"

How reproducible:

Execute "mvn archetype:generate"

Steps to Reproduce:
1.
2.
3.

Actual results:
java.lang.StackOverflowError
        at java.util.concurrent.SynchronousQueue$TransferStack.snode(SynchronousQueue.java:318)
        at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:361)
        at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:724)

Expected results:

maven stub should be build

Additional info:
I tried to increase the java stacksize via setting the environment var MAVEN_OPTS, but it still gives me stack overflows

Seems similiar to: https://bugzilla.redhat.com/show_bug.cgi?id=1059816

Comment 1 Mikolaj Izdebski 2014-02-17 12:36:15 UTC

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

Comment 2 Mikolaj Izdebski 2014-02-17 12:37:51 UTC
This is a known bug OpenJDK.  From what I know it is triggered only on POWER7.  Workaround: use POWER6 or older machine.