Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Jun 2009 18:11:27 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        David Naylor <naylor.b.david@gmail.com>
Cc:        freebsd-current@freebsd.org, kib@freebsd.org
Subject:   Re: __getcwd panics [lock held] (r193174, r193186)
Message-ID:  <1244153487.19104.16.camel@shumai.marcuscom.com>
In-Reply-To: <200906042321.44624.naylor.b.david@gmail.com>
References:  <200906042321.44624.naylor.b.david@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Thu, 2009-06-04 at 23:21 +0200, David Naylor wrote:
> Hi,
> 
> A recent change (r193174, r193186) in vfs_cache has been causing __getcwd to 
> panic the system.  The panic appears to trigger when I try install lang/ezm3 
> (with other things also happening).

Can you try this patch:

http://people.freebsd.org/~marcus/vfs_cache.c.diff

Joe

> 
> -- hand copied ---
> 
> System call _getcwd returning with the following locks held:
> shared rw Name Cache (Name Cache) r = 0 (0xc0eced7c) locked 
> @ /usr/src/sys/kern/vfs_cache.c:1104
> panic: witness_warn
> 
> --- above reproducible ---
> 
> cpuid = 2
> KDB: enter: panic
> [thread pid 23322 tid 100190 ]
> Stopped at kdb_enter+0x3a: movl $0, kdb_why
> db> cont
> Uptime 20m35s
> Physical memory: 3055 MB
> Dumping 271 MB: 256 240 224panic: bufwrite: buffer is not busy???
> cpuid = 0
> KDB: enter: panic
> [thread pid 25 tid 100055 ]
> Stopped at kdb_enter+0x3a: movl $0, kdb_why
> db> cont
> Uptime: 20m36s
> Automatic reboot in 15 seconds - press a key on the console to abort
> Rebooting...
> cpu_reset: Stopping other CPUs
> 
> --- systems hangs here, does nothing else ---
> --- hard reset ---
> 
> I reverst the change (and r193175) and the panic 'disappeared'.  
> 
> Willing to test patches.  
> 
> Regards,
> 
> David
-- 
PGP Key : http://www.marcuscom.com/pgp.asc

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkooRo4ACgkQb2iPiv4Uz4cVcgCfZdoIvmgO2pyuC5sMDCwFyMnz
We8Anj2pVYCEoAbV2gxpkI93iNzcYD3K
=Z18v
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1244153487.19104.16.camel>