Mailing List Archive

mythgame segmentation fault when mythgame binary is defined
Hey guys!

I was wondering if anybody has experienced this..

the problem: mythgame seg. faults when executed from command line (and presumably when executed from mythfrontend though there is nothing said in that case) when *and only when* the myth game binary is defined properly.. I've heard some things about this in relation to scripts, however the xmame binary is not a script.. I don't really know, but it seems as though the problem has something to do with my libc.. upgrading to a higher version (i.e., 2.3) seems a nonoption, as it would require me to uninstall many, many packages..

Included below is a backtrace and an ls -l of my libc..

[root@courage orangey]# gdb mythgame
GNU gdb 5.2.1-2mdk (Mandrake Linux)
This GDB was configured as "i586-mandrake-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/mythgame

Program received signal SIGSEGV, Segmentation fault.
0x40965e4e in __strtol_internal () from /lib/i686/libc.so.6
Current language: auto; currently c
(gdb) backtrace
#0 0x40965e4e in __strtol_internal () from /lib/i686/libc.so.6
#1 0x40963757 in atoi () from /lib/i686/libc.so.6
#2 0x0805c775 in MameHandler::processGames() (this=0x80f5250)
at mamehandler.cpp:109
#3 0x0805bbba in GameHandler::processAllGames(MythContext*) (
context=0x80ddf50) at gamehandler.cpp:36
#4 0x0805afa1 in main (argc=1, argv=0xbffff6c4) at main.cpp:106
#5 0x40951082 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) quit
The program is running. Exit anyway? (y or n) y
[root@courage orangey]# ls /lib/i686/
libc-2.2.5.so libm-2.2.5.so libpthread-0.9.so librt-2.2.5.so
libc.so.6 libm.so.6 libpthread.so.0 librt.so.1
[root@courage orangey]# ls /lib/i686/libc.so.6 -l
lrwxrwxrwx 1 root root 13 Jan 12 23:28
/lib/i686/libc.so.6 -> libc-2.2.5.so*