Bug 59792

Summary: 5.2-BETA: softupdates enabled on / kills installation
Product: Base System Reporter: dsf <dsf>
Component: kernAssignee: Andre Oppermann <andre>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
5.2-install-trace.cap
none
5.2-install-dmesg.cap none

Description dsf 2003-11-29 15:50:12 UTC
	I have given this PR the category critical/high because it
	completely breaks installation in an unrecoverable way, and
	5.2-RELEASE is slated to be the first production-quality
	FreeBSD v5 release, so...

	5.2-BETA installer crashes into DDB when it's about to start
	extracting files from base/base.ag if softupdates is enabled
	for the / filesystem.

	Due to the nature of failure (installation failure), I have
	been unable to obtain a saved crash dump file. I have also
	manually transcribed the DDB backtrace.

	It does not appear to be an hardware issue given the particular
	backtrace output, and is also reproducible at will on a variety
	of drives (internal, external) as well as different controllers
	and busses (ATA, Firewire/ATA, USB/ATA), and has also been seen
	by at least two other people according to a search of the
	freebsd-current mailing list in the past year.

	I have only been testing 5.1-CURRENT since about September 15
	of this year (2 1/2 months now) and it was present even back
	then, and apparently for some time -- evident from other bug
	reports on freebsd-current from earlier. So this does not appear
	to be a new or recently introduced problem.

	I would be more than happy to assist with any verification
	(install tests) as I have a dedicated external hard drive for
	things like this.

9073664 bytes read from base dist, chunk  7 of 35 @ 1814.7 KBytes/sec.
kernel: type 12 trap, code=0
Stopped at	_mtx_assert+0x4e:	movl	0x1c(%ebx),%eax
db> trace
_mtx_assert(0,1,c08afff0,63e,1000>) at mtx_assert+0x4e
vm_page_set_invalid(c22540d0,0,1000,554,0) at vm_page_set_invalid+0x35
brelse(d3505a60,0,e2242b90,c70a1a00,cbcf0000) at brelse+0x52b
softdep_disk_io_initiation(d35056f0,c6cf0000,e2242bc4,246,c089e678) at
	softdesk_disk_io_initialization+0xc4
spec_xstrategy(c721e30c,d35056f0,d5b,c089e678,d35056f0) at spec_xstrategy+0x117
spec_specstrategy(e2242bf8,f4,c2278310,4,d35056f0) at spec_specstrategy+0x72
ufs_strategy(e2242c3c,e2242c6c,c06b718d,e2242c3c,1) at ufs_strategy+0x13c
ufs_vnoperate(e2242c3c,1,c089e678,360,c0980340) at ufs_vnoperate+0x18
bwrite(d35056f0,0,c089e678,69b,880aa40) at bwrite+0x44d
vfs_bio_awrite(d35056f0,0,c089e678,88e,c6cf0000) at vfs_bio_awrite+0x252
flushbufqueues(0,0,c089e678,819,64) at flushbufqueues+0x247
buf_daemon(0,e2242d48,c0896058,311,fcd2e824) at buf_daemon+0xdc
fork_exit(c06b97c0,0,e2242d48) at fork_exit+0xb4
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xe2242d7c, ebp = 0 ---
db>

Fix: 

Current work-around is to NOT enable softupdates for the / filesystem
	only during installation time. It may be possible to safely enable
	softupdates for / post-installation but I have not tested this yet.

	If this cannot be fixed in time for 5.2-RELEASE, then I would
	recommend an update to the installer that disallows users from
	enabling software updates for / and also a mention of this in
	the install notes. This only applies to an installation from CD,
	floppy, or network and NOT from build/installworld; that particular
	case works fine.
How-To-Repeat: 	Enable softupdates for the / filesystem then start installation.
Comment 1 Simon L. B. Nielsen freebsd_committer freebsd_triage 2003-11-29 19:25:25 UTC
On 2003.11.29 10:40:41 -0500, dsf@globalcrossing.net wrote:
> 
> 	I have given this PR the category critical/high because it
> 	completely breaks installation in an unrecoverable way, and


I agree this is a show-stopper for 5.2.

> 	5.2-RELEASE is slated to be the first production-quality
> 	FreeBSD v5 release, so...


Well, actually 5.3 will (probably) be first "-STABLE" from the 5.X
series, see the 5-ROADMAP article for more information.

> 	5.2-BETA installer crashes into DDB when it's about to start
> 	extracting files from base/base.ag if softupdates is enabled
> 	for the / filesystem.


This also happens for me with the "official" 5.2-BETA image.

Mine died at a different place in the extraction process, but the
traceback seems to be the same.

I just tried an install where I didn't enable softupdates on the root
partition, it didn't panic but during the install it did give an locking
warning/error.  I will try to get a serial console on it to capture the
exact error.

-- 
Simon L. Nielsen
FreeBSD Documentation Team
Comment 2 Simon L. B. Nielsen freebsd_committer freebsd_triage 2003-11-29 21:31:33 UTC
Just a little followup...

This still happens for me with 5.2-BETA-20031129-JPSNAP.  I attached a
serial console to get a non-transcribed traceback and complete dmesg.
Both should be attached.

BTW I install to ad4, though I don't think that matters.

-- 
Simon L. Nielsen
FreeBSD Documentation Team
Whithout GPG so GNATS doesn't mess up files
Comment 3 Andre Oppermann freebsd_committer freebsd_triage 2003-12-22 20:27:10 UTC
State Changed
From-To: open->closed

This is believed to be fixed in 5.2RC2. Closing this PR is favor of kern/60430 
which concerns the same problem. 


Comment 4 Andre Oppermann freebsd_committer freebsd_triage 2003-12-22 20:27:10 UTC
Responsible Changed
From-To: freebsd-bugs->andre

This is believed to be fixed in 5.2RC2. Closing this PR is favor of kern/60430 
which concerns the same problem.