Menu

#53 Seg Fault on x86-64

open
nobody
game (12)
5
2004-12-11
2004-12-11
Anonymous
No

Dunno if it has anything to do with 64 bit or not. I'm
running Gentoo bleading edge, 64-bit, no multilib.
Compiled fine, tons of warnings, but if I recall
correctly they were trivial things. Following is the
GDB backtrace, I can't seem to figure it out:

(gdb) backtrace
#0 0x000000388b3e2dff in malloc_set_state () from
/lib/libc.so.6
#1 0x000000388b3e55ee in free () from /lib/libc.so.6
#2 0x000000388b02a05e in operator delete(void*) ()
from
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/libstdc++.so.6
#3 0x000000388b02a099 in operator delete[](void*) ()
from
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/libstdc++.so.6
#4 0x00000000004b598b in
_GLOBAL__I__ZN4game17CurrentLevelIndexE ()
at festring.h:166
#5 0x0000000000587356 in __do_global_ctors_aux ()
#6 0x00000000004027a3 in _init ()

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have the same (minor warnings and a segfault)
    on amd64 as well...
    I'll wirte a mail and attach the complete logs
    LordHelmchen

     
  • Nobody/Anonymous

    Logged In: NO

    though this does not solve the problem, it seems to have
    enabled me to finally play the game:
    0)
    have multilib :-)
    1)
    emerge app-emulation/emul-linux-x86-sdl-1.0
    2)
    add "-m32" to CFLAGS in /etc/make.conf _temporally_
    3)
    emerge ivan (as 32bit)
    4)
    remove "-m32" from CFLAGS again

    Christian Harms
    me@lordhelmchen.net
    (whose Firefox seems not to like sourceforge's cookies,
    despite having sourceforge.com in the list of
    cookies-allowed domains, so he cannot loigin properly)

     
  • Javier Kohen

    Javier Kohen - 2005-05-21

    Logged In: YES
    user_id=68628

    Hi, check out my patch at
    http://sourceforge.net/tracker/index.php?func=detail&aid=1206227&group_id=32287&atid=405035
    . The game will compile cleanly and run.

    Unfortunately I'm being bitten by a font bug. However,
    that's already been reported here so I don't think it's
    AMD64 specific.

     

Log in to post a comment.