Test run by tcwg-build on Thu Mar  5 07:38:02 2026
Native configuration is aarch64-unknown-linux-gnu

		=== gdb tests ===

Schedule of variations:
    tcwg-local

Running target tcwg-local
Using /home/tcwg-build/workspace/tcwg_gnu_0/abe/config/boards/tcwg-local.exp as board description file for target.
Using /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/hosttools/aarch64-unknown-linux-gnu/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/hosttools/aarch64-unknown-linux-gnu/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.exp ...
Executing on build: rm -rf /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context    (timeout = 300)
builtin_spawn -ignore SIGHUP rm -rf /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context
gdb_do_cache: allow_python_tests (  )
Executing on host: /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/data-directory -iex "set interactive-mode on" --configuration   (timeout = 300)
builtin_spawn -ignore SIGHUP /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/data-directory -iex set interactive-mode on --configuration
This GDB was configured as follows:
   configure --host=aarch64-unknown-linux-gnu --target=aarch64-unknown-linux-gnu
	     --with-auto-load-dir=$debugdir:$datadir/auto-load
	     --with-auto-load-safe-path=$debugdir:$datadir/auto-load:/usr
	     --with-expat
	     --with-gdb-datadir=/usr/share/gdb (relocatable)
	     --with-jit-reader-dir=/usr/lib/gdb (relocatable)
	     --without-libunwind-ia64
	     --with-lzma
	     --without-babeltrace
	     --without-intel-pt
	     --without-xxhash
	     --with-python=/usr (relocatable)
	     --with-python-libdir=/usr/lib (relocatable)
	     --without-debuginfod
	     --with-curses
	     --with-guile
	     --without-amd-dbgapi
	     --disable-source-highlight
	     --enable-threading
	     --enable-tui
	     --without-system-readline
	     --with-separate-debug-dir=/usr/lib/debug (relocatable)
	     --with-additional-debug-dirs=/usr/lib/debug

("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)

GNU Readline library version: 8.2	(internal)

gdb_do_cache: universal_compile_options_c (  )
Executing on host: gcc    -fdiagnostics-color=never -c -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/temp/1376057/ccopts.o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/temp/1376057/ccopts.c    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fdiagnostics-color=never -c -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/temp/1376057/ccopts.o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/temp/1376057/ccopts.c
gdb_do_cache: get_compiler_info_1 ( c )
get_compiler_info: gcc-13-3-0
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
Executing on host: gcc  -fno-stack-protector  -fdiagnostics-color=never -c -g  -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context0.o /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -fdiagnostics-color=never -c -g -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context0.o /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c
gdb_do_cache: universal_compile_options_c (  )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
Executing on host: gcc  -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context0.o  -fdiagnostics-color=never -g  -lpthreads -lm   -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context0.o -fdiagnostics-color=never -g -lpthreads -lm -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context
/usr/bin/ld: cannot find -lpthreads: No such file or directory
collect2: error: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/bin/ld: cannot find -lpthreads: No such file or directory
collect2: error: ld returned 1 exit status

gdb_do_cache: universal_compile_options_c (  )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
gdb_do_cache: get_compiler_info_1 ( c )
Executing on host: gcc  -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context0.o  -fdiagnostics-color=never -g  -lpthread -lm   -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context    (timeout = 300)
builtin_spawn -ignore SIGHUP gcc -fno-stack-protector /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context0.o -fdiagnostics-color=never -g -lpthread -lm -o /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context
PASS: gdb.python/py-selected-context.exp: successfully compiled posix threads test case

Starting logfile: /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/gdb.in.1

builtin_spawn /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/data-directory -iex set interactive-mode on
(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 /home/tcwg-build/workspace/tcwg_gnu_0/gdb/gdb/testsuite/gdb.python
Source directories searched: /home/tcwg-build/workspace/tcwg_gnu_0/gdb/gdb/testsuite/gdb.python:$cdir:$cwd
(gdb) source /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context.py
DONE
(gdb) PASS: gdb.python/py-selected-context.exp: load python file
test-selected-context-event
GDB selected-context event registered.
(gdb) PASS: gdb.python/py-selected-context.exp: test-selected-context-event
add-inferior
[New inferior 2]
Added inferior 2
(gdb) PASS: gdb.python/py-selected-context.exp: add-inferior
inferior 2
[Switching to inferior 2 [<null>] (<noexec>)]
event type: selected-context
  Inferior: 2
    Thread: None
     Frame: None
(gdb) PASS: gdb.python/py-selected-context.exp: switch to inferior 2, inferior is not started
inferior 1
[Switching to inferior 1 [<null>] (<noexec>)]
event type: selected-context
  Inferior: 1
    Thread: None
     Frame: None
(gdb) PASS: gdb.python/py-selected-context.exp: switch to inferior 1, inferior is not started
python event_throws_error = True
(gdb) PASS: gdb.python/py-selected-context.exp: python event_throws_error = True
inferior 2
[Switching to inferior 2 [<null>] (<noexec>)]
Python Exception <class 'gdb.GdbError'>: error from gdb_selected_context_handler
(gdb) PASS: gdb.python/py-selected-context.exp: switch to inferior 2, event raises an error
info inferiors
  Num  Description       Connection           Executable        
  1    <null>                                                   
* 2    <null>                                                   
(gdb) PASS: gdb.python/py-selected-context.exp: check inferior 2 was selected
inferior 1
[Switching to inferior 1 [<null>] (<noexec>)]
Python Exception <class 'gdb.GdbError'>: error from gdb_selected_context_handler
(gdb) PASS: gdb.python/py-selected-context.exp: return to inferior 1
kill
The program is not being run.
(gdb) file /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context
Reading symbols from /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context...
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints, watchpoints, tracepoints, or catchpoints.
(gdb) break -qualified main
Breakpoint 1 at 0x85c: file /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c, line 54.
(gdb) run 
Starting program: /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/outputs/gdb.python/py-selected-context/py-selected-context 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".

Breakpoint 1, main () at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:54
54	  run_thread ();
(gdb) break 27
Breakpoint 2 at 0xaaaaaaaa07d8: file /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c, line 27.
(gdb) break 55
Breakpoint 3 at 0xaaaaaaaa0860: file /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c, line 55.
(gdb) continue
Continuing.
[New Thread 0xfffff7def1a0 (LWP 1376177) (id 1.2)]
[Switching to Thread 0xfffff7def1a0 (LWP 1376177)]

Thread 1.2 "py-selected-con" hit Breakpoint 2, thread_breakpt () at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:27
27	  global_var = global_var + 1;	/* First breakpoint.  */
(gdb) PASS: gdb.python/py-selected-context.exp: continue to breakpoint: first bp
info threads
  Id   Target Id                                             Frame 
  1.1  Thread 0xfffff7fee020 (LWP 1376175) "py-selected-con" 0x0000fffff7e71e9c in __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1376177, futex_word=0xfffff7def270) at ./nptl/futex-internal.c:57
* 1.2  Thread 0xfffff7def1a0 (LWP 1376177) "py-selected-con" thread_breakpt () at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:27
(gdb) PASS: gdb.python/py-selected-context.exp: confirm expected thread selected
thread 1
[Switching to thread 1.1 (Thread 0xfffff7fee020 (LWP 1376175))]
#0  0x0000fffff7e71e9c in __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1376177, futex_word=0xfffff7def270) at ./nptl/futex-internal.c:57
warning: 57	./nptl/futex-internal.c: No such file or directory
Python Exception <class 'gdb.GdbError'>: error from gdb_selected_context_handler
(gdb) FAIL: gdb.python/py-selected-context.exp: switch thread, handler raises an error
info threads
  Id   Target Id                                             Frame 
* 1.1  Thread 0xfffff7fee020 (LWP 1376175) "py-selected-con" 0x0000fffff7e71e9c in __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=1376177, futex_word=0xfffff7def270) at ./nptl/futex-internal.c:57
  1.2  Thread 0xfffff7def1a0 (LWP 1376177) "py-selected-con" thread_breakpt () at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:27
