<?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>91950</bug_id>
          
          <creation_ts>2005-05-08 16:55 0000</creation_ts>
          <short_desc>Daimonin (0.96.6_BETA3) dies while loading Fatal signal: Segmentation Fault (SDL Parachute Deployed)</short_desc>
          <delta_ts>2007-02-01 13:02:27 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>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <keywords>Inclusion</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoobugs@hayward.uk.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>amd64@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoobugs@hayward.uk.com</who>
            <bug_when>2005-05-08 16:55:02 0000</bug_when>
            <thetext>I have successfully emerged version daimonin-client-0.95b-r2 and this runs fine, apart from you can&apos;t login due to version number, daimonin-client-0.96.6_beta3 emerges successfully but fails to run



Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS=&quot;~amd64&quot; emerge daimonin-client
2.daimonin or SDL_AUDIODRIVER=null ./daimonin
3.

Actual Results:  
Starts to load and you see the graphics for a brief second
I have tried SDL_AUDIODRIVER=null ./daimonin but it just exits slightly quicker

List Video Modes
All resolutions available.
VideoInfo: hardware surfaces? no
VideoInfo: windows manager? yes
VideoInfo: hw to hw blit? no
VideoInfo: hw to hw ckey blit? no
VideoInfo: hw to hw alpha blit? no
VideoInfo: sw to hw blit? no
VideoInfo: sw to hw ckey blit? no
VideoInfo: sw to hw alpha blit? no
VideoInfo: color fill? no
VideoInfo: video memory: 0KB
**** NOTE ****
With sound enabled SDL will throw a parachute
when the soundcard is disabled or not installed.
Try then to start the client with &apos;SDL_AUDIODRIVER=null ./daimonin&apos;
Read the README_LINUX.txt file for more information.
Warning: Couldn&apos;t set sound device. Reason: No available audio device
Fatal signal: Segmentation Fault (SDL Parachute Deployed)


Expected Results:  
The game to load as per the previous version

CFLAGS=&quot;-march=athlon64&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
USE=&quot;alsa -arts asf avi cdr cups directfb divx4linux dvd encode esd ethereal
foomatic db fbcongif -gnome gpm gstreamer gtk gtk2 imagemagick -ipv6 java jpeg
kde libwww multilib mmx mpeg ncurses offensive oggvorbis opengl oss pdflib pearl
plotutils png qt quicktime readline scanner samba spell tiff unicode usb wmf wmv
X xinerama xmms xv sse sse2 3dnow 3dnowex&quot;
MAKEOPTS=&quot;-j2&quot;
SYNC=&quot;rsync://hammond/gentoo-portage&quot;
JAVA_HOME=&quot;/opt/blackdown-jdk-1.4.2.01&quot;
GENTOO_MIRRORS=&quot;http://mirror.uni-c.dk/gentoo/ http://gentoo.osuosl.org/&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dystopianray@gmail.com</who>
            <bug_when>2005-11-02 05:55:47 0000</bug_when>
            <thetext>I get exactly the same error. daimonin-client-0.95b-r2 works, but can&apos;t connect  
to the server and daimonin-client-0.96.6_beta3 just fails to start in the 
manner previously described. 
 
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,   
2.6.13-gentoo-r5 x86_64)   
=================================================================   
System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+   
Gentoo Base System version 1.6.13   
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=&quot;amd64&quot;   
AUTOCLEAN=&quot;yes&quot;   
CBUILD=&quot;x86_64-pc-linux-gnu&quot;   
CFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;   
CHOST=&quot;x86_64-pc-linux-gnu&quot;   
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;   
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;   
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe&quot;   
DISTDIR=&quot;/usr/portage/distfiles&quot;   
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;   
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org   
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;   
LC_ALL=&quot;en_AU.UTF-8&quot;   
LINGUAS=&quot;en_GB&quot;   
MAKEOPTS=&quot;-j2&quot;   
PKGDIR=&quot;/usr/portage/packages&quot;   
PORTAGE_TMPDIR=&quot;/var/tmp&quot;   
PORTDIR=&quot;/usr/portage&quot;   
SYNC=&quot;rsync://rsync.au.gentoo.org/gentoo-portage&quot;   
USE=&quot;amd64 X aac alsa apache2 arts avi bash-completion berkdb bitmap-fonts cdr   
cjk crypt curl dts dvd dvdr eds emboss encode exif fam flac foomaticdb fortran   
gif gpm gtk gtk2 hal ieee1394 imlib java jpeg kde kdeenablefinal lm_sensors lzw   
lzw-tiff mad mp3 mpeg ncurses nls nptl ogg oggvorbis opengl pam pdflib perl pic   
png python qt quicktime readline sdl spell ssl tcpd tiff truetype   
truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis xine xml2   
xpm xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc&quot;   
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, PORTDIR_OVERLAY   </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dystopianray@gmail.com</who>
            <bug_when>2005-11-02 22:34:10 0000</bug_when>
            <thetext>Created an attachment (id=71984)
fixes a 64-bit compatiblity issue
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dystopianray@gmail.com</who>
            <bug_when>2005-11-02 22:34:39 0000</bug_when>
            <thetext>Created an attachment (id=71985)
fixes a 64-bit compatiblity issue
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dystopianray@gmail.com</who>
            <bug_when>2005-11-02 22:49:49 0000</bug_when>
            <thetext>The above two patches were obtained from    
http://www.freebsd.org/cgi/cvsweb.cgi/ports/games/daimonin-client/files/ and    
fix this bug. With the patches applied daimonin-client-0.96.6_beta3 will start   
normally as opposed to segfaulting almost straight away.  
  
Although even with the above two patches applied, it will still segfault when 
the client attempts to update it&apos;s files with the server. This occurs when 
anything higher than -O0 is set in the user&apos;s CFLAGS. BTW if anyone is 
wondering, I have tested it and -O0 does not fix the problem that the above two 
patches fix. It works perfectly fine for me with CFLAGS=&quot;-march=athlon64 -O0 
-pipe&quot; and CXXFLAGS=&quot;${CFLAGS}&quot; 
 
The ebuild should be changed to include the above two patches and to force -O0 
for amd64 targets. 
 
From what I understand these fixes among others are present in daimonin-cvs and 
better 64-bit support is planned for beta4, the above fixes should only be 
needed for the current release. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>blubb@gentoo.org</who>
            <bug_when>2007-02-01 13:02:27 0000</bug_when>
            <thetext>as this package is masked because of a vulnerability anyway I didn&apos;t bother to fix it and marked it -amd64</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71984</attachid>
            <date>2005-11-02 22:34 0000</date>
            <desc>fixes a 64-bit compatiblity issue</desc>
            <filename>patch-src-uncompr.c</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC4uLy4uL3NyYy91bmNvbXByLmMub3JpZwlTdW4gTm92IDMwIDIyOjU5OjMwIDIwMDMKKysr
IC4uLy4uL3NyYy91bmNvbXByLmMJV2VkIEZlYiAxNiAyMjoxMTozMiAyMDA1CkBAIC0zOSw3ICsz
OSw3IEBACiAKICAgICBzdHJlYW0ubmV4dF9vdXQgPSBkZXN0OwogICAgIHN0cmVhbS5hdmFpbF9v
dXQgPSAodUludCkqZGVzdExlbjsKLSAgICBpZiAoKHVMb25nKXN0cmVhbS5hdmFpbF9vdXQgIT0g
KmRlc3RMZW4pIHJldHVybiBaX0JVRl9FUlJPUjsKKyAgICBpZiAoKHVMb25nKXN0cmVhbS5hdmFp
bF9vdXQgIT0gKHVJbnQpKmRlc3RMZW4pIHJldHVybiBaX0JVRl9FUlJPUjsKIAogICAgIHN0cmVh
bS56YWxsb2MgPSAoYWxsb2NfZnVuYykwOwogICAgIHN0cmVhbS56ZnJlZSA9IChmcmVlX2Z1bmMp
MDsK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71985</attachid>
            <date>2005-11-02 22:34 0000</date>
            <desc>fixes a 64-bit compatiblity issue</desc>
            <filename>patch-src-wrapper.c</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC4uLy4uL3NyYy93cmFwcGVyLmMub3JpZwlUaHUgRGVjIDE4IDIyOjQzOjA4IDIwMDMKKysr
IC4uLy4uL3NyYy93cmFwcGVyLmMJV2VkIEZlYiAxNiAxMDowOToxNyAyMDA1CkBAIC00NCwxMyAr
NDQsMTUgQEAKICAgICAgICAgfQogICAgICAgICBpZighbG9nc3RyZWFtKQkJLyogc2VjdXJlOiB3
ZSBoYXZlIG5vIG9wZW4gc3RyZWFtKi8KICAgICAgICAgICAgICAgICBmbGFnID0gRkFMU0U7Ci0g
ICAgICAgIHZhX3N0YXJ0KGFwLCBmb3JtYXQpOwogICAgICAgICBpZihmbGFnKQogCQl7CisJCQl2
YV9zdGFydChhcCwgZm9ybWF0KTsKIAkJCXZmcHJpbnRmKHN0ZG91dCwgZm9ybWF0LCBhcCk7CisJ
CQl2YV9lbmQoYXApOworCQkJdmFfc3RhcnQoYXAsIGZvcm1hdCk7CiAJCQl2ZnByaW50Zihsb2dz
dHJlYW0sIGZvcm1hdCwgYXApOworCQkJdmFfZW5kKGFwKTsKIAkJfQotICAgICAgICB2YV9lbmQo
YXApOwogICAgICAgICBmZmx1c2gobG9nc3RyZWFtKTsKIAogI2VuZGlmCg==
</data>        

          </attachment>
    </bug>

</bugzilla>