Subject: newfs segfaults
To: None <port-alpha@netbsd.org>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-alpha
Date: 01/05/2002 20:05:34
Interesting failure with newfs compiled from last night's -current:
inasa# gdb ./newfs
GNU gdb 5.0-nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alpha-unknown-netbsd"...
(gdb) set args /dev/rwd0g
(gdb) run
Starting program: /usr/local/local_source/builder/sbin/newfs/obj/./newfs /dev/rwd0g
/dev/rwd0g: 4194288 sectors in 4161 cylinders of 16 tracks, 63 sectors
2048.0MB in 49 cyl groups (86 c/g, 42.33MB/g, 10432 i/g)
super-block backups (for fsck -b #) at:
32, 86784,
Program received signal SIGSEGV, Segmentation fault.
initcg (cylno=2, utime=597)
at /usr/local/local_source/builder/sbin/newfs/mkfs.c:780
780 sump[run]++;
(gdb) list
775 if ((map & bit) != 0) {
776 run++;
777 } else if (run != 0) {
778 if (run > sblock.fs_contigsumsize)
779 run = sblock.fs_contigsumsize;
780 sump[run]++;
781 run = 0;
782 }
783 if ((i & (NBBY - 1)) != (NBBY - 1)) {
784 bit <<= 1;
(gdb) print sump
$1 = (__int32_t *) 0x12002ecbc
-- Chris