Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Apr 2007 19:10:36 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-current@freebsd.org
Cc:        freebsd-fs@freebsd.org, Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= <des@des.no>, Pawel Jakub Dawidek <pjd@freebsd.org>
Subject:   Re: ZFS committed to the FreeBSD base.
Message-ID:  <200704081910.42852.max@love2party.net>
In-Reply-To: <86k5wo55s0.fsf@dwp.des.no>
References:  <20070406025700.GB98545@garage.freebsd.pl> <86k5wo55s0.fsf@dwp.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart5655571.IUblBEjXgS
Content-Type: multipart/mixed;
  boundary="Boundary-01=_NISGGyaMHdg/POM"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

On Saturday 07 April 2007 21:43, Dag-Erling Sm=F8rgrav wrote:
> Pawel Jakub Dawidek <pjd@FreeBSD.org> writes:
> > Limitations.
> >
> >   Currently ZFS is only compiled as kernel module and is only
> > available for i386 architecture. Amd64 should be available very soon,
> > the other archs will come later, as we implement needed atomic
> > operations.
>
> ZFS is now also available on pc98 and amd64.

panic: lock "zfs:&zap->zap_f.zap_num_entries_mtx" 0xffffff006582c260=20
already initialized

While dump/restoreing /usr to zfs.  kgdb trace attached.  Let me know if=20
you need further information.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--Boundary-01=_NISGGyaMHdg/POM
Content-Type: text/plain;
  charset="iso-8859-1";
  name="log.dump_panic"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="log.dump_panic"

Script started on Sun Apr  8 19:03:59 2007
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd".

Unread portion of the kernel message buffer:
/jpda
<118>Make node ./local/diablo-jdk1.5.0/include
<118>Make node ./local/diablo-jdk1.5.0/include/freebsd
<118>Make node ./local/diablo-jdk1.5.0/jre
<118>Make node ./local/diablo-jdk1.5.0/jre/bin
<118>Make node ./local/diablo-jdk1.5.0/jre/lib
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/applet
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/amd64
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/amd64/native_threads
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/amd64/server
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/amd64/xawt
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/amd64/motif21
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/amd64/headless
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/ext
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/security
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/fonts
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/oblique-fonts
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/images
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/images/cursors
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/audio
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Africa
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Atlantic
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Asia
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Antarctica
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/America
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/America/Kentucky
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/America/Argentina
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/America/Indiana
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/America/North_Dakota
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Australia
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Europe
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Etc
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Indian
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/zi/Pacific
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/cmm
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/im
<118>Make node ./local/diablo-jdk1.5.0/jre/lib/management
<118>Make node ./local/diablo-jdk1.5.0/lib
<118>Make node ./local/diablo-jdk1.5.0/man
<118>Make node ./local/diablo-jdk1.5.0/man/man1
<118>Make node ./local/diablo-jdk1.5.0/man/ja_JP.eucJP
<118>Make node ./local/diablo-jdk1.5.0/man/ja_JP.eucJP/man1
<118>Make node ./local/diablo-jdk1.5.0/sample
<118>Make node ./local/diablo-jdk1.5.0/sample/nio
<118>Make node ./local/diablo-jdk1.5.0/sample/nio/server
<118>Make node ./local/live
<118>Make node ./local/live/groupsock
<118>Make node ./local/live/groupsock/include
<118>Make node ./local/live/liveMedia
<118>Make node ./local/live/liveMedia/include
<118>Make node ./local/live/UsageEnvironment
<118>Make node ./local/live/UsageEnvironment/include
<118>Make node ./local/live/BasicUsageEnvironment
<118>Make node ./local/live/BasicUsageEnvironment/include
<118>Make node ./local/lib32
<118>Make node ./local/lib32/compat
<118>Make node ./local/perforce
<118>Make node ./local/perforce/logs
<118>Make node ./local/perforce/root
<118>Make node ./local/eclipse
<118>Make node ./local/eclipse/configuration
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/.manager
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/manifests
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/40
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/40/1
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/40/1/.cp
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47/1
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47/1/.cp
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47/1/.cp/intro
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47/1/.cp/intro/css
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47/1/.cp/intro/css/graphics
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/47/1/.cp/intro/css/graphics/obj_48
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91/1
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91/1/.cp
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91/1/.cp/intro
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91/1/.cp/intro/css
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91/1/.cp/intro/css/graphics
<118>Make node ./local/eclipse/configuration/org.eclipse.osgi/bundles/91/1/.cp/intro/css/graphics/obj_48
<118>Make node ./local/eclipse/configuration/org.eclipse.update
<118>Make node ./local/eclipse/configuration/org.eclipse.update/history
<118>Make node ./local/eclipse/configuration/org.eclipse.core.runtime
<118>Make node ./local/eclipse/configuration/org.eclipse.core.runtime/.manager
<118>Make node ./local/eclipse/configuration/.settings
<118>Make node ./local/eclipse/features
panic: lock "zfs:&zap->zap_f.zap_num_entries_mtx" 0xffffff006582c260 already initialized
cpuid = 0
KDB: enter: panic
panic: from debugger
cpuid = 0
Uptime: 6m52s
Physical memory: 2038 MB
Dumping 209 MB: 194 178 162 146 130 114 98 82 66 50 34 18 2

#0  doadump () at pcpu.h:171
171	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) add-symbol-file /boot/kernel/zfs.ko 0xffffffff807ad000
add symbol table from file "/boot/kernel/zfs.ko" at
	.text_addr = 0xffffffff807ad000
(y or n) y
Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /boot/kernel/zfs.ko.symbols...done.
done.
(kgdb) where
#0  doadump () at pcpu.h:171
#1  0xffffffff80295c79 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xffffffff80295707 in panic (fmt=0xffffffff8045a288 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xffffffff801896c7 in db_panic (addr=0, have_addr=0, count=0, modif=0x0) at /usr/src/sys/ddb/db_command.c:433
#4  0xffffffff80189b69 in db_command_loop () at /usr/src/sys/ddb/db_command.c:401
#5  0xffffffff8018ba73 in db_trap (type=-1360305152, code=0) at /usr/src/sys/ddb/db_main.c:222
#6  0xffffffff802bd0d8 in kdb_trap (type=3, code=0, tf=0xffffffffaeeb6590) at /usr/src/sys/kern/subr_kdb.c:502
#7  0xffffffff8041a5a0 in trap (frame=0xffffffffaeeb6590) at /usr/src/sys/amd64/amd64/trap.c:472
#8  0xffffffff80401ebe in calltrap () at /usr/src/sys/amd64/amd64/exception.S:169
#9  0xffffffff802bcb7f in kdb_enter (msg=0x0) at cpufunc.h:63
#10 0xffffffff80295755 in panic (fmt=0xffffffff80481bc0 "lock \"%s\" %p already initialized") at /usr/src/sys/kern/kern_shutdown.c:547
#11 0xffffffff802bd72e in lock_init (lock=0x0, class=0xffffffff80a11000, name=0xa <Address 0xa out of bounds>,
    type=0x1b1196 <Address 0x1b1196 out of bounds>, flags=1048064) at /usr/src/sys/kern/subr_lock.c:201
#12 0xffffffff807f092a in fzap_upgrade (zap=0xffffff006582c200, tx=0xffffff006591dd00)
    at /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/zap.c:87
#13 0xffffffff807f42d3 in mzap_upgrade (zap=0xffffff006582c200, tx=0xffffff006591dd00)
    at /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:361
#14 0xffffffff807f4cd4 in zap_add (os=0x0, zapobj=18446744071572623360, name=0xffffff00060ebc19 "org.eclipse.jdt_3.2.1.r321_v20060905-R4CM1Znkvre9wC-",
    integer_size=8, num_integers=1, val=0xffffffffaeeb6860, tx=0xffffff006591dd00)
    at /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/zap_micro.c:622
#15 0xffffffff80802d06 in zfs_link_create (dl=0xffffff0065554140, zp=0xffffff005ccfac08, tx=0xffffff006591dd00, flag=1)
    at /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/zfs_dir.c:564
#16 0xffffffff8080c01c in zfs_mkdir (ap=0xffffffffaeeb6960) at /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c:1474
#17 0xffffffff804490f9 in VOP_MKDIR_APV (vop=0x12, a=0xffffffffaeeb6960) at vnode_if.c:1234
#18 0xffffffff80316195 in kern_mkdir (td=0xffffff000105e000, path=0x5149d1 <Address 0x5149d1 out of bounds>, segflg=15549312, mode=511) at vnode_if.h:653
#19 0xffffffff8041abd0 in syscall (frame=0xffffffffaeeb6c70) at /usr/src/sys/amd64/amd64/trap.c:825
#20 0xffffffff8040206b in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:272
#21 0x000000080071969c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) f 12
#12 0xffffffff807f092a in fzap_upgrade (zap=0xffffff006582c200, tx=0xffffff006591dd00)
    at /usr/src/sys/modules/zfs/../../contrib/opensolaris/uts/common/fs/zfs/zap.c:87
87		mutex_init(&zap->zap_f.zap_num_entries_mtx, NULL, MUTEX_DEFAULT, 0);
(kgdb) p zap
$1 = (zap_t *) 0xffffff006582c200
(kgdb) p *zap
$2 = {zap_objset = 0xffffff0001406410, zap_object = 12660, zap_dbuf = 0xffffff005ce892d0, zap_rwlock = {lock_object = {
      lo_name = 0xffffffff8081b416 "zfs:&zap->zap_rwlock", lo_type = 0xffffffff8081b416 "zfs:&zap->zap_rwlock", lo_flags = 41615360, lo_witness_data = {
	lod_list = {stqe_next = 0x0}, lod_witness = 0x0}}, sx_lock = 18446742974215086080, sx_recurse = 0}, zap_ismicro = 0, zap_salt = 965910969,
  zap_u = {zap_fat = {zap_phys = 0xffffffff81670000, zap_num_entries_mtx = {lock_object = {lo_name = 0x70000 <Address 0x70000 out of bounds>,
	  lo_type = 0x0, lo_flags = 2155822976, lo_witness_data = {lod_list = {stqe_next = 0x0}, lod_witness = 0x0}}, sx_lock = 1, sx_recurse = 0},
      zap_block_shift = 0}, zap_micro = {zap_phys = 0xffffffff81670000, zap_num_entries = 0, zap_num_chunks = 7, zap_alloc_next = 0, zap_avl = {
	avl_root = 0x0, avl_compar = 0xffffffff807f3f80 <mze_compare>, avl_offset = 0, avl_numnodes = 1, avl_size = 0}}}}
(kgdb) q

Script done on Sun Apr	8 19:06:29 2007

--Boundary-01=_NISGGyaMHdg/POM--

--nextPart5655571.IUblBEjXgS
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQBGGSISXyyEoT62BG0RAttuAJ4sDZTws5ITtvSREutuFN4RYxL+SQCffJTE
PjvtSxCx0GCb3euzHwFpU0Q=
=pDsn
-----END PGP SIGNATURE-----

--nextPart5655571.IUblBEjXgS--



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