NetBSD Problem Report #55851

From martin@aprisoft.de  Tue Dec  8 14:25:39 2020
Return-Path: <martin@aprisoft.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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D7A7A1A9217
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  8 Dec 2020 14:25:39 +0000 (UTC)
Message-Id: <20201208142530.93A905CC848@emmas.aprisoft.de>
Date: Tue,  8 Dec 2020 15:25:30 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: gdb and kernel backtraces disagree about symbol name syntax
X-Send-Pr-Version: 3.95

>Number:         55851
>Category:       kern
>Synopsis:       gdb and kernel backtraces disagree about symbol name syntax
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 08 14:30:00 +0000 2020
>Last-Modified:  Fri Dec 11 18:30:01 +0000 2020
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.77
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD martins.aprisoft.de 9.99.77 NetBSD 9.99.77 (GENERIC) #38: Mon Dec 7 09:49:52 CET 2020 martin@martins.aprisoft.de:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

Kernel backtraces get "nice" formated names, but unfortunately those are
not always helpfull with modern gcc and inlining.

For example I got this part of a backtrace from a panic:

rtwn_start.part.0() at netbsd:rtwn_start.part.0+0x61
rtwn_transmit() at netbsd:rtwn_transmit+0xb0
[...]

Unfortunately I can not use these addresses for gdb:

(gdb) list *(rtwn_start.part.0+0x61)
A syntax error in expression, near `.0+0x61)'.

addr2line does not deal with them either.

It would be helpfull if just the raw address value would be printed
in an extra column.

>How-To-Repeat:
s/a

>Fix:
n/a

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55851 CVS commit: src/external/gpl3/gdb/dist/gdb
Date: Fri, 11 Dec 2020 13:25:45 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Fri Dec 11 18:25:45 UTC 2020

 Modified Files:
 	src/external/gpl3/gdb/dist/gdb: c-exp.y

 Log Message:
 PR/55851: Martin Husemann: recognize <symbol>.part.<n> names
 This is gross; perhaps we should hide them completely (not print them
 in stack traces etc.)


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.9 -r1.2 src/external/gpl3/gdb/dist/gdb/c-exp.y

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.