NetBSD Problem Report #98
From gnats Mon Jan 24 21:58:33 1994
Received: from bloom-beacon.mit.edu (BLOOM-BEACON.MIT.EDU [18.70.0.232]) by sun-lamp.cs.berkeley.edu (8.6.4/8.6.4) with SMTP id VAA22282 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 24 Jan 1994 21:50:16 -0800
Message-Id: <199401250538.AAA00461@orchard.medford.ma.us>
Date: Tue, 25 Jan 1994 00:38:38 -0500
From: sommerfeld@orchard.medford.ma.us
Reply-To: sommerfeld@orchard.medford.ma.us
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: semi-hack change to allow diagnosis of call 0 faults
X-Send-Pr-Version: 3.01.6
>Number: 98
>Category: kern
>Synopsis: Semi-hack change to allow diagnosis of call through 0 faults.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jan 24 22:05:06 +0000 1994
>Closed-Date: Tue Mar 31 08:14:47 +0000 1998
>Last-Modified: Tue Mar 31 08:15:04 +0000 1998
>Originator: Bill Sommerfeld
>Release: -current
>Organization:
None
>Environment:
System: NetBSD orchard.medford.ma.us 0.9a ORCHARD#7 i386
>Description:
DDB protects itself against recursive faults; however, this
doesn't apply on the initial entry into DDB, during which time the
faulting instruction is diassembled.
if the kernel just jumped through NULL, DDB takes a fault and *doesn't*
longjump back to the ddb reader (because it hasn't gotten there yet..)
and you wind up debugging the debugger, not the kernel...
>How-To-Repeat:
Insert a call $0 instruction into the kernel somewhere :-)
>Fix:
The enclosed fix protects only against a call through zero; the
code should really do a probe-for-readable on the address instead.
*** 1.1 1994/01/25 05:08:54
--- db_disasm.c 1994/01/25 05:09:49
***************
*** 1072,1077 ****
--- 1072,1081 ----
int len;
struct i_addr address;
+ if (loc == NULL) {
+ printf("(null)\n");
+ return loc;
+ }
get_value_inc(inst, loc, 1, FALSE);
short_addr = FALSE;
size = LONG;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: thorpej
State-Changed-When: Tue Mar 31 00:14:47 PST 1998
State-Changed-Why:
Fixed (somewhat differently).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.