Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77018 - segfault during the running of an ebuild.sh from emerge --resume (on and update at firefox 1.0)
Summary: segfault during the running of an ebuild.sh from emerge --resume (on and upda...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-07 06:09 UTC by Daniel Lamblin
Modified: 2005-01-07 18:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Lamblin 2005-01-07 06:09:01 UTC
"
Install GRP 2004.3-r1 with bin packages from disc including firefox.
Works fine.
Followed by `emerge --sync`
a necessary `emerge portage`
then `emerge -u world` [71 pkgs]
then it failed on firefox see other bug 74281 [or 73758] for that,
`emerge --resume`
resuming however caused a segfault in ebuild.sh
HANGS BUILDING WORKDIR
any further resumes hang outright without saying anything about the workdir.
probably going to delete the cache on firefox after the skipfirst resume is done.
"

Reproducible: Always
Steps to Reproduce:
1.install GRP 2004.3-r1 with bin pkg for firefox [i686] amoung others
2.emerge --sync
3.emerge portage [as per advice of sync]
4.emerge -u world
5.[stops at firefox] nohup emerge --resume &
HANGS 15 mins [I was tailing the nohup.out... I'm not being silly]
6. fg
7. control-c
HANGS
8. kill <PID:emerge>
NOTHING
9. kill <PID:ebuld.sh>
DEAD
10. `emerge --resume` as often as you like, it's not going to be a happy day.
control-c won't even stop it. you've got to kill the ebuild.sh
11. resume living with `emerge --resume --skipfirst`

Actual Results:  
g++ -o nsSelectsAreaFrame.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -
D_IMPL_NS_LAYOUT -I./../../../xul/base/src -I./../../../xul/content/src -
I./../../style/src -I./../../forms/src -I./../../../base/src -
I./../../../../content/events/src -I.  -I../../../../dist/include/xpcom -
I../../../../dist/include/string -I../../../../dist/include/dom -
I../../../../dist/include/content -I../../../../dist/include/gfx -
I../../../../dist/include/widget -I../../../../dist/include/locale -
I../../../../dist/include/view -I../../../../dist/include/necko -
I../../../../dist/include/js -I../../../../dist/include/caps -
I../../../../dist/include/pref -I../../../../dist/include/htmlparser -
I../../../../dist/include/webshell -I../../../../dist/include/plugin -
I../../../../dist/include/docshell -I../../../../dist/include/mimetype -
I../../../../dist/include/webbrwsr -I../../../../dist/include/oji -
I../../../../dist/include/util -I../../../../dist/include/unicharutil -
I../../../../dist/include/lwbrk -I../../../../dist/include/imglib2 -
I../../../../dist/include/accessibility -I../../../../dist/include/xpconnect -
I../../../../dist/include/java -I../../../../dist/include/exthandler -
I../../../../dist/include/intl -I../../../../dist/include/uconv -
I../../../../dist/include/layout -I../../../../dist/include -
I/var/tmp/portage/mozilla-firefox-1.0/work/mozilla/dist/include/nspr     -
I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions  -
Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-
ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=i686 -Wno-
deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-
sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -
include ../../../../mozilla-config.h -Wp,-MD,.deps/nsSelectsAreaFrame.pp 
nsSelectsAreaFrame.cpp
nsSimplePageSequence.cpp
g++ -o nsSimplePageSequence.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -
D_IMPL_NS_LAYOUT -I./../../../xul/base/src -I./../../../xul/content/src -
I./../../style/src -I./../../forms/src -I./../../../base/src -
I./../../../../content/events/src -I.  -I../../../../dist/include/xpcom -
I../../../../dist/include/string -I../../../../dist/include/dom -
I../../../../dist/include/content -I../../../../dist/include/gfx -
I../../../../dist/include/widget -I../../../../dist/include/locale -
I../../../../dist/include/view -I../../../../dist/include/necko -
I../../../../dist/include/js -I../../../../dist/include/caps -
I../../../../dist/include/pref -I../../../../dist/include/htmlparser -
I../../../../dist/include/webshell -I../../../../dist/include/plugin -
I../../../../dist/include/docshell -I../../../../dist/include/mimetype -
I../../../../dist/include/webbrwsr -I../../../../dist/include/oji -
I../../../../dist/include/util -I../../../../dist/include/unicharutil -
I../../../../dist/include/lwbrk -I../../../../dist/include/imglib2 -
I../../../../dist/include/accessibility -I../../../../dist/include/xpconnect -
I../../../../dist/include/java -I../../../../dist/include/exthandler -
I../../../../dist/include/intl -I../../../../dist/include/uconv -
I../../../../dist/include/layout -I../../../../dist/include -
I/var/tmp/portage/mozilla-firefox-1.0/work/mozilla/dist/include/nspr     -
I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions  -
Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-
ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=i686 -Wno-
deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-
sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -
include ../../../../mozilla-config.h -Wp,-MD,.deps/nsSimplePageSequence.pp 
nsSimplePageSequence.cpp
In file included from nsSelectsAreaFrame.cpp:42:
nsFrame.h:392: warning: `virtual void* nsFrame::GetProperty(nsIPresContext*,
   nsIAtom*, int) const' was hidden
../../forms/src/nsListControlFrame.h:138: warning:   by `virtual nsresult
   nsListControlFrame::GetProperty(nsIAtom*, nsAString&)'
nsFrame.h:397: warning: `virtual nsresult nsFrame::SetProperty(nsIPresContext*,
   nsIAtom*, void*, void (*)(nsIPresContext*, nsIFrame*, nsIAtom*, void*))' was
   hidden
../../forms/src/nsListControlFrame.h:137: warning:   by `virtual nsresult
   nsListControlFrame::SetProperty(nsIPresContext*, nsIAtom*, const nsAString&)
   '
nsSpacerFrame.cpp
g++ -o nsSpacerFrame.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -
D_IMPL_NS_LAYOUT -I./../../../xul/base/src -I./../../../xul/content/src -
I./../../style/src -I./../../forms/src -I./../../../base/src -
I./../../../../content/events/src -I.  -I../../../../dist/include/xpcom -
I../../../../dist/include/string -I../../../../dist/include/dom -
I../../../../dist/include/content -I../../../../dist/include/gfx -
I../../../../dist/include/widget -I../../../../dist/include/locale -
I../../../../dist/include/view -I../../../../dist/include/necko -
I../../../../dist/include/js -I../../../../dist/include/caps -
I../../../../dist/include/pref -I../../../../dist/include/htmlparser -
I../../../../dist/include/webshell -I../../../../dist/include/plugin -
I../../../../dist/include/docshell -I../../../../dist/include/mimetype -
I../../../../dist/include/webbrwsr -I../../../../dist/include/oji -
I../../../../dist/include/util -I../../../../dist/include/unicharutil -
I../../../../dist/include/lwbrk -I../../../../dist/include/imglib2 -
I../../../../dist/include/accessibility -I../../../../dist/include/xpconnect -
I../../../../dist/include/java -I../../../../dist/include/exthandler -
I../../../../dist/include/intl -I../../../../dist/include/uconv -
I../../../../dist/include/layout -I../../../../dist/include -
I/var/tmp/portage/mozilla-firefox-1.0/work/mozilla/dist/include/nspr     -
I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions  -
Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-
ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=i686 -Wno-
deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-
sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -
include ../../../../mozilla-config.h -Wp,-MD,.deps/nsSpacerFrame.pp 
nsSpacerFrame.cpp

Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
In file included from nsSimplePageSequence.cpp:39:
nsContainerFrame.h:72: warning: `virtual nsresult
   nsContainerFrame::Paint(nsIPresContext*, nsIRenderingContext&, const
   nsRect&, nsFramePaintLayer, unsigned int)' was hidden
nsSimplePageSequence.h:94: warning:   by `virtual nsresult
   nsSimplePageSequenceFrame::Paint(nsIPresContext*, nsIRenderingContext&,
   const nsRect&, nsFramePaintLayer)'
In file included from ../../forms/src/nsFormControlHelper.h:47,
                 from nsSimplePageSequence.cpp:69:
../../../../dist/include/content/nsINameSpaceManager.h:-66865: internal 
compiler error: Segmentation
   fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
nsFrame.h:241: warning: `virtual nsIAtom* nsFrame::GetType() const' was hidden
nsSpacerFrame.cpp:61: warning:   by `PRUint8 SpacerFrame::GetType()'
nsSplittableFrame.cpp
g++ -o nsSplittableFrame.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -
D_IMPL_NS_LAYOUT -I./../../../xul/base/src -I./../../../xul/content/src -
I./../../style/src -I./../../forms/src -I./../../../base/src -
I./../../../../content/events/src -I.  -I../../../../dist/include/xpcom -
I../../../../dist/include/string -I../../../../dist/include/dom -
I../../../../dist/include/content -I../../../../dist/include/gfx -
I../../../../dist/include/widget -I../../../../dist/include/locale -
I../../../../dist/include/view -I../../../../dist/include/necko -
I../../../../dist/include/js -I../../../../dist/include/caps -
I../../../../dist/include/pref -I../../../../dist/include/htmlparser -
I../../../../dist/include/webshell -I../../../../dist/include/plugin -
I../../../../dist/include/docshell -I../../../../dist/include/mimetype -
I../../../../dist/include/webbrwsr -I../../../../dist/include/oji -
I../../../../dist/include/util -I../../../../dist/include/unicharutil -
I../../../../dist/include/lwbrk -I../../../../dist/include/imglib2 -
I../../../../dist/include/accessibility -I../../../../dist/include/xpconnect -
I../../../../dist/include/java -I../../../../dist/include/exthandler -
I../../../../dist/include/intl -I../../../../dist/include/uconv -
I../../../../dist/include/layout -I../../../../dist/include -
I/var/tmp/portage/mozilla-firefox-1.0/work/mozilla/dist/include/nspr     -
I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions  -
Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-
ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=i686 -Wno-
deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-
sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -
include ../../../../mozilla-config.h -Wp,-MD,.deps/nsSplittableFrame.pp 
nsSplittableFrame.cpp
nsReflowPath.cpp
g++ -o nsReflowPath.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -
D_IMPL_NS_LAYOUT -I./../../../xul/base/src -I./../../../xul/content/src -
I./../../style/src -I./../../forms/src -I./../../../base/src -
I./../../../../content/events/src -I.  -I../../../../dist/include/xpcom -
I../../../../dist/include/string -I../../../../dist/include/dom -
I../../../../dist/include/content -I../../../../dist/include/gfx -
I../../../../dist/include/widget -I../../../../dist/include/locale -
I../../../../dist/include/view -I../../../../dist/include/necko -
I../../../../dist/include/js -I../../../../dist/include/caps -
I../../../../dist/include/pref -I../../../../dist/include/htmlparser -
I../../../../dist/include/webshell -I../../../../dist/include/plugin -
I../../../../dist/include/docshell -I../../../../dist/include/mimetype -
I../../../../dist/include/webbrwsr -I../../../../dist/include/oji -
I../../../../dist/include/util -I../../../../dist/include/unicharutil -
I../../../../dist/include/lwbrk -I../../../../dist/include/imglib2 -
I../../../../dist/include/accessibility -I../../../../dist/include/xpconnect -
I../../../../dist/include/java -I../../../../dist/include/exthandler -
I../../../../dist/include/intl -I../../../../dist/include/uconv -
I../../../../dist/include/layout -I../../../../dist/include -
I/var/tmp/portage/mozilla-firefox-1.0/work/mozilla/dist/include/nspr     -
I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions  -
Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-
ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=i686 -Wno-
deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-
sections -O2  -I/usr/X11R6/include -DMOZILLA_CLIENT -
include ../../../../mozilla-config.h -Wp,-MD,.deps/nsReflowPath.pp 
nsReflowPath.cpp
The bug is not reproducible, so it is likely a hardware or OS problem.
gmake[5]: *** [nsSimplePageSequence.o] Error 1
gmake[5]: *** Waiting for unfinished jobs....
The bug is not reproducible, so it is likely a hardware or OS problem.
gmake[5]: *** [nsPresShell.o] Error 1
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-
1.0/work/mozilla/layout/html/base'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-
1.0/work/mozilla/layout/html'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-
1.0/work/mozilla/layout'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/mozilla-firefox-1.0 failed.
!!! Function src_compile, Line 88, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

[2]   Exit 127                nohup fg
tux root # nohup emerge --resume &
[1] 14959
tux root # nohup: appending output to `nohup.out'

tux root # tail -f nohup.out
/usr/lib/portage/bin/ebuild.sh: line 1732: 14989 Segmentation fault      rm -
rf "${WORKDIR}"
>>> Checking firefox-1.0-source.tar.bz2's mtime...
>>> Not marked as unpacked; recreating WORKDIR...
control-C
tux root # fg
nohup emerge --resume


[1]+  Stopped                 nohup emerge --resume
tux root # ps
  PID TTY          TIME CMD
 1679 pts/0    00:00:00 bash
14959 pts/0    00:00:03 emerge
15020 pts/0    00:00:00 sandbox
15021 pts/0    00:00:01 ebuild.sh
15046 pts/0    00:00:00 rm
15166 pts/0    00:00:00 ps
tux root # bg
[1]+ nohup emerge --resume &
tux root # kill 14959
tux root # ps
  PID TTY          TIME CMD
 1679 pts/0    00:00:00 bash
14959 pts/0    00:00:03 emerge
15020 pts/0    00:00:00 sandbox
15021 pts/0    00:00:01 ebuild.sh
15046 pts/0    00:00:00 rm
15167 pts/0    00:00:00 ps
tux root # ps
  PID TTY          TIME CMD
 1679 pts/0    00:00:00 bash
14959 pts/0    00:00:03 emerge
15020 pts/0    00:00:00 sandbox
15021 pts/0    00:00:01 ebuild.sh
15046 pts/0    00:00:00 rm
15168 pts/0    00:00:00 ps
tux root # kill 15021
tux root # ps
  PID TTY          TIME CMD
 1679 pts/0    00:00:00 bash
15046 pts/0    00:00:00 rm
15169 pts/0    00:00:00 ps
[1]+  Exit 1                  nohup emerge --resume
tux root # emerge --resume
*** Resuming merge...
>>> emerge (1 of 22) net-www/mozilla-firefox-1.0 to /

[1]+  Stopped                 emerge --resume
 
more of the same hang on --resume, must skip first
tux root # emerge --resume --skipfirst
*** Resuming merge...
>>> emerge (1 of 21) sys-apps/shadow-4.0.5-r2 to /
>>> Downloading ftp://pandemonium.tiscali.de/pub/gentoo/distfiles/shadow-
4.0.5.tar.bz2
--04:04:38--  ftp://pandemonium.tiscali.de/pub/gentoo/distfiles/shadow-
4.0.5.tar.bz2
           => `/usr/portage/distfiles/shadow-4.0.5.tar.bz2'
Resolving pandemonium.tiscali.de... 195.52.219.14
Connecting to pandemonium.tiscali.de[195.52.219.14]:21... connected.
Logging in as anonymous ... Logged in!

[life goes on]

Expected Results:  
a resumption of building.  NOT hanging at recreating WORKDIR [15 minutes now 
on pentiumII 400]

tux root # emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-
r1, 2.4.26-gentoo-r9 i686)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ 
ftp://mirrors.tds.net/gentoo  ftp://ftp-stud.fht-
esslingen.de/pub/Mirrors/gentoo/ 
http://212.219.56.152/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X acl apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd fam 
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 ipv6 jpeg kde ldap libwww mad 
mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png 
python qt quicktime readline ruby samba sdl spell ssl svga tcltk tcpd tiff 
truetype xml2 xmms xv zlib"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-01-07 18:46:12 UTC
/usr/lib/portage/bin/ebuild.sh: line 1732: 14989 Segmentation fault      rm -
rf "${WORKDIR}"


I believe that's either CPU-incompatible binaries or some bad fs corruption. Other than the above, you have "internal compiler errors" all over the place too. Check and repair your filesystem, run memtest, check to make sure your cpu isn't too hot and ensure that you haven't accidentally used the incorrect tbz2 packages.