Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27417 - gtetrinet segfaults searching for .png images
Summary: gtetrinet segfaults searching for .png images
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL: http://gtetrinet.sf.net
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-27 05:12 UTC by Roman Valls
Modified: 2003-08-28 08:50 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 Roman Valls 2003-08-27 05:12:12 UTC
gtetrinet 0.7.1 works perfectly but 0.7.3 segfaults. If I do a strace (output simplified): 
 
... 
open("/usr/share/pixmaps/xfree/default/cursors/arrow", O_RDONLY) = -1 ENOENT (No 
 such file or directory) 
open("/usr/share/games/pixmaps/gtetrinet/team.png", O_RDONLY) = -1 ENOENT (No su                                
ch file or directory) 
--- SIGSEGV (Segmentation fault) --- 
... 

Reproducible: Always
Steps to Reproduce:
1. emerge gtetrinet (0.7.3) 
2. gtetrinet 
Actual Results:  
segfault. 

Expected Results:  
run flawlessly. 

Portage 2.0.49-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r4,2.3.2-r1, 2.4.22_pre2-gss) 
================================================================= 
System uname: 2.4.22_pre2-gss i686 AMD Athlon(tm) Processor 
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] 
ccache version 2.2 [enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon -O2 -pipe -mmmx -m3dnow" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /    usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon -O2 -pipe -mmmx -m3dnow" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="ccache autoaddcvs sandbox distcc userpriv usersandbox notitles cvs" 
GENTOO_MIRRORS="http://ftp.caliu.info/pub/gentoo" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 oss apm avi foomaticdb libg++ mad pdflib quicktime spell xml2 zlib gdbm berkdb 
slang readline arts bono    bo svga guile pam python imlib oggvorbis motif opengl scanner 
3dnow mmx acpi alsa xmms mikmod apache2 cdr dga dv    d esd fbcon flash gb gphoto2 imap 
ldap maildir mbox mozilla nocardbus usb perl samba sasl ssl crypt truetype cup    s encode xv 
X tetex tcpd gpm tiff gif png jpeg mpeg gtk gtkhtml gtk+ qtmt qt kde gnome tcltk wmf lcms xml 
java l    ibwww ncurses -nls socks5 sdl lirc gtk2 xinerama vim-with-x doc ipv6 debug" 
 
Additional strace info: 
 
close(14)                               = 0 
open("/lib/i686/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/lib/i686/mmx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
open("/lib/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
open("/lib/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/lib/mmx", 0xbfffe8d0)          = -1 ENOENT (No such file or directory) 
open("/lib/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
open("/usr/lib/i686/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or 
directory) 
stat64("/usr/lib/i686/mmx", 0xbfffe8d0) = -1 ENOENT (No such file or directory) 
open("/usr/lib/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/usr/lib/i686", 0xbfffe8d0)     = -1 ENOENT (No such file or directory) 
open("/usr/lib/mmx/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64("/usr/lib/mmx", 0xbfffe8d0)      = -1 ENOENT (No such file or directory) 
open("/usr/lib/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or directory) 
.... 
open("/usr/local/share/cursors/xfree/default/cursors/00000000000000000000000000000000", 
O_RDONLY) = -1 ENOENT (No such file or directory) 
open("/usr/local/share/cursors/xfree/default/index.theme", O_RDONLY) = -1 ENOENT (No such 
file or directory) 
open("/usr/share/cursors/xfree/default/cursors/00000000000000000000000000000000", 
O_RDONLY) = -1 ENOENT (No such file or directory) 
open("/usr/share/cursors/xfree/default/index.theme", O_RDONLY) = 14 
fstat64(14, {st_mode=S_IFREG|0755, st_size=27, ...}) = 0 
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40021000 
read(14, "[Icon Theme]\nInherits=core\n", 4096) = 27 
close(14)                               = 0 
munmap(0x40021000, 4096)                = 0 
open("/usr/share/pixmaps/xfree/default/cursors/00000000000000000000000000000000", 
O_RDONLY) = -1 ENOENT (No such file or directory) 
....
Comment 1 SpanKY gentoo-dev 2003-08-28 08:50:51 UTC
ok, i fixed the source so that it looks in /usr/share/pixmaps instead of /usr/share/games/pixmaps ... try out -r1 :)