From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 168AF3857C42; Sat, 11 Jul 2020 09:11:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 168AF3857C42 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug threads/26228] FAIL: gdb.threads/create-fail.exp: iteration x: run till end (SIG32) Date: Sat, 11 Jul 2020 09:11:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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: Sat, 11 Jul 2020 09:11:32 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26228 --- Comment #2 from Tom de Vries --- My understanding of what happens is as follows: Glibc internally defines SIGCANCEL: ... ./sysdeps/unix/sysv/linux/internal-signals.h:#define SIGCANCEL __SIGR= TMIN ... which get the value 32: ... ./bits/signum-arch.h:#define __SIGRTMIN 32 ... During the test, the signal arrives at gdb. GDB has the following behaviour: ... $ gdb -batch -ex "info handle" Signal Stop Print Pass to program Description ... SIGCANCEL No No Yes LWP internal signal SIG32 Yes Yes Yes Real-time event 32 ... In gdb_signal_from_host we translate the signal with value 32 into a gdb signal. There is a bit: ... #if defined (SIGCANCEL)=20=20=20 if (hostsig =3D=3D SIGCANCEL) return GDB_SIGNAL_CANCEL; #endif ... but that is not actived, because SIGCANCEL is not defined (because it's an glibc-internal signal). This gets actived instead: ... else if (hostsig =3D=3D 32) return GDB_SIGNAL_REALTIME_32; ... So, instead of the appropriate Stop=3DNo behaviour of SIGCANCEL, we have the Stop=3DYes behaviour of SIG32, and the test-case FAILs. --=20 You are receiving this mail because: You are on the CC list for the bug.=