NetBSD Problem Report #51677

From martin@duskware.de  Thu Dec  1 08:37:39 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 029F07A270
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  1 Dec 2016 08:37:38 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gdb can not debug threaded programs
X-Send-Pr-Version: 3.95

>Number:         51677
>Category:       port-arm
>Synopsis:       gdb can not debug threaded programs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kamil
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 01 08:40:00 +0000 2016
>Closed-Date:    Tue Jun 04 13:04:49 +0000 2019
>Last-Modified:  Tue Jun 04 13:04:49 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.43
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD unpluged.duskware.de 7.99.43 NetBSD 7.99.43 (UNPLUGED) #34: Wed Nov 30 12:36:49 CET 2016 martin@martins.aprisoft.de:/ssd/src/sys/arch/evbarm/compile/UNPLUGED evbarm
Architecture: earm
Machine: evbarm
>Description:

Trying to run a pthread'ed program under gdb crashes:

[~] martin@unpluged > 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 "arm--netbsdelf-eabi".
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 

Program received signal SIGILL, Illegal instruction.
0xbb9472c0 in ?? ()

>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-arm-maintainer->kamil
Responsible-Changed-By: kamil@NetBSD.org
Responsible-Changed-When: Sat, 07 Oct 2017 00:12:11 +0200
Responsible-Changed-Why:
Take.


State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Tue, 04 Jun 2019 15:04:49 +0200
State-Changed-Why:
http://releng.netbsd.org/b5reports/evbarm-earmv7hf/2019/2019.05.31.04.23.19/test.log

The original test is no longer failing after recent changes in HEAD as of 2019-06-04.

Confirmed on releng reports.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.