Thanks Daniel, > I will need more information to help you. Useful things: strace of > gdb, backtrace at the time of the hang, whatever else you can think of > to try... Ok, the stack is easy: #0 0xffffe410 in __kernel_vsyscall () #1 0x55628b7c in sigsuspend () from /lib/tls/libc.so.6 #2 0x08097279 in linux_nat_wait (ptid={pid = -1, lwp = 0, tid = 0}, ourstatus=0xffffcc40) at linux-nat.c:2169 #3 0x0809359a in thread_db_wait (ptid={pid = -1, lwp = 0, tid = 0}, ourstatus=0xffffcc40) at ../gdb/linux-thread-db.c:932 #4 0x080e4729 in wait_for_inferior () at infrun.c:998 #5 0x080e44b9 in proceed (addr=0, siggnal=TARGET_SIGNAL_0, step=0) at infrun.c:826 #6 0x0807b426 in find_default_create_inferior ( exec_file=0x82a3760 "/users/david/a.out", allargs=0x82e58d0 "", env=0x828b848, from_tty=1) at target.c:1568 #7 0x080e1961 in run_command_1 (args=0x0, from_tty=1, tbreak_at_main=0) at infcmd.c:493 #8 0x080e1a9f in run_command (args=0x0, from_tty=1) at infcmd.c:500 #9 0x080a9fb2 in do_cfunc (c=0xfffffffc, args=0x0, from_tty=1) at ../gdb/cli/cli-decode.c:57 #10 0x080ab97e in cmd_func (cmd=0x828b3e8, args=0x0, from_tty=1) at ../gdb/cli/cli-decode.c:1636 But the strace was kinda painful. david@dserver:~> strace32 -f -ogdb.strace./gdb a.out strace32: can't fopen 'gdb.strace./gdb': No such file or directory david@dserver:~> strace32 -f -ogdb.strace ./gdb a.out GNU gdb 6.3.50.20050310 Copyright 2004 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) b main Breakpoint 1 at 0x80484dd: file foo.c, line 15. (gdb) r Starting program: /users/david/a.out umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error umovestr: Input/output error /bin/bash: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory umovestr: Input/output error PANIC: attached pid 13033 exited See the attached strace log. Anything else I can get for you while I'm there? Cheers David -- David Lecomber