From owner-freebsd-fs@freebsd.org Sat Jan 12 20:46:29 2019 Return-Path: Delivered-To: freebsd-fs@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 990B6149E4EC for ; Sat, 12 Jan 2019 20:46:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 310846F72A for ; Sat, 12 Jan 2019 20:46:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E3069149E4EB; Sat, 12 Jan 2019 20:46:28 +0000 (UTC) Delivered-To: fs@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 BF1CD149E4EA for ; Sat, 12 Jan 2019 20:46:28 +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.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.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FA9E6F727 for ; Sat, 12 Jan 2019 20:46:28 +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 8CDC41C9FD for ; Sat, 12 Jan 2019 20:46:27 +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 x0CKkRbs034514 for ; Sat, 12 Jan 2019 20:46:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0CKkR9i034513 for fs@FreeBSD.org; Sat, 12 Jan 2019 20:46:27 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: fs@FreeBSD.org Subject: [Bug 234906] kernel panic: softdep_setup_inomapdep: dependency 0xfffff80107d15c00 for newinode already exists Date: Sat, 12 Jan 2019 20:46:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2019 20:46:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234906 --- Comment #4 from Conrad Meyer --- >From core.txt, this wasn't the first softdep panic you encountered; the fir= st was: panic: handle_allocdirect_partdone: lost dep cpuid =3D 2 time =3D 1547073542 KDB: stack backtrace: #0 0xffffffff80701677 at kdb_backtrace+0x67 #1 0xffffffff806b6d93 at vpanic+0x1a3 #2 0xffffffff806b6be3 at panic+0x43 #3 0xffffffff80964e98 at handle_allocdirect_partdone+0xd8 #4 0xffffffff8096f503 at handle_written_bmsafemap+0x583 #5 0xffffffff80953962 at softdep_disk_write_complete+0x4e2 #6 0xffffffff80764d14 at bufdone+0x2a4 #7 0xffffffff80603c30 at g_io_deliver+0x230 #8 0xffffffff80603c30 at g_io_deliver+0x230 #9 0xffffffff806012b3 at g_disk_done+0x123 #10 0xffffffff803278e5 at dadone+0x5e5 #11 0xffffffff802cc4a1 at xpt_done_process+0x6a1 #12 0xffffffff802ce726 at xpt_done_td+0x116 #13 0xffffffff80678b23 at fork_exit+0x83 #14 0xffffffff809c944e at fork_trampoline+0xe So at that time, all of your filesystems were detached in an unclean state.= =20 After reboot, GEOM reports GPT corruption and background fsck kicks in due = to unclean mount. ... WARNING: / was not properly dismounted WARNING: /: mount pending error: blocks 2688 files 2 ... ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Starting file system checks: /dev/ada0p2: UNREF FILE I=3D15168749 OWNER=3Djohan MODE=3D100644 /dev/ada0p2: SIZE=3D1584 MTIME=3DJan 7 07:53 2019 (CLEARED) /dev/ada0p2: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED) /dev/ada0p2: SUMMARY INFORMATION BAD (SALVAGED) /dev/ada0p2: BLK(S) MISSING IN BIT MAPS (SALVAGED) /dev/ada0p2: 705641 files, 13986522 used, 16285630 free (33934 frags, 20314= 62 blocks, 0.1% fragmentation) /dev/da0p4: DEFER FOR BACKGROUND CHECKING Mounting local filesystems: WARNING: /u was not properly dismounted WARNING: /u: mount pending error: blocks 12048 files 119 ... GEOM: da1: the secondary GPT table is corrupt or invalid. GEOM: da1: using the primary only -- recovery suggested. GEOM: ufsid/5c32f4b585a9f480: the secondary GPT table is corrupt or invalid. GEOM: ufsid/5c32f4b585a9f480: using the primary only -- recovery suggested. GEOM: diskid/DISK-4C530002671026104222: the secondary GPT table is corrupt = or invalid. GEOM: diskid/DISK-4C530002671026104222: using the primary only -- recovery suggested. ... The USB device disconnects itself and reconnects for some reason; same error messages from GEOM again. ugen1.6: at usbus1 (disconnected) umass1: at uhub3, port 2, addr 6 (disconnected) da1 at umass-sim1 bus 1 scbus7 target 0 lun 0 da1: s/n 4C530002671026104222 detached (da1:umass-sim1:1:0:0): Periph destroyed ... da1 at umass-sim1 bus 1 scbus7 target 0 lun 0 da1: Fixed Direct Access SPC-4 SCSI device da1: Serial Number 4C530002671026104222 da1: 40.000MB/s transfers da1: 30532MB (62530624 512 byte sectors) ... This bit looks like fsck, then our panic as filed: free inode /u/37962415 had -128 blocks free inode /u/37962556 had -4480 blocks free inode /u/37962623 had -13824 blocks free inode /u/37962767 had -192 blocks free inode /u/37962771 had -8000 blocks free inode /u/37962774 had -6080 blocks panic: softdep_setup_inomapdep: dependency 0xfffff80107d15c00 for newinode already exists --=20 You are receiving this mail because: You are the assignee for the bug.=