Here is the symptom:
# gdb ./dosbox
GNU gdb 5.2
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "armv4l-unknown-linux-gnu"...
(gdb) r
Starting program: /hdd2/tmp/dosbox-0.61/src/dosbox
Display size = 480x640
Program received signal SIG32, Real-time event 32.
0x406a12e0 in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0 0x406a12e0 in sigsuspend () from /lib/libc.so.6
#1 0x406a12d0 in sigsuspend () from /lib/libc.so.6
#2 0x400b1208 in __pthread_create_2_1 (thread=0x348eb3c, attr=0xbffff4b4,
start_routine=0x400ac478 <RunThread>, arg=0x348d3e8) at restart.h:36
#3 0x400ac4f8 in SDL_SYS_CreateThread (thread=0x348eb38, args=0x348d3e8)
at SDL_systhread.c:99
#4 0x400ac3a8 in SDL_CreateThread (fn=0x400ad4b0 <RunTimer>, data=0x348ee58)
at SDL_thread.c:257
#5 0x400ad550 in SDL_SYS_TimerInit () at SDL_systimer.c:282
#6 0x400acda8 in SDL_TimerInit () at SDL_timer.c:90
#7 0x4007f6b4 in SDL_InitSubSystem (flags=817) at SDL.c:109
#8 0x4007f768 in SDL_Init (flags=817) at SDL.c:166
#9 0x02058278 in SDL_main (argc=1, argv=0xbffffc94) at sdlmain.cpp:919
#10 0x0207ad74 in main (argc=1, argv=0xbffffc94)
at qtopia/SDL_qtopia_main.cc:46
#11 0x4068f070 in __libc_start_main () from /lib/libc.so.6
the other thread:
0x40733634 in poll () from /lib/libc.so.6
(gdb) bt
#0 0x40733634 in poll () from /lib/libc.so.6
#1 0x400af1b8 in __pthread_manager (arg=0xfffffffc) at manager.c:148
#2 0x4073af6c in clone () from /lib/libc.so.6
#3 0xbffff4b4 in ?? ()
#4 0xbffff56c in ?? ()
Another Thread:
#0 0x407352bc in select () from /lib/libc.so.6
#1 0x400ad48c in SDL_Delay (ms=4294966782) at SDL_systimer.c:201
#2 0x400ad4fc in RunTimer (unused=0xfffffdfe) at SDL_systimer.c:273
#3 0x400ac2e4 in SDL_RunThread (data=0x348d3e8) at SDL_thread.c:218
#4 0x400ac488 in RunThread (data=0xfffffdfe) at SDL_systhread.c:82
#5 0x400af430 in pthread_start_thread (arg=0xfffffdfe) at manager.c:274
#6 0x4073af6c in clone () from /lib/libc.so.6
After continued:
1st thread:
Program received signal SIGINT, Interrupt.
0x40713294 in wait4 () from /lib/libc.so.6
(gdb) bt
#0 0x40713294 in wait4 () from /lib/libc.so.6
#1 0x40713258 in waitpid () from /lib/libc.so.6
#2 0x406b70e0 in system () from /lib/libc.so.6
#3 0x400b403c in system (line=0x400bce78 "/home/QtPalmtop/bin/chkhinge")
at wrapsyscall.c:159
#4 0x400a4010 in QT_SetVideoMode (_this=0x348cc70, current=0x348dd00,
width=640, height=400, bpp=16, flags=268435456) at SDL_sysvideo.cc:509
#5 0x4009e274 in SDL_SetVideoMode (width=640, height=400, bpp=16,
flags=268435456) at SDL_video.c:661
#6 0x020571a0 in GUI_StartUp (sec=0x348ee58) at sdlmain.cpp:609
#7 0x0206d70c in Config_::Init (this=0xbffffaf4) at ../../include/setup.h:133
#8 0x02058c30 in SDL_main (argc=1, argv=0xbffffc94) at sdlmain.cpp:972
#9 0x0207ad74 in main (argc=1, argv=0xbffffc94)
at qtopia/SDL_qtopia_main.cc:46
#10 0x4068f070 in __libc_start_main () from /lib/libc.so.6
2nd thread:
Program exited normally.
3rd thread:
(gdb) bt
#0 0x406a12e0 in sigsuspend () from /lib/libc.so.6
#1 0x406a12d0 in sigsuspend () from /lib/libc.so.6
#2 0x400b15cc in pthread_onexit_process (retcode=0, arg=0x8) at restart.h:36
#3 0x400b19a4 in __pthread_kill_other_threads_np () at pthread.c:883
#4 0x40713650 in execve () from /lib/libc.so.6
#5 0x406b70c0 in system () from /lib/libc.so.6
#6 0x400b403c in system (line=0x400bce78 "/home/QtPalmtop/bin/chkhinge")
at wrapsyscall.c:159
#7 0x400a4010 in QT_SetVideoMode (_this=0x348cc70, current=0x348dd00,
width=640, height=400, bpp=16, flags=268435456) at SDL_sysvideo.cc:509
#8 0x4009e274 in SDL_SetVideoMode (width=640, height=400, bpp=16,
flags=268435456) at SDL_video.c:661
#9 0x020571a0 in GUI_StartUp (sec=0x348ee58) at sdlmain.cpp:609
#10 0x0206d70c in Config_::Init (this=0xbffffaf4) at ../../include/setup.h:133
#11 0x02058c30 in SDL_main (argc=1, argv=0xbffffc94) at sdlmain.cpp:972
#12 0x0207ad74 in main (argc=1, argv=0xbffffc94)
at qtopia/SDL_qtopia_main.cc:46
#13 0x4068f070 in __libc_start_main () from /lib/libc.so.6
Don't why the system() call cannot return. 🙁 It seems the problem is SDL related.