NetBSD Problem Report #56769

From martin@duskware.de  Sat Mar 26 16:45:36 2022
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 9C4D01A9239
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 26 Mar 2022 16:45:36 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin
To: gnats-bugs@NetBSD.org
Subject: libexecinfo not working for signal handlers on sparc64
X-Send-Pr-Version: 3.95

>Number:         56769
>Category:       lib
>Synopsis:       libexecinfo not working for signal handlers on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 26 16:50:00 +0000 2022
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.95
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 9.99.95 NetBSD 9.99.95 (MODULAR) #536: Sat Mar 26 09:19:27 CET 2022 martin@thirdstage.duskware.de:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Libexecinfo fails to capture backtraces for signal handlers on sparc64.

>How-To-Repeat:

cd /usr/tests/lib/libexecinfo
./t_sig_backtrace sig_backtrace

notice that it outputs:

signal: 11
Backtrace 1 stack frames.
0x101974 <handler+0x100034> at ./t_sig_backtrace

where we would expect something like:

signal: 11
Backtrace 6 stack frames.
0xd0a135c <handler+0xd0a002c> at ./t_sig_backtrace
0xf8bd835cee68 <__sigtramp_siginfo_2> at /usr/lib/libc.so.12
0xd0a1168 <the_loop+0xd0a0008> at ./t_sig_backtrace
0xd0a12b4 <atfu_sig_backtrace_body+0xd0a00a4> at ./t_sig_backtrace
0xf8bd8387a8b8 <atf_tc_run+0x58> at /usr/lib/libatf-c.so.0
0xf8bd83876cc8 <atf_tp_main+0x9c4> at /usr/lib/libatf-c.so.0


>Fix:
n/a

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.