From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 910E7385840A; Fri, 17 Sep 2021 11:50:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 910E7385840A From: "vries at gcc dot gnu.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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2021 11:50:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28347 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=3D13666&action=3Ded= it 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 sig= trap 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 whil= e, 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_j= oin, 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 kerne= l, libc, pointer size). --=20 You are receiving this mail because: You are on the CC list for the bug.=