zfsonfreebsd / ZoF

ZFS on FreeBSD - the official out of tree OpenZFS implementation for FreeBSD
https://freebsd.org
Other
100 stars 8 forks source link

projects/async_dmu_stats_final: panic in ZTS cachefile tests #164

Closed ghost closed 4 years ago

ghost commented 4 years ago

commit 4bbb3fb21486207697aec4f55a281f44cf5e7c5e on head

Unread portion of the kernel message buffer:
Memory modified after free 0xfffff8009da24700(248) val=9ddc7488 @ 0xfffff8009da24788
panic: Most recently used by solaris

cpuid = 2
time = 1600136628
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00e871c450
vpanic() at vpanic+0x182/frame 0xfffffe00e871c4a0
panic() at panic+0x43/frame 0xfffffe00e871c500
mtrash_ctor() at mtrash_ctor+0x81/frame 0xfffffe00e871c520
item_ctor() at item_ctor+0x2eb/frame 0xfffffe00e871c570
malloc() at malloc+0x8e/frame 0xfffffe00e871c5b0
abd_alloc_struct() at abd_alloc_struct+0x59/frame 0xfffffe00e871c5d0
abd_get_from_buf() at abd_get_from_buf+0x17/frame 0xfffffe00e871c600
arc_write() at arc_write+0x37b/frame 0xfffffe00e871c6b0
dmu_sync() at dmu_sync+0x401/frame 0xfffffe00e871c7e0
zfs_get_data() at zfs_get_data+0x32c/frame 0xfffffe00e871c850
zil_commit_impl() at zil_commit_impl+0xfce/frame 0xfffffe00e871c9c0
zfs_freebsd_fsync() at zfs_freebsd_fsync+0xd3/frame 0xfffffe00e871ca00
zfs_file_fsync() at zfs_file_fsync+0x7b/frame 0xfffffe00e871ca50
vdev_file_io_start() at vdev_file_io_start+0x55/frame 0xfffffe00e871ca70
zio_vdev_io_start() at zio_vdev_io_start+0x32b/frame 0xfffffe00e871cac0
zio_execute() at zio_execute+0x6d/frame 0xfffffe00e871cb00
taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe00e871cb80
taskqueue_thread_loop() at taskqueue_thread_loop+0x94/frame 0xfffffe00e871cbb0
fork_exit() at fork_exit+0x80/frame 0xfffffe00e871cbf0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00e871cbf0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
Uptime: 3d10h10m3s
Dumping 1238 out of 16350 MB:..2%..11%..21%..31%..41%..51%..61%..72%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
(kgdb) bt
#0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:394
#2  0xffffffff80bd6db0 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:481
#3  0xffffffff80bd71fa in vpanic (fmt=<optimized out>, ap=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:913
#4  0xffffffff80bd6f63 in panic (fmt=<unavailable>) at /usr/src/sys/kern/kern_shutdown.c:839
#5  0xffffffff80eb6c91 in mtrash_ctor (mem=0xfffff8009da24700, size=<optimized out>, arg=<optimized out>, flags=<optimized out>) at /usr/src/sys/vm/uma_dbg.c:162
#6  0xffffffff80eb5abb in item_ctor (zone=0xfffffe001be0f800, uz_flags=<optimized out>, size=256, udata=<optimized out>, flags=2, item=0xfffff8009da24700) at /usr/src/sys/vm/uma_core.c:3158
#7  0xffffffff80bad8be in uma_zalloc (zone=0xfffffe001be0f800, flags=2) at /usr/src/sys/vm/uma.h:359
#8  malloc (size=<optimized out>, mtp=0xffffffff8268e2b0 <M_SOLARIS>, flags=2) at /usr/src/sys/kern/kern_malloc.c:635
#9  0xffffffff82346039 in abd_alloc_struct (size=<optimized out>) at os/freebsd/zfs/abd_os.c:212
#10 0xffffffff823835e7 in abd_get_from_buf (buf=0xfffffe00df580000, size=131072) at zfs/abd.c:601
#11 0xffffffff82392e0b in arc_write (pio=0xfffff8032e7019a0, spa=0xfffffe00b8ec1000, txg=11, bp=0xfffffe00bb9e61b8, buf=0xfffff8007ffe9880, l2arc=<optimized out>, zp=0xfffffe00e871c760, ready=0xffffffff823bd890 <dmu_sync_ready>, children_ready=0x0, physdone=0x0, done=0xffffffff823bda30 <dmu_sync_done>, private=0xfffff8009d9d0f00,
    priority=ZIO_PRIORITY_SYNC_WRITE, zio_flags=128, zb=0xfffffe00e871c718) at zfs/arc.c:7027
#12 0xffffffff823bd211 in dmu_sync (pio=<unavailable>, txg=11, done=0xffffffff8235d660 <zfs_get_done>, zgd=0xfffff803cd155ec0) at zfs/dmu.c:2781
#13 0xffffffff8235d4ac in zfs_get_data (arg=<optimized out>, lr=0xfffffe00bb9e6178, buf=<optimized out>, lwb=0xfffff803a3267438, zio=<optimized out>) at os/freebsd/zfs/zfs_vnops.c:1382
#14 0xffffffff8251e8ee in zil_lwb_commit (zilog=0xfffff802b4761c00, itx=0xfffff8012e1ae600, lwb=<optimized out>) at zfs/zil.c:1740
#15 zil_process_commit_list (zilog=0xfffff802b4761c00) at zfs/zil.c:2326
#16 zil_commit_writer (zilog=0xfffff802b4761c00, zcw=0xfffff80279b31190) at zfs/zil.c:2479
#17 zil_commit_impl (zilog=0xfffff802b4761c00, foid=<optimized out>) at zfs/zil.c:3069
#18 0xffffffff823668f3 in zfs_fsync (vp=<optimized out>, syncflag=<optimized out>, cr=<optimized out>, ct=<optimized out>) at os/freebsd/zfs/zfs_vnops.c:2726
#19 zfs_freebsd_fsync (ap=<optimized out>) at os/freebsd/zfs/zfs_vnops.c:5490
#20 0xffffffff82504ebb in VOP_FSYNC (vp=0xfffff80414c52d90, waitfor=1, td=<unavailable>) at ./vnode_if.h:715
#21 zfs_vop_fsync (vp=0xfffff80414c52d90) at os/freebsd/zfs/zfs_file_os.c:227
#22 zfs_file_fsync (fp=<optimized out>, flags=<optimized out>) at os/freebsd/zfs/zfs_file_os.c:243
#23 0xffffffff8234a235 in vdev_file_io_start (zio=0xfffff803e8ea69a0) at os/freebsd/zfs/vdev_file.c:255
#24 0xffffffff8252d91b in zio_vdev_io_start (zio=0xfffff803e8ea69a0) at zfs/zio.c:3793
#25 0xffffffff8252649d in __zio_execute (zio=0xfffff803e8ea69a0) at zfs/zio.c:2169
#26 zio_execute (zio=<optimized out>) at zfs/zio.c:2082
#27 0xffffffff80c3724a in taskqueue_run_locked (queue=0xfffff802b4586400) at /usr/src/sys/kern/subr_taskqueue.c:476
#28 0xffffffff80c382d4 in taskqueue_thread_loop (arg=<optimized out>) at /usr/src/sys/kern/subr_taskqueue.c:793
#29 0xffffffff80b92bf0 in fork_exit (callout=0xffffffff80c38240 <taskqueue_thread_loop>, arg=0xfffff8001aa1a520, frame=0xfffffe00e871cc00) at /usr/src/sys/kern/kern_fork.c:1052
#30 <signal handler called>
(kgdb)