NetBSD Problem Report #55851

From  Tue Dec  8 14:25:39 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id D7A7A1A9217
	for <>; Tue,  8 Dec 2020 14:25:39 +0000 (UTC)
Message-Id: <>
Date: Tue,  8 Dec 2020 15:25:30 +0100 (CET)
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
The NetBSD Foundation, Inc.
System: NetBSD 9.99.77 NetBSD 9.99.77 (GENERIC) #38: Mon Dec 7 09:49:52 CET 2020 amd64
Architecture: x86_64
Machine: amd64

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.



From: "Christos Zoulas" <>
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:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.