NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/53120 (gdb issues with threaded programs)

The following reply was made to PR kern/53120; it has been noted by GNATS.

From: Andreas Gustafsson <>
Subject: Re: kern/53120 (gdb issues with threaded programs)
Date: Thu, 21 Jun 2018 16:18:37 +0300

 I'm also having gdb issues with threaded programs in -current, similar
 to those Martin reported in March, and they are impeding my attempts
 to track down other bugs.
 Here is a shell script I'm currently using to test for the problem:
 sysctl -w security.pax.mprotect.enabled=0 || true
 sysctl -w security.pax.mprotect.ptrace=0 || true
 cat <<EOF >test.gdb
 b main
 run +time=1 +tries=1 @
 b write
 gdb --batch -x test.gdb dig >gdb.out
 cat gdb.out
 ! grep SIGSEGV gdb.out
 This will exit with a nonzero status if gdb is triggering spurious
 SIGSEGVs, as it does in -current.
 I believe the problem was introduced by Christos' import of gdb 8.0.1
 in November 2017.  I have not run a full bisection, but I manually ran
 the above test against some source dates around that time, and they show
 the test passing before the import and failing after it:
 2017.   pass
 2017.   pass
 2017.   fail
 2017.   fail
 2017.   fail
 2018.   fail
 Would anyone object to reassigning this PR from Kamil to Christos?
 Andreas Gustafsson,

Home | Main Index | Thread Index | Old Index