Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97944 - koth dies with segmentation fault after emerge
Summary: koth dies with segmentation fault after emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-04 17:12 UTC by Jeff Mootrey
Modified: 2010-03-27 23:28 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 Jeff Mootrey 2005-07-04 17:12:04 UTC
after emerging koth and trying to run following error is reported.
20:08:13] King of the Hill (KOTH) Client version 0.8.0
[20:08:13] Copyright (C) 1999 Peter Amstutz
[20:08:13] Copyright (C) 2002, 2003 Allan Douglas
[20:08:13] KOTH comes with ABSOLUTELY NO WARRANTY
[20:08:13] This is free software, and you are welcome to redistribute it
[20:08:13] under the conditions of the GNU GPL
Segmentation fault

My Cflags for build are
CFLAGS="-march=athlon64 -O1 -pipe -fomit-frame-pointer"

GCC -v 3.4.4



Reproducible: Always
Steps to Reproduce:
1.emerge koth
2.login as user
3. /ust/bin/games/koth

Actual Results:  
segmentation fault

Expected Results:  
Not segemented faulted 

--- Invalid atom in /etc/portage/package.keywords: >=sys-libs/pam
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.4.20041,
2.6.12-ck3 x86_64)
=================================================================
System uname: 2.6.12-ck3 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 17 2005, 12:28:
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O1 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/s      
      e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/            
mail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O1 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfpe
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://g
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 arts berkdb bitmap-fonts cdr cpudetect             dvdr
dvdread esd fam firefox font-server fortran ggi gif gimp             raphics gtk
gtk2 hal imagemagick imlib ipv6 java javascript j             de kdeenablefinal
lm_sensors lzw lzw-tiff mad mp3 mpeg ncurse             engl pam perl png ppds
python qt readline sdl ssl tcpd tiff t             nts type1-fonts usb
userlocales xml2 xmms xpm xrandr xv xvid              ernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LING             Y
Comment 1 Drake Wyrm 2005-11-11 00:18:23 UTC
I disovered a similar problem with koth on my system. I recompiled it with "-O0
-g" in CFLAGS and got the following backtrace from the core dump:

#0  0xb7f7e6a4 in GGI_X_flush () from /usr/lib/ggi/display/X.so
#1  0xb7f6e9af in ggiFlush () from /usr/lib/libggi.so.2
#2  0xb7f6d470 in ggiSetMode () from /usr/lib/libggi.so.2
#3  0xb7f6d7df in ggiSetGraphMode () from /usr/lib/libggi.so.2
#4  0x08053d66 in gfxInit () at gfx.c:131
#5  0x08050134 in clInitialize (argc=1, argv=0xbfc92994) at kclient.c:301
#6  0x08053c04 in main (argc=1, argv=0xbfc92994) at kclient.c:1739

Since the problem seems to be in the functions loaded from libggi, I upgraded
from libggi-2.0.1-r1 (currently keyworded x86) to libggi-2.1.1 (currently ~x86).
I also incidentally upgraded from libgii-0.8.1 to libgii-0.9.0 in order to meet
the dependency of libggi. The koth client now starts without error.

abridged `emerge --info` info:

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) processor
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
CFLAGS="-march=athlon-tbird -Os -pipe"
CHOST="i686-pc-linux-gnu"
FEATURES="autoconfig buildpkg distlocks fixpackages maketest sandbox sfperms
strict test"
USE="x86 3dnow X aalib acl alsa bash-completion berkdb cjk crypt dga directfb
doc esd fbcon flac gdbm gif gnome gpm gtk gtk2 ipv6 java jpeg ldap mad mbox mmx
mpeg mysql ncurses nls offensive ogg oggvorbis opengl oss pam perl png python
readline sdl skey slang ssl svga tcltk tcpd tetex tiff truetype unicode xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 2 Tupone Alfredo gentoo-dev 2006-03-24 12:17:21 UTC
To solve this, need to stabilize on amd64 

media-libs/libgii-0.9.0

and

media-libs/libggi-2.1.1

in this order


alpha ppc x86

can do the same
Comment 3 Joe Jezak (RETIRED) gentoo-dev 2006-03-24 20:02:48 UTC
Marked ppc stable.
Comment 4 Joshua Jackson (RETIRED) gentoo-dev 2006-04-05 20:15:00 UTC
x86 stable \(^.^)/
Comment 5 Thomas Cort (RETIRED) gentoo-dev 2006-04-06 04:25:08 UTC
alpha stable.
Comment 6 Danny van Dyk (RETIRED) gentoo-dev 2006-05-14 15:11:44 UTC
amd64 done
Comment 7 Tupone Alfredo gentoo-dev 2006-06-01 15:53:20 UTC
Now that libggi-2.1.1 is stable this problem should disapperar