NetBSD Problem Report #57716

From  Tue Nov 21 03:57:03 2023
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 3CEE81A9238
	for <>; Tue, 21 Nov 2023 03:57:03 +0000 (UTC)
Message-Id: <>
Date: Tue, 21 Nov 2023 03:57:02 +0000 (UTC)
Subject: db_panic and db_stacktrace fail to print stack traces
X-Send-Pr-Version: www-1.0

>Number:         57716
>Category:       port-alpha
>Synopsis:       db_panic and db_stacktrace fail to print stack traces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 21 04:00:01 +0000 2023
>Last-Modified:  Tue Nov 21 14:40:01 +0000 2023
>Originator:     Taylor R Campbell
>Release:        current, 10, 9, 8, ...
The NetBSD Alphation
bin/sh/t_patterns (20/940): 3 test cases
    case_matching: [10.629356s] Passed.
    filename_expansion: [ 364.2882718] panic: kernel diagnostic assertion "timo != 0 || intr" failed: file "/tmp/build/2023.", line 249 
[ 364.2882718] cpu0: Begin traceback...
[ 364.2882718] alpha trace requires known PC =eject=
[ 364.2882718] cpu0: End traceback...
crash NetBSD on alpha
Yes, please!

From: "Taylor R Campbell" <>
Subject: PR/57716 CVS commit: src/sys
Date: Tue, 21 Nov 2023 14:35:01 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue Nov 21 14:35:01 UTC 2023

 Modified Files:
 	src/sys/arch/alpha/alpha: db_trace.c
 	src/sys/arch/alpha/include: db_machdep.h
 	src/sys/ddb: db_interface.h db_panic.c

 Log Message:
 ddb: New db_stack_trace_print_ra.

 Takes an optional extra argument for the return address so that the
 stack parser has a chance to use instruction-dependent interpretation
 of the frame to find parent frames.

 Implemented only on Alpha for now, which needs it.  Other
 architectures just ignore the extra argument.

 PR port-alpha/57716

 XXX pullup-10
 XXX pullup-9
 XXX pullup-8

 To generate a diff of this commit:
 cvs rdiff -u -r1.32 -r1.33 src/sys/arch/alpha/alpha/db_trace.c
 cvs rdiff -u -r1.19 -r1.20 src/sys/arch/alpha/include/db_machdep.h
 cvs rdiff -u -r1.43 -r1.44 src/sys/ddb/db_interface.h
 cvs rdiff -u -r1.11 -r1.12 src/sys/ddb/db_panic.c

 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.47 2022/09/11 19:34:41 kim Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.