(gdb) PASS: gdb.python/py-selected-context.exp: thread switched despite handler error
up
#1  __futex_abstimed_wait_common (cancel=true, private=128, abstime=0x0, clockid=0, expected=1376177, futex_word=0xfffff7def270) at ./nptl/futex-internal.c:87
87	in ./nptl/futex-internal.c
Python Exception <class 'gdb.GdbError'>: error from gdb_selected_context_handler
(gdb) PASS: gdb.python/py-selected-context.exp: error from event handler when switching frames
python event_throws_error = False
(gdb) PASS: gdb.python/py-selected-context.exp: python event_throws_error = False
thread 2
[Switching to thread 1.2 (Thread 0xfffff7def1a0 (LWP 1376177))]
#0  thread_breakpt () at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:27
27	  global_var = global_var + 1;	/* First breakpoint.  */
event type: selected-context
  Inferior: 1
    Thread: 1.2
     Frame: #0
(gdb) PASS: gdb.python/py-selected-context.exp: switch to thread 2, event handler triggers
up
#1  0x0000aaaaaaaa080c in worker_thread (unused=0x0) at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:35
35	  thread_breakpt ();
event type: selected-context
  Inferior: 1
    Thread: 1.2
     Frame: #1
(gdb) PASS: gdb.python/py-selected-context.exp: move up a frame, event handler triggers
down
#0  thread_breakpt () at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:27
27	  global_var = global_var + 1;	/* First breakpoint.  */
event type: selected-context
  Inferior: 1
    Thread: 1.2
     Frame: #0
(gdb) PASS: gdb.python/py-selected-context.exp: move down a frame, event handler triggers
frame 1
#1  0x0000aaaaaaaa080c in worker_thread (unused=0x0) at /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.c:35
35	  thread_breakpt ();
event type: selected-context
  Inferior: 1
    Thread: 1.2
     Frame: #1
(gdb) PASS: gdb.python/py-selected-context.exp: select a frame, event handler triggers
testcase /home/tcwg-build/workspace/tcwg_gnu_0/abe/snapshots/gdb.git~master/gdb/testsuite/gdb.python/py-selected-context.exp completed in 1 seconds

		=== gdb Summary ===

# of expected passes		19
# of unexpected failures	1
Executing on host: /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/data-directory -iex "set interactive-mode on" --version    (timeout = 300)
builtin_spawn -ignore SIGHUP /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/testsuite/../../gdb/gdb -nw -nx -q -iex set height 0 -iex set width 0 -data-directory /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/data-directory -iex set interactive-mode on --version
GNU gdb (Linaro_GDB-2026.03.05) 18.0.50.20260305-git
Copyright (C) 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
/home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/gdb version  18.0.50.20260305-git -nw -nx -q -iex "set height 0" -iex "set width 0" -data-directory /home/tcwg-build/workspace/tcwg_gnu_0/abe/builds/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/gdb-gdb.git~master/gdb/data-directory -iex "set interactive-mode on" 

runtest completed at Thu Mar  5 07:38:03 2026
