<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>27417</bug_id>
          
          <creation_ts>2003-08-27 05:12 0000</creation_ts>
          <short_desc>gtetrinet segfaults searching for .png images</short_desc>
          <delta_ts>2003-08-28 08:50:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://gtetrinet.sf.net</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>brainstorm@nopcode.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>brainstorm@nopcode.org</who>
            <bug_when>2003-08-27 05:12:12 0000</bug_when>
            <thetext>gtetrinet 0.7.1 works perfectly but 0.7.3 segfaults. If I do a strace (output simplified): 
 
... 
open(&quot;/usr/share/pixmaps/xfree/default/cursors/arrow&quot;, O_RDONLY) = -1 ENOENT (No 
 such file or directory) 
open(&quot;/usr/share/games/pixmaps/gtetrinet/team.png&quot;, 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=&quot;x86 ~x86&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-march=athlon -O2 -pipe -mmmx -m3dnow&quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
COMPILER=&quot;gcc3&quot; 
CONFIG_PROTECT=&quot;/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&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot; 
CXXFLAGS=&quot;-march=athlon -O2 -pipe -mmmx -m3dnow&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;ccache autoaddcvs sandbox distcc userpriv usersandbox notitles cvs&quot; 
GENTOO_MIRRORS=&quot;http://ftp.caliu.info/pub/gentoo&quot; 
MAKEOPTS=&quot;-j4&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot; 
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot; 
USE=&quot;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&quot; 
 
Additional strace info: 
 
close(14)                               = 0 
open(&quot;/lib/i686/mmx/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64(&quot;/lib/i686/mmx&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
open(&quot;/lib/i686/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64(&quot;/lib/i686&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
open(&quot;/lib/mmx/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64(&quot;/lib/mmx&quot;, 0xbfffe8d0)          = -1 ENOENT (No such file or directory) 
open(&quot;/lib/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64(&quot;/lib&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 
open(&quot;/usr/lib/i686/mmx/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or 
directory) 
stat64(&quot;/usr/lib/i686/mmx&quot;, 0xbfffe8d0) = -1 ENOENT (No such file or directory) 
open(&quot;/usr/lib/i686/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64(&quot;/usr/lib/i686&quot;, 0xbfffe8d0)     = -1 ENOENT (No such file or directory) 
open(&quot;/usr/lib/mmx/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
stat64(&quot;/usr/lib/mmx&quot;, 0xbfffe8d0)      = -1 ENOENT (No such file or directory) 
open(&quot;/usr/lib/libXcursor.so.1.0&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) 
.... 
open(&quot;/usr/local/share/cursors/xfree/default/cursors/00000000000000000000000000000000&quot;, 
O_RDONLY) = -1 ENOENT (No such file or directory) 
open(&quot;/usr/local/share/cursors/xfree/default/index.theme&quot;, O_RDONLY) = -1 ENOENT (No such 
file or directory) 
open(&quot;/usr/share/cursors/xfree/default/cursors/00000000000000000000000000000000&quot;, 
O_RDONLY) = -1 ENOENT (No such file or directory) 
open(&quot;/usr/share/cursors/xfree/default/index.theme&quot;, 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, &quot;[Icon Theme]\nInherits=core\n&quot;, 4096) = 27 
close(14)                               = 0 
munmap(0x40021000, 4096)                = 0 
open(&quot;/usr/share/pixmaps/xfree/default/cursors/00000000000000000000000000000000&quot;, 
O_RDONLY) = -1 ENOENT (No such file or directory) 
....</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-08-28 08:50:51 0000</bug_when>
            <thetext>ok, i fixed the source so that it looks in /usr/share/pixmaps instead of /usr/share/games/pixmaps ... try out -r1 :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>