Bug 29830 - With native-extended-gdbserver board, FAIL: gdb.server/stop-reply-no-thread-multi.exp: target-non-stop=off: to_disable=: stepi
Summary: With native-extended-gdbserver board, FAIL: gdb.server/stop-reply-no-thread-m...
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-28 02:51 UTC by Simon Marchi
Modified: 2022-11-28 02:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Marchi 2022-11-28 02:51:28 UTC
I have seen this once on my CI:

308094 (gdb) continue^M
1308095 Continuing.^M
1308096 warning: Could not load shared library symbols for linux-vdso.so.1.^M
1308097 Do you need "set solib-search-path" or "set sysroot"?^M
1308098 [New Thread 1459184]^M
1308099 ^M
1308100 Thread 1 hit Breakpoint 1, unlock_worker () at /home/jenkins/workspace/binutils-gdb_master_linuxbuild/platform/jammy-amd64/target_board/native-extended-gdbserver/src/binutils-gdb/gdb/testsuite/gdb.server/stop-reply-no-thre        ad-multi.c:28^M
1308101 28        worker_blocked = 0;^M
1308102 (gdb) PASS: gdb.server/stop-reply-no-thread-multi.exp: target-non-stop=off: to_disable=: continue to breakpoint: run to unlock_worker
1308103 info threads^M
1308104   Id   Target Id         Frame ^M
1308105 * 1    Thread 1459169    unlock_worker () at /home/jenkins/workspace/binutils-gdb_master_linuxbuild/platform/jammy-amd64/target_board/native-extended-gdbserver/src/binutils-gdb/gdb/testsuite/gdb.server/stop-reply-no-thread        -multi.c:28^M
1308106   2    Thread 1459184    unlock_main () at /home/jenkins/workspace/binutils-gdb_master_linuxbuild/platform/jammy-amd64/target_board/native-extended-gdbserver/src/binutils-gdb/gdb/testsuite/gdb.server/stop-reply-no-thread-m        ulti.c:35^M
1308107 (gdb) PASS: gdb.server/stop-reply-no-thread-multi.exp: target-non-stop=off: to_disable=: second thread should now exist
1308108 thread 2^M
1308109 [Switching to thread 2 (Thread 1459184)]^M
1308110 #0  unlock_main () at /home/jenkins/workspace/binutils-gdb_master_linuxbuild/platform/jammy-amd64/target_board/native-extended-gdbserver/src/binutils-gdb/gdb/testsuite/gdb.server/stop-reply-no-thread-multi.c:35^M
1308111 35      }^M
1308112 (gdb) PASS: gdb.server/stop-reply-no-thread-multi.exp: target-non-stop=off: to_disable=: switch to second thread
1308113 set scheduler-locking on^M
1308114 (gdb) PASS: gdb.server/stop-reply-no-thread-multi.exp: target-non-stop=off: to_disable=: set scheduler-locking on
1308115 stepi^M
1308116 0x00005555555551d1      35      }^M
1308117 (gdb) FAIL: gdb.server/stop-reply-no-thread-multi.exp: target-non-stop=off: to_disable=: stepi

I haven't been able to reproduce it locally.
Comment 1 Simon Marchi 2022-11-28 02:52:52 UTC
Forgot to mention, it was with the native-extended-gdbserver board.