public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug threads/28347] New: FAIL: gdb.threads/signal-sigtrap.exp: sigtrap thread 1: signal SIGTRAP reaches handler
Date: Fri, 17 Sep 2021 11:50:06 +0000	[thread overview]
Message-ID: <bug-28347-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2021-09-17 11:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17 11:50 vries at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28347-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).