Subject: bin/676: disklabel core dumps when when converting to 4.2bsd or unused
To: None <gnats-admin@NetBSD.ORG>
From: None <muir@idiom.com>
List: netbsd-bugs
Date: 01/02/1995 01:20:04
>Number: 676
>Category: bin
>Synopsis: disklabel core dumps when when converting to 4.2bsd or unused
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 2 01:20:02 1995
>Originator: David Muir Sharnoff
>Organization:
Idiom Consulting
>Release: 1.0
>Environment:
System: NetBSD again.idiom.com 1.0 NetBSD 1.0 (GENERICAHA) #3: Sun Oct 23 20:58:04 PDT 1994 cgd@sun-lamp.cs.berkeley.edu:/usr/src/sys/arch/i386/compile/GENERICAHA i386
>Description:
I wanted to convert a partition that was labeled 'swap' into
a '4.2BSD' partition. Using disklabel -e, whenver I made made
the change, it core dumped. It also dumps core if you try to
change to type 'unused'.
I eventually, found a workaround: if you fill in the
[fsize bsize cpg] fields, it accepts your change. Perhaps
that's required. I would tend to think that the fsize, bsize, and
cpg, are all things that should be filled in by newfs, not
disklabel.
Perhaps this is just a another case where the diagnositc is
a core dump, but I would tend to think that there are friendlier
ways of letting you know you are mis-using the program (assuming
that I was).
For those that are curious, here's where it dumps:
#0 word (cp=0x0) at disklabel.c:937
#1 0x43fd in getasciilabel (f=0x10076f9c, lp=0xf7bfd9e8) at disklabel.c:1207
#2 0x33aa in edit (lp=0xbd3c, f=3) at disklabel.c:861
#3 0x1c5d in main (argc=1, argv=0xf7bfdc88) at disklabel.c:248
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: