Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2007 17:32:13 +0300
From:      Nikolay Pavlov <qpadla@gmail.com>
To:        Jan Harkes <jaharkes@cs.cmu.edu>
Cc:        freebsd-current@freebsd.org, rwatson@freebsd.org
Subject:   Re: And probably the final crash for today's current :) (panic: filesystem goof: vop_panic[vop_print])
Message-ID:  <200708251732.17394.qpadla@gmail.com>
In-Reply-To: <20070824151927.GA11642@cs.cmu.edu>
References:  <200708202340.29678.qpadla@gmail.com> <20070824151927.GA11642@cs.cmu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1369032.4krqKLkfdp
Content-Type: multipart/mixed;
  boundary="Boundary-01=_t1D0GhRWpPtu/aI"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_t1D0GhRWpPtu/aI
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Friday 24 August 2007 18:19:27 Jan Harkes wrote:
> The following patch adds locking around VOP_ operations. I ran some
> tests and it seems like I got them all. For some reason I could only get
> the warnings to go away when using exclusive locks, but since the
> overhead in our case really is in userspace and we still hold the giant
> lock pretty much everywhere there shouldn't be a measurable difference.

With your patch everything works fine, but only if i'am using UFS as a=20
cachedir, rvm and checkpointdir backend.
If i'am using ZFS as a backend a panic occur with "ls -l /coda" command. =20

See in attachment.


=2D-=20

* Best regards, Nikolay Pavlov *


--Boundary-01=_t1D0GhRWpPtu/aI
Content-Type: text/plain;
  charset="iso-8859-1";
  name="coda_panic.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="coda_panic.txt"

panic: Assertion !mtx_owned(&w_mtx) failed at /usr/src/sys/kern/subr_witness.c:958
cpuid = 0
KDB: enter: panic
exclusive sleep mutex Giant r = 0 (0xc0bb1250) locked @ /usr/src/sys/kern/vfs_syscalls.c:3727
shared spin mutex  (exclusive sleep mutex Giant r = 0 (0xc0bb1250) locked @ /usr/src/sys/kern/vfs_syscalls.c:3727
shared spin mutex  (shared spin mutex  (panic: from debugger
cpuid = 0
Uptime: 53s
Physical memory: 1003 MB
Dumping 95 MB: 80 64 48 32 16

#0  doadump () at pcpu.h:195
195             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc074ec6e in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc074ef2b in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc048c887 in db_panic (addr=Could not find the frame base for "db_panic".
) at /usr/src/sys/ddb/db_command.c:433
#4  0xc048d275 in db_command_loop () at /usr/src/sys/ddb/db_command.c:401
#5  0xc048e9e5 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:222
#6  0xc0775c76 in kdb_trap (type=3, code=0, tf=0xe69ea140) at /usr/src/sys/kern/subr_kdb.c:502
#7  0xc0a02e6b in trap (frame=0xe69ea140) at /usr/src/sys/i386/i386/trap.c:621
#8  0xc09e889b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#9  0xc0775df2 in kdb_enter (msg=0xc0a9bd83 "panic") at cpufunc.h:60
#10 0xc074ef14 in panic (fmt=0xc0a971f1 "Assertion %s failed at %s:%d") at /usr/src/sys/kern/kern_shutdown.c:547
#11 0xc0786349 in witness_checkorder (lock=0xc0c22a60, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/subr_witness.c:958
#12 0xc0743a2f in _mtx_lock_spin_flags (m=0xc0c22a60, opts=0, file=0xc0a8920f "/usr/src/sys/dev/syscons/syscons.c", line=1801) at /usr/src/sys/kern/kern_mutex.c:223
#13 0xc0677b1d in scrn_update (scp=0xc0bad260, show_cursor=1) at /usr/src/sys/dev/syscons/syscons.c:1801
#14 0xc0679826 in sccnupdate (scp=0xc0bad260) at /usr/src/sys/dev/syscons/syscons.c:1683
#15 0xc067b59d in sc_cnputc (cd=0xc0b0a320, c=107) at /usr/src/sys/dev/syscons/syscons.c:1571
#16 0xc0798b6f in cnputc (c=107) at /usr/src/sys/kern/tty_cons.c:632
#17 0xc0779367 in putcons (c=Variable "c" is not available.
) at /usr/src/sys/kern/subr_prf.c:372
#18 0xc0779431 in putchar (c=107, arg=0xe69ea40c) at /usr/src/sys/kern/subr_prf.c:413
#19 0xc0777e05 in kvprintf (fmt=0xc0aca641 "ernel trap %d with interrupts disabled\n", func=0xc07793d0 <putchar>, arg=0xe69ea40c, radix=10, ap=0xe69ea438 "\f")
    at /usr/src/sys/kern/subr_prf.c:599
#20 0xc0778f6e in printf (fmt=0xc0aca640 "kernel trap %d with interrupts disabled\n") at /usr/src/sys/kern/subr_prf.c:314
#21 0xc0a029ce in trap (frame=0xe69ea4cc) at /usr/src/sys/i386/i386/trap.c:237
#22 0xc09e889b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#23 0xc07841b3 in isitmychild (parent=0xc607c4ec, child=0xc0bc14c8) at /usr/src/sys/kern/subr_witness.c:1614
#24 0xc078637e in witness_checkorder (lock=0xc0c22a60, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/subr_witness.c:965
#25 0xc0743a2f in _mtx_lock_spin_flags (m=0xc0c22a60, opts=0, file=0xc0a8920f "/usr/src/sys/dev/syscons/syscons.c", line=1801) at /usr/src/sys/kern/kern_mutex.c:223
#26 0xc0677b1d in scrn_update (scp=0xc0bad260, show_cursor=1) at /usr/src/sys/dev/syscons/syscons.c:1801
#27 0xc0679826 in sccnupdate (scp=0xc0bad260) at /usr/src/sys/dev/syscons/syscons.c:1683
#28 0xc067b59d in sc_cnputc (cd=0xc0b0a320, c=75) at /usr/src/sys/dev/syscons/syscons.c:1571
#29 0xc0798b6f in cnputc (c=75) at /usr/src/sys/kern/tty_cons.c:632
#30 0xc0779367 in putcons (c=Variable "c" is not available.
) at /usr/src/sys/kern/subr_prf.c:372
#31 0xc0779431 in putchar (c=75, arg=0xe69ea768) at /usr/src/sys/kern/subr_prf.c:413
#32 0xc0777e05 in kvprintf (fmt=0xc0aca66a "ernel page fault", func=0xc07793d0 <putchar>, arg=0xe69ea768, radix=10, ap=0xe69ea7cc "") at /usr/src/sys/kern/subr_prf.c:599
#33 0xc0778e8b in vprintf (fmt=0xc0aca669 "Kernel page fault", ap=0xe69ea7cc "") at /usr/src/sys/kern/subr_prf.c:352
#34 0xc0785861 in witness_warn (flags=5, lock=0x0, fmt=0xc0aca669 "Kernel page fault") at /usr/src/sys/kern/subr_witness.c:1385
#35 0xc0a02a22 in trap (frame=0xe69ea858) at /usr/src/sys/i386/i386/trap.c:274
#36 0xc09e889b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#37 0xc43f6ab0 in ?? ()

--Boundary-01=_t1D0GhRWpPtu/aI--

--nextPart1369032.4krqKLkfdp
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBG0D1x/2R6KvEYGaIRApE0AJ0WntWkHZ6CFUqn+XJ9Eg3ugWpJMwCg0mm8
LB0L9wR1hf9o0w300qvcd3w=
=QDcx
-----END PGP SIGNATURE-----

--nextPart1369032.4krqKLkfdp--



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