Bug 1040576 - FTBFS: Exception in thread "process reaper" java.lang.StackOverflowError
Summary: FTBFS: Exception in thread "process reaper" java.lang.StackOverflowError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipa
Version: 20
Hardware: powerpc
OS: Linux
medium
high
Target Milestone: ---
Assignee: Petr Vobornik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 16:11 UTC by Karsten Hopp
Modified: 2014-01-29 03:08 UTC (History)
7 users (show)

Fixed In Version: freeipa-3.3.3-4.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-29 03:08:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log (426.25 KB, text/plain)
2013-12-11 16:11 UTC, Karsten Hopp
no flags Details
root.log (114.51 KB, text/plain)
2013-12-11 16:12 UTC, Karsten Hopp
no flags Details

Description Karsten Hopp 2013-12-11 16:11:47 UTC
Created attachment 835354 [details]
build.log

Description of problem:
freeipa fails to build on ppc64, but completes on ppc(32). There are many stack overflow errors in the build log (attached)

Version-Release number of selected component (if applicable):
freeipa-3.3.3-2.fc20

How reproducible:
always

Steps to Reproduce:
1. ppc-koji build --scratch f20 freeipa-3.3.3-2.fc20.src.rpm
2.
3.

Actual results:
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1568529

Comment 1 Karsten Hopp 2013-12-11 16:12:11 UTC
Created attachment 835355 [details]
root.log

Comment 2 Martin Kosek 2013-12-11 16:26:45 UTC
Petr1, any idea about this bug? This is in the rhino part.

Comment 3 Petr Vobornik 2013-12-11 17:49:52 UTC
Default Java Stack size is not large enough on some archs/configuration. This is most likely the case.

We should fix it by this patch which I've created in July: https://www.redhat.com/archives/freeipa-devel/2013-July/msg00393.html

Comment 4 Martin Kosek 2013-12-13 14:32:10 UTC
Fixed upstream:

commit e1a7c33cced24eecfeba2fd1152e5cabe3f42d23
Author: Martin Kosek <mkosek>
Date:   Fri Dec 13 15:26:03 2013 +0100

    Increase Java stack size on PPC platforms
    
    Wit the default stack size, rhino segfaulted on PPC platforms.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1040576

commit 737922c563e684edb451f6541665d0ce842e207e
Author: Petr Vobornik <pvoborni>
Date:   Fri Dec 13 15:25:00 2013 +0100

    Increase stack size for Web UI builder
    
    Web UI build fails on some architectures or configuration due to
    StackOverflow. This patch increases the stack size to solve it.
    
    512k is usually enough but we encountered fail on ppc64 even with 2m,
    therefore the 8m. The build is single threaded so it shouldn't waste
    much memory.

Comment 5 Fedora Update System 2013-12-13 15:18:01 UTC
freeipa-3.3.3-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/freeipa-3.3.3-3.fc20

Comment 6 Fedora Update System 2013-12-13 17:57:14 UTC
Package freeipa-3.3.3-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeipa-3.3.3-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23354/freeipa-3.3.3-3.fc20
then log in and leave karma (feedback).

Comment 7 Dan Horák 2013-12-19 21:52:35 UTC
same problem exists on s390/s390x arches

Comment 8 Martin Kosek 2014-01-03 11:09:25 UTC
Do you have any logs or advise how to improve the situation? I tested the latest srpm and the build worked:

$ ppc-koji build --scratch f20 freeipa-3.3.3-3.fc20.src.rpm
Uploading srpm: freeipa-3.3.3-3.fc20.src.rpm
[====================================] 100% 00:00:17   4.42 MiB 255.18 KiB/sec
Created task: 1600018
Task info: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1600018
Watching tasks (this may be safely interrupted)...
...
1600018 build (f20, freeipa-3.3.3-3.fc20.src.rpm) completed successfully

Comment 9 Dan Horák 2014-01-03 11:29:28 UTC
(In reply to Martin Kosek from comment #8)
> Do you have any logs or advise how to improve the situation? I tested the
> latest srpm and the build worked:
> 
> $ ppc-koji build --scratch f20 freeipa-3.3.3-3.fc20.src.rpm
> Uploading srpm: freeipa-3.3.3-3.fc20.src.rpm
> [====================================] 100% 00:00:17   4.42 MiB 255.18
> KiB/sec
> Created task: 1600018
> Task info: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1600018
> Watching tasks (this may be safely interrupted)...
> ...
> 1600018 build (f20, freeipa-3.3.3-3.fc20.src.rpm) completed successfully

I mean the snippet bellow is required, not sure how it will behave on aarch64

@@ -366,7 +366,7 @@ done
 # Fedora spec file only: END
 
 %build
-%ifarch ppc %{power64}
+%ifarch ppc %{power64} s390 s390x
 # UI compilation segfaulted on ppc platforms when stack was lower (#1040576)
 export JAVA_STACK_SIZE="8m"
 %endif

Comment 10 Dan Horák 2014-01-03 12:30:06 UTC
scratch build with fix applied - http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1317666

without the fix - http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1316165

please apply and build the fix in both master and f20 branches

Comment 11 Martin Kosek 2014-01-03 12:40:24 UTC
Makes sense (I wonder why I read "s390" as "ppc"). I will apply this fix and build again.

Comment 12 Fedora Update System 2014-01-03 23:25:52 UTC
Package freeipa-3.3.3-4.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeipa-3.3.3-4.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23354/freeipa-3.3.3-4.fc20
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2014-01-29 03:08:13 UTC
freeipa-3.3.3-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.