Script started on Fri 17 Feb 2006 08:32:35 PM EST gback@macadamia [1](~/cs3204) > setenv LD_ASSUME_KERNEL 2.4.1 gback@macadamia [2](~/cs3204) > g++ -g account.cc -o account -lpthread gback@macadamia [3](~/cs3204) > ./account Transfering $20 from acc1 to acc2 ^Z Suspended gback@macadamia [4](~/cs3204) > ps PID TTY TIME CMD 17386 pts/3 00:00:00 tcsh 17417 pts/3 00:00:00 account 17418 pts/3 00:00:00 account 17419 pts/3 00:00:00 account 17423 pts/3 00:00:00 ps gback@macadamia [5](~/cs3204) > gdb ./account GNU gdb Red Hat Linux (6.3.0.0-1.84rh) 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/obsolete/linuxthreads/libthread_db.so.1". (gdb) attach 17417 Attaching to program: /home/staff/gback/cs3204/account, process 17417 Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0x3fd000 `shared object read from target memory' has disappeared; keeping its symbols. Reading symbols from /lib/obsolete/linuxthreads/i686/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 17417)] [New Thread 32769 (LWP 17418)] [New Thread 16386 (LWP 17419)] Loaded symbols for /lib/obsolete/linuxthreads/i686/libpthread.so.0 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/obsolete/linuxthreads/i686/libm.so.6...done. Loaded symbols for /lib/obsolete/linuxthreads/i686/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/obsolete/linuxthreads/i686/libc.so.6...done. Loaded symbols for /lib/obsolete/linuxthreads/i686/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 0x001749d0 in __pthread_sigsuspend () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 (gdb) bt #0 0x001749d0 in __pthread_sigsuspend () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #1 0x00173918 in __pthread_wait_for_restart_signal () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #2 0x0017603e in __pthread_alt_lock () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #3 0x00172f03 in pthread_mutex_lock () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #4 0x080489ca in account::transferTo (this=0x8049ea0, that=0x8049e80, amount=20) at account.cc:38 #5 0x080488ac in main () at account.cc:64 (gdb) thread 3 [Switching to thread 3 (Thread 16386 (LWP 17419))]#0 0x001749d0 in __pthread_sigsuspend () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 (gdb) bt #0 0x001749d0 in __pthread_sigsuspend () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #1 0x00173918 in __pthread_wait_for_restart_signal () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #2 0x0017603e in __pthread_alt_lock () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #3 0x00172f03 in pthread_mutex_lock () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #4 0x080489ca in account::transferTo (this=0x8049e80, that=0x8049ea0, amount=20) at account.cc:38 #5 0x0804884b in transferthread (_=0x0) at account.cc:55 #6 0x001719a0 in pthread_start_thread () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #7 0x0036799a in clone () from /lib/obsolete/linuxthreads/i686/libc.so.6 (gdb) info threads * 3 Thread 16386 (LWP 17419) 0x001749d0 in __pthread_sigsuspend () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 2 Thread 32769 (LWP 17418) 0x0035dd4e in poll () from /lib/obsolete/linuxthreads/i686/libc.so.6 1 Thread 16384 (LWP 17417) 0x001749d0 in __pthread_sigsuspend () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 (gdb) thread 2 [Switching to thread 2 (Thread 32769 (LWP 17418))]#0 0x0035dd4e in poll () from /lib/obsolete/linuxthreads/i686/libc.so.6 (gdb) bt #0 0x0035dd4e in poll () from /lib/obsolete/linuxthreads/i686/libc.so.6 #1 0x00172028 in __pthread_manager () from /lib/obsolete/linuxthreads/i686/libpthread.so.0 #2 0x0036799a in clone () from /lib/obsolete/linuxthreads/i686/libc.so.6 (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /home/staff/gback/cs3204/account, process 17417 [1] + Suspended (signal) ./account gback@macadamia [6](~/cs3204) > fg ./account gback@macadamia [7](~/cs3204) > Script done on Fri 17 Feb 2006 08:34:03 PM EST