/sbin/newfs 4.8-STABLE_20030803 segfault and core

stuck_in_telnet at no.where stuck_in_telnet at no.where
Tue Sep 2 13:10:35 PDT 2003

#        size   offset    fstype   [fsize bsize bps/cpg]
  h: 19925880        0    4.2BSD     2048 16384    89   # (Cyl.    0 - 19767*)

/tmp/newfs: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.8, statically linked, not stripped

/tmp/newfs -NU -i 3 ad0h    
Warning: Block size restricts cylinders per group to 40200.
Warning: 1160 sector(s) in last cylinder unallocated
/dev/ad0h:      19925880 sectors in 4865 cylinders of 1 tracks, 4096 sectors
        9729.4MB in 1 cyl groups (40200 c/g, 80400.00MB/g, -48203008 i/g) SOFTUPDATES
super-block backups (for fsck -b #) at:
zsh: segmentation fault (core dumped)  /tmp/newfs -NU -i 3 ad0h

Core was generated by `newfs'.
Program terminated with signal 11, Segmentation fault.
#0  0x804c6c8 in initcg (cylno=0, utime=1062500000) at /usr/src/sbin/newfs/mkfs.c:835
(gdb) #0  0x804c6c8 in initcg (cylno=0, utime=1062500000) at /usr/src/sbin/newfs/mkfs.c:835
#1  0x804c080 in mkfs (pp=0x806eec4, fsys=0x8093bc0 "/dev/ad0h", fi=3, fo=-1) at /usr/src/sbin/newfs/mkfs.c:709
#2  0x8049581 in main (argc=1, argv=0xbfbffbc4) at /usr/src/sbin/newfs/newfs.c:617

binary from above sup date running on 4.8-RELEASE.
if run on smaller partitions it simply emits a warning...
/tmp/newfs -NU -i 3 ad1b
Minimum bytes per inode is 773576

no biggie, now off to fix the mail client...

More information about the freebsd-fs mailing list