Subject: port-i386/37155: mount: /tmp: Segmentation fault error at boot in netbsd-4-rc-3
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <mschmidt@savvybyte.com>
List: netbsd-bugs
Date: 10/19/2007 23:35:01
>Number:         37155
>Category:       port-i386
>Synopsis:       mount: /tmp: Segmentation fault error at boot in netbsd-4-rc-3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 19 23:35:01 +0000 2007
>Originator:     Marcelo Schmidt
>Release:        NetBSD 4.0_RC3
>Organization:
Savvybyte
>Environment:
NetBSD moon 4.0_RC3 NetBSD 4.0_RC3 (GENERIC.MP) #0: Tue Oct 16 01:41:36 PDT 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RC3/i386/200710160011Z-obj/home/builds/ab/netbsd-4-0-RC3/src/sys/arch/i386/compile/GENERIC.MP i386
>Description:
Boot error message "mount: /tmp: Segmentation fault" on a fresh NetBSD 4.0_RC3 install.  Disklabel created the disk label during a standard install, all partitions also were created without errors.  NetBSD 4.0_RC3 installs without errors but it cannot mount /tmp.  Same partitions used here work OK in 3.0 and 3.1 stable releases.

disklabel -r ld0
# /dev/rld0d:
type: unknown
disk: disk0
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 24792
total sectors: 398295040
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   6152895         1     4.2BSD   2048 16384     0  # (Cyl.      0*-    383*)
 b:   6152895   6152896       swap                     # (Cyl.    383*-    766*)
 c: 398295039         1     unused      0     0        # (Cyl.      0*-  24792*)
 d: 398295040         0     unused      0     0        # (Cyl.      0 -  24792*)
 e:  20482875  12305791     4.2BSD   2048 16384     0  # (Cyl.    766*-   2041*)
 f:  10249470  32788666     4.2BSD   2048 16384     0  # (Cyl.   2041*-   2679*)
 g: 355256904  43038136     4.2BSD   2048 16384     0  # (Cyl.   2679*-  24792*)
>How-To-Repeat:
Just do a fresh install of NetBSD 4.0_RC3 and create a /tmp partition among your regular partitions.  You will get a boot error message:
mount: /tmp: Segmentation fault

I am using a 3Ware card configured in RAID1 fwiw.  I tested the same install, on the same system using the same values with 3.0 and 3.1 without problems.

>Fix: