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: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/53120 (gdb issues with threaded programs)
Date: Thu, 21 Jun 2018 19:26:25 +0200
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--AUme6imxWcFXGD2Ki4xvrt2UqXQS45nWq
Content-Type: multipart/mixed; boundary="2m73ab3hkDbqWberdyQrILydaH2SQG9Hr";
protected-headers="v1"
From: Kamil Rytarowski <n54%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Message-ID: <a1fa055f-0139-7b86-243c-719b03fd7f7b%gmx.com@localhost>
Subject: Re: kern/53120 (gdb issues with threaded programs)
References: <pr-kern-53120%gnats.netbsd.org@localhost>
<20180322080124.1A3C15CC770%emmas.aprisoft.de@localhost>
<20180621133501.6CB667A221%mollari.NetBSD.org@localhost>
In-Reply-To: <20180621133501.6CB667A221%mollari.NetBSD.org@localhost>
--2m73ab3hkDbqWberdyQrILydaH2SQG9Hr
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
On 21.06.2018 15:35, Andreas Gustafsson wrote:
> The following reply was made to PR kern/53120; it has been noted by GNA=
TS.
>=20
> From: Andreas Gustafsson <gson%gson.org@localhost>
> To: gnats-bugs%NetBSD.org@localhost, martin%NetBSD.org@localhost, christos%NetBSD.org@localhost, kami=
l%NetBSD.org@localhost
> Cc:=20
> Subject: Re: kern/53120 (gdb issues with threaded programs)
> Date: Thu, 21 Jun 2018 16:18:37 +0300
>=20
> 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.
> =20
> Here is a shell script I'm currently using to test for the problem:
> =20
> sysctl -w security.pax.mprotect.enabled=3D0 || true
> sysctl -w security.pax.mprotect.ptrace=3D0 || true
> cat <<EOF >test.gdb
> b main
> run +time=3D1 +tries=3D1 @127.0.0.177
> b write
> cont
> cont
> cont
> cont
> cont
> EOF
> gdb --batch -x test.gdb dig >gdb.out
> cat gdb.out
> ! grep SIGSEGV gdb.out
> =20
> This will exit with a nonzero status if gdb is triggering spurious
> SIGSEGVs, as it does in -current.
> =20
> 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 sh=
ow
> the test passing before the import and failing after it:
> =20
> 2017.05.01.12.29.40 pass
> 2017.11.28.15.31.33 pass
> 2017.11.30.14.51.01 fail
> 2017.11.30.15.26.57 fail
> 2017.12.02.22.51.22 fail
> 2018.06.19.09.25.13 fail
> =20
> Would anyone object to reassigning this PR from Kamil to Christos?
> --=20
> Andreas Gustafsson, gson%gson.org@localhost
> =20
>=20
I've estimated that I will need around 6 months for remaining
showstoppers in ptrace(2) in MI code (signals, forks/vforks, threads)...
however I'm preempted by sanitizer work partially due to GSoC tasks
(fuzzing etc), reports from !x86 ports (syscall(2)/__syscall(2) issues)
and LLVM-7svn branching scheduled for August 1st.
If something worked with threads before GDB 8.0, it was by an accident.
Please be patient and I will get it functional for -9.
--2m73ab3hkDbqWberdyQrILydaH2SQG9Hr--
--AUme6imxWcFXGD2Ki4xvrt2UqXQS45nWq
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQJABAEBCAAqFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAlsr38EMHG41NEBnbXgu
Y29tAAoJEEuzCOmwLnZs1QMP/1Fcq9lToQ+1zgQ/lpzkbBwHacWTBFUXEp/c0pII
bvgBX8LYjr1J0lbBfCDLfjhR8Vx6BomkatOEhVP8//m1mU7IULZUvk7Shcv+HZy6
VG9yEhVTUC/17gk7woMB6LfOMp0qYWrtgfckfIQjr4/y1YkbWA5LLLwnRQbbwFvo
NBSVgzfGljq+WkDYqR4kfbfc6NZRpnV9XVMBbI9cM0zs4vzwb3zg1oRAnUXEDGyu
0OidHgNIdsKhqWeL/fr/tef/hTYkK+Xx/H+xckCdi5UUftQU1FwwGnbOzffFGqCW
Vdb4hBqKWbcIfkdMrNAUCPVpyaWBTu2DVUpe4FZFChXmQXU2BvfSzIqPa+87p7I1
cnnUx0HiDb03SL+xp6aLbwrDyfL51H/Lj1C1Vg5ijydg0TlaGf0ahwnHBf4A4Sbc
9VuY94+/EFLMhjPPPpWZVW7ZOVPA9+NciHemHmakmQZZ+Ldg5Sa5wOZFblqKaKzC
9R3L4tgqOH5JA2QBPAkocPGGFtbfx+OYyDfg4JqGwK/3GReUxM4IWB4obPNLjt7s
gKZ/69Vmm2amDHxnJLAP6I3qAAtUUYp0i9nVfkC1A6Xq4WYIfBAhvke9bMTm0zje
qKmqu7aXMEGdBT5JjmWXy0A+x61uYO7XCqL2p0TkYf49rCXPFAW0e6fkpFS76/VY
1nRO
=Pjok
-----END PGP SIGNATURE-----
--AUme6imxWcFXGD2Ki4xvrt2UqXQS45nWq--
Home |
Main Index |
Thread Index |
Old Index