From owner-freebsd-bugs@freebsd.org Sat Feb 8 06:14:24 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43E49239799 for ; Sat, 8 Feb 2020 06:14:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48F21r13bbz4SRc for ; Sat, 8 Feb 2020 06:14:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 22560239798; Sat, 8 Feb 2020 06:14:24 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 20E8C239797 for ; Sat, 8 Feb 2020 06:14:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48F21q6wj5z4SRb for ; Sat, 8 Feb 2020 06:14:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D073B191EA for ; Sat, 8 Feb 2020 06:14:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0186ENtb092397 for ; Sat, 8 Feb 2020 06:14:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0186ENKC092381 for bugs@FreeBSD.org; Sat, 8 Feb 2020 06:14:23 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: bugs@FreeBSD.org Subject: [Bug 243973] [zfs] zfs rollback segmentation fault Date: Sat, 08 Feb 2020 06:14:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: reshadpatuck1@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 attachments.created 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2020 06:14:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243973 Bug ID: 243973 Summary: [zfs] zfs rollback segmentation fault Product: Base System Version: 12.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: reshadpatuck1@gmail.com Created attachment 211466 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D211466&action= =3Dedit ZFS core file (xz compressed) I have a FreeBSD 12.1 system running zfs as root (default zfs install) + pkg base installed (all 318 packages). While I was testing the rollback of a system update using the 'zfs rollback' command after 'pkg upgrade -f' and I noticed that zfs rollback for 'zroot/ROOT/default@pre-update' is segfaulting. Strangely if I run the same command again after sleeping for 10 seconds it works flawlessly every time. Here is the backtrace for the segmentation fault from the core file. ----- (gdb) backtrace=20 #0 0x00000008004a7e4a in pthread_rwlock_unlock_exp (p0=3D0x6) at /usr/src/lib/libc/gen/_pthread_stubs.c:249 #1 0x000000080029402e in zcmd_ioctl (fd=3D6, request=3D25, zc=3D0x6) at /usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_compat.c:113 #2 0x0000000800292374 in lzc_ioctl (ioc=3D3222821401, name=3D, source=3D, resultp=3D0x7fffffffdc40) at /usr/src/cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.c:187 #3 0x0000000800293492 in lzc_rollback_to (fsname=3D0xc0185a19 , snapname=3D) at /usr/src/cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.c:869 #4 0x00000008002dc381 in zfs_rollback (zhp=3D0x800839280, snap=3D, force=3D) at /usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c:4194 #5 0x000000000020e2a1 in zfs_do_rollback (argc=3D, argv=3D0x7fffffffeb18) at /usr/src/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:3574 #6 0x000000000020c6a4 in main (argc=3D, argv=3D0x7fffffffeb= 10) at /usr/src/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c:7507 (gdb)=20 ----- I have attached the zfs.core file along with the shell script to reproduce = the segmentation fault. --=20 You are receiving this mail because: You are the assignee for the bug.=