From ortmann@sparc.isl.net  Mon Feb 28 22:10:00 2000
Return-Path: <ortmann@sparc.isl.net>
Received: from sparc.isl.net (ppp-214.centerplacenet.com [208.29.63.214])
	by hub.freebsd.org (Postfix) with ESMTP
	id 3BF1237B9DD; Mon, 28 Feb 2000 22:09:56 -0800 (PST)
	(envelope-from ortmann@sparc.isl.net)
Received: (from ortmann@localhost)
	by sparc.isl.net (8.9.3/8.9.3) id AAA00514;
	Tue, 29 Feb 2000 00:14:48 -0600 (CST)
	(envelope-from ortmann)
Message-Id: <200002290614.AAA00514@sparc.isl.net>
Date: Tue, 29 Feb 2000 00:14:48 -0600 (CST)
From: Daniel Ortmann <ortmann@sparc.isl.net>
Reply-To: ortmann@sparc.isl.net
To: FreeBSD-gnats-submit@freebsd.org, freebsd-current@freebsd.org
Subject: consistent "make -k buildworld" crash with 2 swap partitions
X-Send-Pr-Version: 3.2

>Number:         17067
>Category:       kern
>Synopsis:       consistent "make -k buildworld" crash with 2 swap partitions
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 28 22:10:00 PST 2000
>Closed-Date:    Sun Jul 15 13:06:07 PDT 2001
>Last-Modified:  Wed Aug  1 22:30:00 PDT 2001
>Originator:     Daniel Ortmann
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
N/A
>Environment:

The /etc/fstab which enables the crash is the following.  To fix it
comment out the second swap.  Note they are on separate drives.

# Device        Mountpoint              FStype  Options            Dump    Pass#
/dev/wd1s1b     none                    swap    sw                 0       0
/dev/wd2s1b     none                    swap    sw                 0       0
/dev/wd2s1a     /                       ufs     rw                 1       1
/dev/wd2s1d     /home                   ufs     rw                 2       2
/dev/wd1s1e     /rootbak                ufs     ro                 2       2
/dev/wd0s2a     /rootboot               ufs     ro                 2       2
/dev/wd1s1f     /tmp                    ufs     rw                 2       2
/dev/wd2s1f     /usr                    ufs     rw                 2       2
/dev/wd1s1h     /usr/X11R6              ufs     rw                 2       2
/dev/wd1s1a     /usr/local              ufs     rw                 2       2
/dev/wd2s1g     /usr/obj                ufs     rw                 2       2
/dev/wd2s1h     /usr/ports              ufs     rw                 2       2
/dev/wd1s1d     /usr/ports/distfiles    ufs     rw                 2       2
/dev/wd1s1g     /usr/src                ufs     rw                 2       2
/dev/wd2s1e     /var                    ufs     rw                 2       2
proc            /proc                   procfs  rw                 0       0
kern            /kern                   kernfs  rw                 0       0

My hardware is quite standard.  The kernel config file almost matches
GENERIC.  Here are the options in case you find information here:

options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep this!]
options         MFS                     #Memory Filesystem
options         MD_ROOT                 #MD is a potential root device
options         NFS                     #Network Filesystem
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         CD9660_ROOT             #CD-ROM usable as root, CD9660 required
options         PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         UCONSOLE                #Allow users to grab the console
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         P1003_1B                #Posix P1003_1B real-time extentions
options         _KPOSIX_PRIORITY_SCHEDULING
options         ICMP_BANDLIM            #Rate limit bad replies
options         AUTO_EOI_1
options         AUTO_EOI_2
options         COMPAT_LINUX
options         CLK_CALIBRATION_LOOP
options         CLK_USE_I8254_CALIBRATION
options         CLK_USE_TSC_CALIBRATION
options         ICMP_BANDLIM
options         IPDIVERT
options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=3
options         KERNFS
options         MD5
options         NO_F00F_HACK
options         PPP_DEFLATE
options         PPP_FILTER
options         SC_DISABLE_REBOOT
options         SOFTUPDATES
options         ATA_STATIC_ID           #Static device numbering

