NetBSD Problem Report #51678
From martin@duskware.de Thu Dec 1 08:39:55 2016
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id D8B227A270
for <gnats-bugs@gnats.NetBSD.org>; Thu, 1 Dec 2016 08:39:55 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gdb can't run threaded programs
X-Send-Pr-Version: 3.95
>Number: 51678
>Category: port-alpha
>Synopsis: gdb can't run threaded programs
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-alpha-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 01 08:40:00 +0000 2016
>Last-Modified: Thu Dec 01 16:15:01 +0000 2016
>Originator: Martin Husemann
>Release: NetBSD 7.99.43
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD gemini.duskware.de 7.99.43 NetBSD 7.99.43 (GENERIC-$Revision: 1.371 $) #34: Tue Nov 29 16:32:43 CET 2016 martin@martins.aprisoft.de:/ssd/src/sys/arch/alpha/compile/GENERIC alpha
Architecture: alpha
Machine: alpha
>Description:
Trying to run a pthreaded program under gdb fails:
[~] martin@gemini > gdb dig
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "alpha--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dig...Reading symbols from /usr/libdata/debug//usr/bin/dig.debug...done.
done.
(gdb) run
Starting program: /usr/bin/dig
[New LWP 4]
[New LWP 3]
[New LWP 2]
Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to LWP 1]
0x000003fffd44d968 in _sys___kevent50 () from /usr/lib/libc.so.12
>How-To-Repeat:
s/a
>Fix:
n/a
>Audit-Trail:
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-alpha/51678: gdb can't run threaded programs
Date: Thu, 1 Dec 2016 16:50:52 +0100
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--UEvsAVuW0OepbFfDVAtwI52eqtmpXmGfh
Content-Type: multipart/mixed; boundary="FRCvXhWmd7hN4fNE9F3CuIC9Lon2nvKOA"
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Message-ID: <03e022e4-6854-da30-0504-75ce5ba16e54@gmx.com>
Subject: Re: port-alpha/51678: gdb can't run threaded programs
References: <pr-port-alpha-51678@gnats.netbsd.org>
<20161201084000.D3C407A34A@mollari.NetBSD.org>
In-Reply-To: <20161201084000.D3C407A34A@mollari.NetBSD.org>
--FRCvXhWmd7hN4fNE9F3CuIC9Lon2nvKOA
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
On 01.12.2016 09:40, martin@NetBSD.org wrote:
>> Number: 51678
>> Category: port-alpha
>> Synopsis: gdb can't run threaded programs
>> Confidential: no
>> Severity: critical
>> Priority: high
>> Responsible: port-alpha-maintainer
>> State: open
>> Class: sw-bug
>> Submitter-Id: net
>> Arrival-Date: Thu Dec 01 08:40:00 +0000 2016
>> Originator: Martin Husemann
>> Release: NetBSD 7.99.43
>> Organization:
> The NetBSD Foundation, Inc.
>> Environment:
> System: NetBSD gemini.duskware.de 7.99.43 NetBSD 7.99.43 (GENERIC-$Revi=
sion: 1.371 $) #34: Tue Nov 29 16:32:43 CET 2016 martin@martins.aprisoft.=
de:/ssd/src/sys/arch/alpha/compile/GENERIC alpha
> Architecture: alpha
> Machine: alpha
>> Description:
>=20
> Trying to run a pthreaded program under gdb fails:
>=20
> [~] martin@gemini > gdb dig
> GNU gdb (GDB) 7.12
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl=
=2Ehtml>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copyi=
ng"
> and "show warranty" for details.
> This GDB was configured as "alpha--netbsd".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from dig...Reading symbols from /usr/libdata/debug//usr=
/bin/dig.debug...done.
> done.
> (gdb) run
> Starting program: /usr/bin/dig=20
> [New LWP 4]
> [New LWP 3]
> [New LWP 2]
>=20
> Thread 1 received signal SIGTRAP, Trace/breakpoint trap.
> [Switching to LWP 1]
> 0x000003fffd44d968 in _sys___kevent50 () from /usr/lib/libc.so.12
>=20
>=20
>> How-To-Repeat:
> s/a
>=20
>> Fix:
> n/a
>=20
Please try to bisect src/lib/libpthread_dbg/pthread_dbg.c between 1.44
and HEAD (1.51).
Only this file, no other file should be changed (if I remember correctly
the newest pthread_dbg.h is compatible with all versions between these
revisions).
--FRCvXhWmd7hN4fNE9F3CuIC9Lon2nvKOA--
--UEvsAVuW0OepbFfDVAtwI52eqtmpXmGfh
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJYQEbwAAoJEEuzCOmwLnZs2IAP/AhbXL8hGjlN0Picsed46AaY
CqHa2MAi3IisWYAU7bhWKk9BqvdaJ3ViTXgWaYwXXrtxKxVXIhcKq+G0z8k7dt4S
XwPgYrh3+RwfZeb2VTByJu+z9JVHE2Uwya5OKJ1UxocfFHk2IPLD0lEU2TR5zr5T
o1YjRWCSytWHbZ6Rju/XRHhk/6OJ04XLTnovjSF2+0RkbNZax1SzQLCGm5iYazm0
QUuByEArYgBZf3+HWcElqGRsbUxOJdVqBbEDgB3SPr5Vv3o4lPNzVYmSJtdI7MlC
6U54e+dy0txF8mco0LNiErKvvWlkiSH3BHzNWozLAAPAZfbpofiI8/ANussjPfqi
PhObUJ97wT6R+if8U+JMFVhhvEQ/bIoxrGKt2+nOTXEcF5yFZY101aL/P6CE2lEo
O+qENI6y7iBPHQuFai927zSF2b1/cRv9c048R0Wr7gVc1gFTKiOm6uN+aMUsnT7o
v4NG0nqKWSna03iNJri2pF/4npHD7RJEynEbUXEjLNtDVrsWV1pncbmpelnquP9n
YQap+PxU5T+L4qMfqaI7dcfw+TZv7ChZjLOVjLECMjIlHukb61QNwXo39BJvcGHf
PdknLBMAL73p6lCIj7JSNTVZRi4O1K4mlkLb2cK3a0fVQMPn17Y1W+sFsLbmjuHW
Ow7C/j2qBbHkqL137kwV
=6pN9
-----END PGP SIGNATURE-----
--UEvsAVuW0OepbFfDVAtwI52eqtmpXmGfh--
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-alpha/51678: gdb can't run threaded programs
Date: Thu, 1 Dec 2016 17:11:05 +0100
On Thu, Dec 01, 2016 at 04:00:02PM +0000, Kamil Rytarowski wrote:
> Please try to bisect src/lib/libpthread_dbg/pthread_dbg.c between 1.44
> and HEAD (1.51).
It is not libpthread_dbg.
Martin
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.