From owner-freebsd-bugs@freebsd.org Fri Feb 23 14:02:10 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 190F8F24E4E for ; Fri, 23 Feb 2018 14:02:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AA4BB819D3 for ; Fri, 23 Feb 2018 14:02:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0727A262DE for ; Fri, 23 Feb 2018 14:02:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w1NE28Qt057559 for ; Fri, 23 Feb 2018 14:02:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1NE28im057558 for freebsd-bugs@FreeBSD.org; Fri, 23 Feb 2018 14:02:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 226141] "zpool remove" causes panic: solaris assert: zio->io_type == ZIO_TYPE_WRITE (0x3 == 0x2) Date: Fri, 23 Feb 2018 14:02:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: trasz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2018 14:02:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226141 Bug ID: 226141 Summary: "zpool remove" causes panic: solaris assert: zio->io_type =3D=3D ZIO_TYPE_WRITE (0x3 =3D=3D 0x2) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: trasz@FreeBSD.org Doing: mdconfig -s1g mdconfig -s1g zpool create meh md0 md1 zpool remove meh md0 Results in: Unread portion of the kernel message buffer: panic: solaris assert: zio->io_type =3D=3D ZIO_TYPE_WRITE (0x3 =3D=3D 0x2),= file: /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /vdev_indirect.c, line: 1093 cpuid =3D 2 time =3D 1519336503 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe003009f= 6d0 vpanic() at vpanic+0x18d/frame 0xfffffe003009f730 panic() at panic+0x43/frame 0xfffffe003009f790 assfail3() at assfail3+0x2c/frame 0xfffffe003009f7b0 vdev_indirect_io_start() at vdev_indirect_io_start+0x6b/frame 0xfffffe003009f7d0 zio_vdev_io_start() at zio_vdev_io_start+0x4c6/frame 0xfffffe003009f830 zio_execute() at zio_execute+0x17c/frame 0xfffffe003009f880 zio_nowait() at zio_nowait+0xc4/frame 0xfffffe003009f8b0 vdev_mirror_io_start() at vdev_mirror_io_start+0x3fa/frame 0xfffffe003009f9= 30 zio_vdev_io_start() at zio_vdev_io_start+0x208/frame 0xfffffe003009f990 zio_execute() at zio_execute+0x17c/frame 0xfffffe003009f9e0 taskqueue_run_locked() at taskqueue_run_locked+0x14c/frame 0xfffffe003009fa= 40 taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe003009f= a70 fork_exit() at fork_exit+0x84/frame 0xfffffe003009fab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe003009fab0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic __curthread () at ./machine/pcpu.h:230 230 __asm("movq %%gs:%1,%0" : "=3Dr" (td) (kgdb) #0 __curthread () at ./machine/pcpu.h:230 #1 doadump (textdump=3D0) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_shutdown.c:347 #2 0xffffffff8040996b in db_dump (dummy=3D,=20 dummy2=3D, dummy3=3D, dummy4=3D) at /usr/home/trasz/svn-ssh/head/sys/ddb/db_command.c:574 #3 0xffffffff80409739 in db_command (last_cmdp=3D,=20 cmd_table=3D, dopager=3D) at /usr/home/trasz/svn-ssh/head/sys/ddb/db_command.c:481 #4 0xffffffff804094b4 in db_command_loop () at /usr/home/trasz/svn-ssh/head/sys/ddb/db_command.c:534 #5 0xffffffff8040c6df in db_trap (type=3D, code=3D) at /usr/home/trasz/svn-ssh/head/sys/ddb/db_main.c:250 #6 0xffffffff80b0ef13 in kdb_trap (type=3D3, code=3D-61456, tf=3D) at /usr/home/trasz/svn-ssh/head/sys/kern/subr_kdb.c:697 #7 0xffffffff80f7e748 in trap (frame=3D0xfffffe003009f600) at /usr/home/trasz/svn-ssh/head/sys/amd64/amd64/trap.c:547 #8 #9 kdb_enter (why=3D0xffffffff811f8407 "panic", msg=3D) at /usr/home/trasz/svn-ssh/head/sys/kern/subr_kdb.c:479 #10 0xffffffff80ac9faa in vpanic (fmt=3D, ap=3D0xfffffe00300= 9f770) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_shutdown.c:801 #11 0xffffffff80aca033 in panic ( fmt=3D0xffffffff81b64ad8 "-\025\034\201\377\377\377\377") at /usr/home/trasz/svn-ssh/head/sys/kern/kern_shutdown.c:739 #12 0xffffffff8249824c in assfail3 ( a=3D0x80 ,=20 lv=3D18446741875492255168,=20 op=3D0x80 , rv=3D32,=20 f=3D0xfffffe003009f300 "\320\363\t0", l=3D) at /usr/home/trasz/svn-ssh/head/sys/cddl/compat/opensolaris/kern/opensolaris_c= mn_err.c:91 #13 0xffffffff822dfd8b in vdev_indirect_io_start (zio=3D0xfffff801245b6820) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /vdev_indirect.c:1093 #14 0xffffffff82316626 in zio_vdev_io_start (zio=3D0xfffff801245b6820) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /zio.c:3308 #15 0xffffffff823114ac in zio_execute (zio=3D) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /zio.c:1767 #16 0xffffffff82310724 in zio_nowait (zio=3D0xfffff801245b6820) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /zio.c:1825 #17 0xffffffff822e4e3a in vdev_mirror_io_start (zio=3D) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /vdev_mirror.c:557 #18 0xffffffff82316368 in zio_vdev_io_start (zio=3D0xfffff8012419b000) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /zio.c:3177 #19 0xffffffff823114ac in zio_execute (zio=3D) at /usr/home/trasz/svn-ssh/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs= /zio.c:1767 #20 0xffffffff80b21f6c in taskqueue_run_locked (queue=3D0xfffff8010e0eb000) at /usr/home/trasz/svn-ssh/head/sys/kern/subr_taskqueue.c:465 #21 0xffffffff80b22d38 in taskqueue_thread_loop (arg=3D) at /usr/home/trasz/svn-ssh/head/sys/kern/subr_taskqueue.c:757 #22 0xffffffff80a8a574 in fork_exit ( callout=3D0xffffffff80b22cb0 ,=20 arg=3D0xfffff8000752db00, frame=3D0xfffffe003009fac0) at /usr/home/trasz/svn-ssh/head/sys/kern/kern_fork.c:1039 #23 (kgdb)=20 The panic is semi-immediate - the command succeeds, but panic happens in a = few seconds afterwards. FreeBSD v2 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r329822: Thu Feb 22 02:36:44 GMT 2018=20=20=20=20 trasz@v2:/usr/obj/usr/home/trasz/svn-ssh/head/amd64.amd64/sys/GENERIC amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=