Test Run By woodzltc on Sun Oct 15 10:40:08 2006 Native configuration is powerpc64-unknown-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. Using ../../../src/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file. Running ../../../src/gdb/testsuite/gdb.threads/schedlock.exp ... Executing on host: gcc ../../../src/gdb/testsuite/gdb.threads/schedlock.c -I/home/woodzltc/build-src/gdb/testsuite -g -lpthreads -lm -o /home/woodzltc/build-src/gdb/testsuite/gdb.threads/schedlock (timeout = 300) /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status compiler exited with status 1 output is: /usr/bin/ld: cannot find -lpthreads collect2: ld returned 1 exit status Executing on host: gcc ../../../src/gdb/testsuite/gdb.threads/schedlock.c -I/home/woodzltc/build-src/gdb/testsuite -g -lpthread -lm -o /home/woodzltc/build-src/gdb/testsuite/gdb.threads/schedlock (timeout = 300) PASS: gdb.threads/schedlock.exp: successfully compiled posix threads test case GNU gdb 6.5.50.20061013-cvs Copyright (C) 2006 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 "powerpc64-unknown-linux-gnu". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir ../../../src/gdb/testsuite/gdb.threads Source directories searched: /home/woodzltc/build-src/gdb/testsuite/../../../src/gdb/testsuite/gdb.threads:$cdir:$cwd (gdb) shell stty intr '^C' (gdb) PASS: gdb.threads/schedlock.exp: shell stty intr '^C' kill The program is not being run. (gdb) file /home/woodzltc/build-src/gdb/testsuite/gdb.threads/schedlock Reading symbols from /home/woodzltc/build-src/gdb/testsuite/gdb.threads/schedlock...done. Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) set print sevenbit-strings (gdb) PASS: gdb.threads/schedlock.exp: set print sevenbit-strings set width 0 (gdb) PASS: gdb.threads/schedlock.exp: set width 0 delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x100004dc: file ../../../src/gdb/testsuite/gdb.threads/schedlock.c, line 37. (gdb) run Starting program: /home/woodzltc/build-src/gdb/testsuite/gdb.threads/schedlock [Thread debugging using libthread_db enabled] [New Thread 4160557632 (LWP 12215)] [Switching to Thread 4160557632 (LWP 12215)] Breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:37 37 for (i = 0; i < NUM; i++) (gdb) set scheduler-locking off (gdb) PASS: gdb.threads/schedlock.exp: scheduler locking set to none break 46 Breakpoint 2 at 0x1000054c: file ../../../src/gdb/testsuite/gdb.threads/schedlock.c, line 46. (gdb) continue Continuing. [New Thread 4160554208 (LWP 12218)] [New Thread 4150068448 (LWP 12219)] [New Thread 4139582688 (LWP 12220)] [New Thread 4129096928 (LWP 12221)] [New Thread 4118611168 (LWP 12222)] Breakpoint 2, main () at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:47 47 args[i] = 1; (gdb) PASS: gdb.threads/schedlock.exp: continue to breakpoint: all threads started print args $1 = {2093277, 1351725, 1318518, 2534545, 442605, 0} (gdb) PASS: gdb.threads/schedlock.exp: listed args (1) continue Continuing. PASS: gdb.threads/schedlock.exp: continue (initial) Program received signal SIGINT, Interrupt. thread_function (arg=0x5) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:58 58 while (*myp > 0) (gdb) PASS: gdb.threads/schedlock.exp: stop all threads (initial) break 60 if arg != 5 Breakpoint 3 at 0x100005c0: file ../../../src/gdb/testsuite/gdb.threads/schedlock.c, line 60. (gdb) continue Continuing. [Switching to Thread 4150068448 (LWP 12219)] Breakpoint 3, thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: continue to breakpoint: return to loop (initial) delete breakpoints Delete all breakpoints? (y or n) y (gdb) info breakpoints No breakpoints or watchpoints. (gdb) print args $2 = {11723266, 14413893, 16334300, 15132655, 16446642, 11784366} (gdb) PASS: gdb.threads/schedlock.exp: listed args (2) PASS: gdb.threads/schedlock.exp: thread 0 ran PASS: gdb.threads/schedlock.exp: thread 1 ran PASS: gdb.threads/schedlock.exp: thread 2 ran PASS: gdb.threads/schedlock.exp: thread 3 ran PASS: gdb.threads/schedlock.exp: thread 4 ran PASS: gdb.threads/schedlock.exp: thread 5 ran bt #0 thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 #1 0x0fc359ec in start_thread () from /lib/tls/libpthread.so.0 #2 0x0ff31ed8 in clone () from /lib/tls/libc.so.6 Previous frame inner to this frame (corrupt stack?) (gdb) PASS: gdb.threads/schedlock.exp: find current thread (1) set scheduler-locking off (gdb) PASS: gdb.threads/schedlock.exp: set scheduler-locking off step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 0) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 1) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 2) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 3) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 4) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 5) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 6) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 7) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 8) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (unlocked 9) bt #0 thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 #1 0x0fc359ec in start_thread () from /lib/tls/libpthread.so.0 #2 0x0ff31ed8 in clone () from /lib/tls/libc.so.6 Previous frame inner to this frame (corrupt stack?) (gdb) PASS: gdb.threads/schedlock.exp: find current thread (2) PASS: gdb.threads/schedlock.exp: step without lock does not change thread print args $3 = {53765598, 14413903, 52451128, 44934175, 86509672, 56510885} (gdb) PASS: gdb.threads/schedlock.exp: listed args (3) PASS: gdb.threads/schedlock.exp: current thread stepped PASS: gdb.threads/schedlock.exp: other threads ran (1) set scheduler-locking on (gdb) PASS: gdb.threads/schedlock.exp: set scheduler-locking on continue Continuing. PASS: gdb.threads/schedlock.exp: continue (with lock) Program received signal SIGINT, Interrupt. thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: stop all threads (with lock) break 60 if arg != 5 Breakpoint 4 at 0x100005c0: file ../../../src/gdb/testsuite/gdb.threads/schedlock.c, line 60. (gdb) continue Continuing. Breakpoint 4, thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: continue to breakpoint: return to loop (with lock) delete breakpoints Delete all breakpoints? (y or n) y (gdb) info breakpoints No breakpoints or watchpoints. (gdb) bt #0 thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 #1 0x0fc359ec in start_thread () from /lib/tls/libpthread.so.0 #2 0x0ff31ed8 in clone () from /lib/tls/libc.so.6 Previous frame inner to this frame (corrupt stack?) (gdb) PASS: gdb.threads/schedlock.exp: find current thread (3) PASS: gdb.threads/schedlock.exp: continue with lock does not change thread print args $4 = {53765598, 85573887, 52451128, 44934175, 86509672, 56510885} (gdb) PASS: gdb.threads/schedlock.exp: listed args (4) PASS: gdb.threads/schedlock.exp: other thread 0 didn't run PASS: gdb.threads/schedlock.exp: current thread ran PASS: gdb.threads/schedlock.exp: other thread 2 didn't run PASS: gdb.threads/schedlock.exp: other thread 3 didn't run PASS: gdb.threads/schedlock.exp: other thread 4 didn't run PASS: gdb.threads/schedlock.exp: other thread 5 didn't run step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 0) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 1) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 2) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 3) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 4) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 5) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 6) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 7) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 8) step 58 while (*myp > 0) (gdb) step 61 (*myp) ++; (gdb) PASS: gdb.threads/schedlock.exp: step to increment (locked 9) bt #0 thread_function (arg=0x1) at ../../../src/gdb/testsuite/gdb.threads/schedlock.c:61 #1 0x0fc359ec in start_thread () from /lib/tls/libpthread.so.0 #2 0x0ff31ed8 in clone () from /lib/tls/libc.so.6 Previous frame inner to this frame (corrupt stack?) (gdb) PASS: gdb.threads/schedlock.exp: find current thread (2) PASS: gdb.threads/schedlock.exp: step with lock does not change thread print args $5 = {53765598, 85573897, 52451128, 44934175, 86509672, 56510885} (gdb) PASS: gdb.threads/schedlock.exp: listed args (5) PASS: gdb.threads/schedlock.exp: other thread 0 didn't run (stepping) PASS: gdb.threads/schedlock.exp: current thread stepped locked PASS: gdb.threads/schedlock.exp: other thread 2 didn't run (stepping) PASS: gdb.threads/schedlock.exp: other thread 3 didn't run (stepping) PASS: gdb.threads/schedlock.exp: other thread 4 didn't run (stepping) PASS: gdb.threads/schedlock.exp: other thread 5 didn't run (stepping) testcase ../../../src/gdb/testsuite/gdb.threads/schedlock.exp completed in 7 seconds === gdb Summary === # of expected passes 66 Executing on host: /home/woodzltc/build-src/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd (timeout = 300) GNU gdb 6.5.50.20061013-cvs Copyright (C) 2006 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 "powerpc64-unknown-linux-gnu". /home/woodzltc/build-src/gdb/testsuite/../../gdb/gdb version 6.5.50.20061013-cvs -nx runtest completed at Sun Oct 15 10:40:15 2006