NetBSD Problem Report #541
From gnats Mon Oct 31 05:07:24 1994
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id FAA06150 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 31 Oct 1994 05:07:23 -0800
Message-Id: <199410311309.FAA00286@empire.CSOS.ORST.EDU>
Date: Mon, 31 Oct 1994 05:09:08 -0800
From: Jason Downs <downsj@CSOS.ORST.EDU>
Reply-To: downsj@CSOS.ORST.EDU
To: gnats-bugs@NetBSD.ORG
Subject: config(8) core dumps on ccd device declarations
X-Send-Pr-Version: 3.2
>Number: 541
>Category: bin
>Synopsis: config(8) core dumps on ccd device declarations
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 31 05:20:03 +0000 1994
>Closed-Date: Mon Oct 31 19:13:22 +0000 1994
>Last-Modified:
>Originator:
>Release: 1.0
>Organization:
Computer Science Outreach Services, Oregon State University
>Environment:
System: NetBSD empire 1.0 NetBSD 1.0 (EMPIRE) #1: Sun Oct 30 01:38:20 PST 1994 downsj@empire:/localsrc/sys/arch/hp300/compile/EMPIRE hp300
>Description:
The patch to config(8) to support ccd devices was originally applied
incorrectly, and I forgot about it, until now. It is incorrect in
the current (1.0) source tree.
>How-To-Repeat:
Attempt to config a kernel with a ccd device.
>Fix:
/usr/src/usr.sbin/config/mkioconf.c:
*** mkioconf.c.orig Wed Aug 3 12:32:17 1994
--- mkioconf.c Sat Aug 6 05:39:10 1994
***************
*** 135,141 ****
fprintf(fp, "\t%d,\t%d,\t%d,\t%d,\t{",
dp->d_unit, dp->d_pri < 0 ? 0 : dp->d_pri,
dp->d_flags, 1);
! for (fl = fl->f_next; fl->f_type == COMPSPEC && fl; fl = fl->f_next)
fprintf(fp, " 0x%x,", fl->f_compdev);
fprintf(fp, " NODEV },\n");
}
--- 135,141 ----
fprintf(fp, "\t%d,\t%d,\t%d,\t%d,\t{",
dp->d_unit, dp->d_pri < 0 ? 0 : dp->d_pri,
dp->d_flags, 1);
! for (fl = fl->f_next; fl && fl->f_type == COMPSPEC; fl = fl->f_next)
fprintf(fp, " 0x%x,", fl->f_compdev);
fprintf(fp, " NODEV },\n");
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Mon Oct 31 11:13:22 PST 1994
State-Changed-Why:
Fixed, though I think you overestimate the severity of the problem.
>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.