I should also mention that I am running softupdates.

>Description:

If both swap partitions are enabled then "make -k buildworld" crashes
the system with ABSOLUTE CONSISTENCY.

Since this behavior has been around for about a year (???) I assume my
system configuration must be unusual ... or surely this would have been
discovered and fixed earlier.

Several months ago a bug was found with dual swap partitions.  It
involved some cross-partition alignment problem.  When that bug was
fixed most of my crashes disappeared.  Except for this problem.
But "make -k buildworld" continued to crash the system.

>How-To-Repeat:

1) Edit fstab to use 2 separate swap partitions on 2 separate drives.
2) Run with softupdates.
3) Run "make -k buildworld"

Note 1: I don't know if the second partition *must* be on a different
        drive to cause the crash, only that my system is set up that
        way.

Note 2: I don't know if softupdates has anything to do with this
        problem.

>Fix:

The workaround is to comment out the second swap partition in fstab.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Thu May 24 12:38:21 PDT 2001 
State-Changed-Why:  
Do you still experience this problem?  Providing a stack traceback 
(see the handbook section on kernel debugging) would go a long way 
towards identifying the possible problem in FreeBSD 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17067 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sun Jul 15 13:06:07 PDT 2001 
State-Changed-Why:  
Feedback timeout 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17067 

From: Kris Kennaway <kris@obsecurity.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/17067: consistent "make -k buildworld" crash with 2 swap partitions
Date: Wed, 1 Aug 2001 22:23:17 -0700

 --dFWYt1i2NyOo1oI9
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Adding to audit trail
 
 ----- Forwarded message from Daniel Ortmann <ortmann@sparc.isl.net> -----
 
 Delivered-To: kkenn@localhost.obsecurity.org
 Date: Thu, 02 Aug 2001 00:20:28 -0500
 From: Daniel Ortmann <ortmann@sparc.isl.net>
 Subject: Re: kern/17067: consistent "make -k buildworld" crash with 2 swap
  partitions
 In-reply-to: kris@FreeBSD.org's message of
  "Thu, 24 May 2001 12:39:22 -0700 (PDT)"
 To: kris@FreeBSD.org
 X-Mailer: Gnus v5.7/Emacs 20.7
 Delivered-to: kris@freebsd.org
 
 My problem was solved by taking the side off of my computer and aiming a
 LARGE fan into it.
 
 It was evidentally a heat problem that had NOTHING to do with FreeBSD.
 
 kris@FreeBSD.org writes:
 
 > Synopsis: consistent "make -k buildworld" crash with 2 swap partitions
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: kris
 > State-Changed-When: Thu May 24 12:38:21 PDT 2001
 > State-Changed-Why:=20
 > Do you still experience this problem?  Providing a stack traceback
 > (see the handbook section on kernel debugging) would go a long way
 > towards identifying the possible problem in FreeBSD
 >=20
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=3D17067
 >=20
 >=20
 
 --=20
 Daniel Ortmann       IBM Circuit Technology
 2414 30 av NW, #D    E315, bldg 040-2
 Rochester, MN 55901  3605 Hwy 52 N
 507.288.7732 (h)     507.253.6795 (w)
 ortmann@isl.net      ortmann@us.ibm.com
 
 "The answers are so simple and we all know where to look,
 but it's easier just to avoid the question." -- Kansas
 
 ----- End forwarded message -----
 
 --dFWYt1i2NyOo1oI9
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE7aOPEWry0BWjoQKURArVGAKD9z+KeEVHy+0AtKnA24mhA0JDISgCfW/vK
 WPGUUEFNK2VO+dH1l0pNiUI=
 =cWnk
 -----END PGP SIGNATURE-----
 
 --dFWYt1i2NyOo1oI9--
>Unformatted:
