NetBSD Problem Report #56769

From  Sat Mar 26 16:45:36 2022
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 9C4D01A9239
	for <>; Sat, 26 Mar 2022 16:45:36 +0000 (UTC)
Reply-To: martin
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
The NetBSD Foundation, Inc.
System: NetBSD 9.99.95 NetBSD 9.99.95 (MODULAR) #536: Sat Mar 26 09:19:27 CET 2022 sparc64
Architecture: sparc64
Machine: sparc64

Libexecinfo fails to capture backtraces for signal handlers on sparc64.


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/
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/
0xf8bd83876cc8 <atf_tp_main+0x9c4> at /usr/lib/


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.