Bug 742530

Summary: segmentation fault during build
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: seedAssignee: Michel Alexandre Salim <michel>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: michel
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 18:58:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Karsten Hopp 2011-09-30 13:12:06 UTC
Description of problem:
seed fails to build on ppc/ppc64:

Making all in readline
make[4]: Entering directory `/builddir/build/BUILD/seed-3.1.1/doc/modules/readline'
../../../src/seed ../../../doc/modules/make-functions.js ../../../doc/modules/readline/readline.js > ../../../doc/modules/readline/readline-funcs.xml
/bin/sh: line 1: 29039 Segmentation fault      ../../../src/seed ../../../doc/modules/make-functions.js ../../../doc/modules/readline/readline.js > ../../../doc/modules/readline/readline-funcs.xml
make[4]: Leaving directory `/builddir/build/BUILD/seed-3.1.1/doc/modules/readline'
make[3]: Leaving directory `/builddir/build/BUILD/seed-3.1.1/doc/modules'
make[2]: Leaving directory `/builddir/build/BUILD/seed-3.1.1/doc'
make[1]: Leaving directory `/builddir/build/BUILD/seed-3.1.1'
RPM build errors:
make[4]: *** [readline-funcs.xml] Error 139
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1


strace shows that there is a memory allocation problem:
> cd rpmbuild/BUILD/seed-3.1.1/doc/modules/readline
> ../../../src/seed ../../../doc/modules/make-functions.js ../../../doc/modules/readline/readline.js > ../../../doc/modules/readline/readline-funcs.xml
....
[pid 11519] read(3, "00 fd:01 20421                          /usr/lib64/libpangoft2-1.0.so.0.2903.0\n8064480000-8064490000 r--p 00030000 fd:01 20421                          /usr/lib64/libpangoft2-1.0.so.0.2903.0\n806449000"..., 1024) = 1024
[pid 11519] read(3, "                     /usr/lib64/libatk-1.0.so.0.20200.1\n8064580000-8064590000 r--p 00020000 fd:01 6991                           /usr/lib64/libatk-1.0.so.0.20200.1\n8064590000-80645a0000 rw-p 00030000 "..., 1024) = 1024
[pid 11519] read(3, "4d70000 r--p 00000000 fd:01 20079                          /usr/lib64/libcairo-gobject.so.2.11000.2\n8064d70000-8064d80000 rw-p 00010000 fd:01 20079                          /usr/lib64/libcairo-gobject"..., 1024) = 1024
[pid 11519] read(3, "          /usr/lib64/libenchant.so.1.6.0\n8064ff0000-8065000000 rw-p 00000000 fd:01 8999                           /usr/lib64/libenchant.so.1.6.0\n8065010000-8065020000 r-xp 00000000 fd:01 9075         "..., 1024) = 1024
[pid 11519] read(3, "3                          /usr/lib64/libgstpbutils-0.10.so.0.24.0\n80653e0000-80653f0000 r-xp 00000000 fd:01 21307                          /usr/lib64/libgstvideo-0.10.so.0.24.0\n80653f0000-8065400000 "..., 1024) = 1024
[pid 11519] read(3, "000 fd:01 9599                           /usr/lib64/libgstbase-0.10.so.0.29.0\n8067720000-8067740000 r-xp 00000000 fd:01 21377                          /usr/lib64/libgstinterfaces-0.10.so.0.24.0\n806774"..., 1024) = 1024
[pid 11519] read(3, ".so.0.0.0\nfff83ac0000-fff83ad0000 r--p 00020000 fd:02 7343929                      /path/rpmbuild/BUILD/seed-3.1.1/libseed/.libs/libseed-gtk3.so.0.0.0\nfff83ad0000-fff83ae0000 rw"..., 1024) = 546
[pid 11519] close(3)                    = 0
[pid 11519] munmap(0xfff82ce0000, 4096) = 0
[pid 11519] sched_getaffinity(11519, 32, {ff, 0}) = 16
[pid 11519] mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xfff82ce0000
[pid 11519] mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xfff82cd0000
[pid 11519] mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfff824d0000
[pid 11519] mprotect(0xfff824d0000, 65536, PROT_NONE) = 0
[pid 11519] clone(Process 11535 attached
child_stack=0xfff82cce800, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xfff82ccf030, tls=0xfff82cd6670, child_tidptr=0xfff82ccf030) = 11535
[pid 11519] mmap(NULL, 4194304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xfff820d0000
[pid 11519] mmap(NULL, 18446744073709518848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory)
[pid 11519] --- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xbbadbeef} (Segmentation fault) ---
[pid 11534] +++ killed by SIGSEGV +++
[pid 11535] +++ killed by SIGSEGV +++


This is on a ppc64 machine with enough free memory:
> free
             total       used       free     shared    buffers     cached
Mem:       4144000    4003648     140352          0     139264    3533888


Version-Release number of selected component (if applicable):
seed-3.1.1-2.fc16


Steps to Reproduce:
1. ppc-koji build --scratch dist-f16 seed-3.1.1-2.fc16.src.rpm
2.
3.
  
Actual results:
http://ppc.koji.fedoraproject.org/koji/getfile?taskID=289217&name=build.log

Comment 2 Fedora End Of Life 2013-01-16 15:51:19 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Fedora End Of Life 2013-02-13 18:58:38 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.