public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/28347] New: FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP reaches handler
@ 2021-09-17 11:50 vries at gcc dot gnu.org
  2021-09-17 11:50 ` [Bug threads/28347] " vries at gcc dot gnu.org
  2021-09-17 12:05 ` vries at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2021-09-17 11:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=28347

            Bug ID: 28347
           Summary: FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread
                    1: signal SIGTRAP reaches handler
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: threads
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Created attachment 13666
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13666&action=edit
patch making fail reproducible

I ran into the following failure on x86_64-linux with target board
unix/-m32/-fno-PIE/-no-pie and openSUSE Tumbleweed:
...
(gdb) PASS: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: switch to sigtrap
thread
signal SIGTRAP^M
Continuing with signal SIGTRAP.^M
[Thread 0xf7da2ac0 (LWP 1690) exited]^M
^M
Thread 1 "signal-sigtrap" received signal SIGTRAP, Trace/breakpoint trap.^M
0xf7fcc159 in __kernel_vsyscall ()^M
(gdb) FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP
reaches handler
...

I had difficulty reproducing at first, but after playing with it for a while, I
realized that what I'm looking at are the effects of doing "signal SIGTRAP" to
a thread that is somewhere inside or inbetween pthread_create and pthread_join,
and the FAIL happens when stopped at a point where the signal is blocked.

I modified the test-case to make the FAIL reproducible, and managed to
reproduce it using native x86_64 on openSUSE Leap 15.2 (so, different kernel,
libc, pointer size).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-17 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 11:50 [Bug threads/28347] New: FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP reaches handler vries at gcc dot gnu.org
2021-09-17 11:50 ` [Bug threads/28347] " vries at gcc dot gnu.org
2021-09-17 12:05 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).