Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38689 - emerge gkrellm fails for gkrellm-2.1.23 on a gcc segfault in the mail.c source file
Summary: emerge gkrellm fails for gkrellm-2.1.23 on a gcc segfault in the mail.c sourc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-19 01:59 UTC by Sunit M. Das
Modified: 2004-01-23 12:32 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 Sunit M. Das 2004-01-19 01:59:32 UTC
I run 'emerge gkrellm', emerge correctly identifies gkrellm-2.1.23 as the most current for me, downloads successfully, untars and begins building. I have gcc 3.2.1, which then successfully compiles some source, and segfaults on 'mail.c'.

Following is a copy of the ebuild output:

zion root # emerge gkrellm
Calculating dependencies ...done!
>>> emerge (1 of 1) app-admin/gkrellm-2.1.23 to /
>>> Downloading http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/gkrellm-2.1.23.tar.bz2
--00:18:36--  http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/gkrellm-2.1.23.tar.bz2
           => `/usr/portage/distfiles/gkrellm-2.1.23.tar.bz2'
Resolving www.ibiblio.org... done.
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/gkrellm-2.1.23.tar.bz2 [following]
--00:18:42--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/gkrellm-2.1.23.tar.bz2
           => `/usr/portage/distfiles/gkrellm-2.1.23.tar.bz2'
Resolving distro.ibiblio.org... done.
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 624,945 [application/x-tar]

100%[====================================>] 624,945        5.01K/s    ETA 00:00

00:20:46 (5.01 KB/s) - `/usr/portage/distfiles/gkrellm-2.1.23.tar.bz2' saved [624945/624945]

>>> md5 ;-) gkrellm-2.1.23.tar.bz2
>>> Unpacking source...
>>> Unpacking gkrellm-2.1.23.tar.bz2
>>> Source unpacked.
gtk2
echo "prefix=/usr" > gkrellm.pc
echo "Name: GKrellM" >> gkrellm.pc
echo "Description: Extensible GTK system monitoring application" >> gkrellm.pc
echo "Version: 2.1.23" >> gkrellm.pc
echo "Requires: gtk+-2.0 >= 2.0.0" >> gkrellm.pc
echo "Cflags: -I/usr/include" >> gkrellm.pc
(cd po && make all)
make[1]: Entering directory `/usr/local/tmp/portage/gkrellm-2.1.23/work/gkrellm-2.1.23/po'
msgfmt -f -v -o cs.mo cs.po
msgfmt -f -v -o da.mo da.po
511 translated messages, 8 untranslated messages.
msgfmt -f -v -o de.mo de.po
506 translated messages, 2 fuzzy translations, 11 untranslated messages.
msgfmt -f -v -o es.mo es.po
511 translated messages, 8 untranslated messages.
msgfmt -f -v -o fr.mo fr.po
506 translated messages, 2 fuzzy translations, 11 untranslated messages.
msgfmt -f -v -o it.mo it.po
519 translated messages.
msgfmt -f -v -o ja.mo ja.po
506 translated messages, 2 fuzzy translations, 11 untranslated messages.
msgfmt -f -v -o nl.mo nl.po
508 translated messages, 3 fuzzy translations, 8 untranslated messages.
msgfmt -f -v -o pl.mo pl.po
509 translated messages481 translated messages, 9 fuzzy translations, 29 untranslated messages.
msgfmt -f -v -o ru.mo ru.po
, 2 fuzzy translations, 8 untranslated messages.
msgfmt -f -v -o sl.mo sl.po
467 translated messages, 10 fuzzy translations, 42 untranslated messages.
msgfmt -f -v -o sv.mo sv.po
506 translated messages, 2 fuzzy translations, 11 untranslated messages.
482 translated messages, 12 fuzzy translations, 25 untranslated messages.
make[1]: Leaving directory `/usr/local/tmp/portage/gkrellm-2.1.23/work/gkrellm-2.1.23/po'
(cd src && make gkrellm)
make[1]: Entering directory `/usr/local/tmp/portage/gkrellm-2.1.23/work/gkrellm-2.1.23/src'
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o main.o main.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o alerts.o alerts.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o battery.o battery.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o base64.o base64.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o clock.o clock.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o cpu.o cpu.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o disk.o disk.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o fs.o fs.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o hostname.o hostname.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o inet.o inet.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o mail.o mail.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o mem.o mem.c
gcc -Wall -O2 -I.. `pkg-config --cflags gtk+-2.0 gthread-2.0`   -DENABLE_NLS -DLOCALEDIR=\"/usr/share/locale\" -mcpu=athlon -O3 -pipe   -c -o net.o net.c
mail.c: In function `authtype_from_string':
mail.c:4036: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[1]: *** [mail.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/local/tmp/portage/gkrellm-2.1.23/work/gkrellm-2.1.23/src'
make: *** [all] Error 2

!!! ERROR: app-admin/gkrellm-2.1.23 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)

zion root # 

(end of the output)

Apparently we want a full bug report with preprocessed source. I think I know what preprocessed source is (the c preprocessor does all its DEFINE's and IFDEFS and comes up with straight c files, right? those get cached somewhere?). Supposedly here on bugs.gentoo.org there are instructions, but they don't happen to be floating around the huge 'Report Bug' link, so I haven't seen them yet.

I haven't attempted to reproduce it because that would certainly wipe out what pieces of compilation (perhaps preprocessed source) that we *do* have, and hence could make it tougher to track? I'm really not sure. Anyway, I've never had an ebuild fail before on my gentoo box here, for nearly two years running. May sound like a miracle to some, but perhaps I've been blessed, and was shocked that it segfaulted in an app that so many people use. So that's why my bug report sucks so bad; never had to file one.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Should have completed ebuild process successfully, build and installed the
gkrellm binary.

Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20 i686 AMD Duron(tm) Processor
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/local/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode foomaticdb gif gtk2 jpeg kde gnome libg++
mad mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms
xv zlib gdbm berkdb slang readline arts tetex svga java X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt opengl mozilla scanner"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon -O3 -pipe"
CXXFLAGS="-mcpu=athlon -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Sunit M. Das 2004-01-19 02:02:44 UTC
Argh. Is there any way I can edit the description to wrap the really long lines? If I would have known they were displayed in a 'pre' tag, I'd have made it look sane. This is terrible, and I apologize.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-01-19 03:42:51 UTC
could you try 2.1.24 ?
Comment 3 Sunit M. Das 2004-01-19 12:15:07 UTC
Well, I have no moral opposition to it :) Seriously, though, 2.1.23 is the version that was chosen by emerge... I'm not certain how to make emerge use a version that isn't in my portage tree. Do I run 'emerge gkrellm-2.1.24'? Is 2.1.24 the current one in portage so that I should 'emerge sync' when I get home?

Anyway, I'd be happy to try to emerge a newer ebuild version, but just grabbing 
the tarball and building it from scratch places it outside of my portage 
tree and doesn't really tell us why the ebuild failed.

I'm sure I can compile up a copy of gkrellm, because I've done it in a couple of slackware boxes (one last week and one last summer)
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2004-01-20 15:21:17 UTC
emerge /path/to/foo.ebuild
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2004-01-22 16:21:30 UTC
closing with 2.1.24 stable
Comment 6 Sunit M. Das 2004-01-23 12:32:18 UTC
Yep, thanks! Ebuilding 2.1.24 was successful. Before I tried that, I attempted to ebuild 2.1.23 and it failed repeatedly. I don't know what was changed, but it did the trick, thank you so much!