From owner-freebsd-bugs@freebsd.org Sat Apr 25 10:57:25 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 7EDDD2ABF52 for ; Sat, 25 Apr 2020 10:57:25 +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 498Sfs2gZPz3N69 for ; Sat, 25 Apr 2020 10:57:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 59CCC2ABF4F; Sat, 25 Apr 2020 10:57:25 +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 599172ABF4E for ; Sat, 25 Apr 2020 10:57:25 +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 498Sfs0fdtz3N68 for ; Sat, 25 Apr 2020 10:57:25 +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 0DAD966E2 for ; Sat, 25 Apr 2020 10:57:25 +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 03PAvOgP063511 for ; Sat, 25 Apr 2020 10:57:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 03PAvOqH063510 for bugs@FreeBSD.org; Sat, 25 Apr 2020 10:57:24 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 245907] fsck segfaults with gjournal Date: Sat, 25 Apr 2020 10:57:24 +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: cryptogranny@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 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, 25 Apr 2020 10:57:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245907 Bug ID: 245907 Summary: fsck segfaults with gjournal 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: cryptogranny@gmail.com I use combination of ufs+gjournal volumes /dev/ada0p2 on / (ufs, local, noatime, journaled soft-updates) /dev/label/home on /usr/home (ufs, local, gjournal) and when I outage the VM with reset, fsck successfully checks the FS with S= U, then fails on checking the second FS, init drops to shell. Also after manual examination the FS with gjournal log already has a clean status. Below is bootlog where I run fsck with debugger.=20 Trying to mount root from ufs:/dev/ada0p2 [rw,noatime]... uhub1: 8 ports with 8 removable, self powered Enter passphrase for ada1p1: uhub0: 8 ports with 8 removable, self powered GEOM_ELI: Device ada1p1.eli created. GEOM_ELI: Encryption: AES-XTS 256 GEOM_ELI: Crypto: software GEOM_JOURNAL: Journal 1212489781: ada1p1.eli contains data. GEOM_JOURNAL: Journal 1212489781: ada1p1.eli contains journal. WARNING: / was not properly dismounted WARNING: /: mount pending error: blocks 32 files 0 GEOM_JOURNAL: Journal ada1p1.eli consistent. Setting hostuuid: f145b4bd-15db-4390-8ee5-f8675e40513f. Setting hostid: 0x72fcbc5f. Starting file system checks: background with debugger GNU gdb (GDB) 9.1 [GDB v9.1 for FreeBSD] Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd12.1". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /sbin/fsck... (No debugging symbols found in /sbin/fsck) Starting program: /sbin/fsck -F -p [Detaching after vfork from child process 53] [Detaching after vfork from child process 54] ** SU+J Recovering /dev/ada0p2 ** Reading 33554432 byte journal from inode 4. ** Building recovery table. ** Resolving unreferenced inode list. ** Processing journal entries. ** 6 journal records in 1024 bytes for 18.75% utilization ** Freed 1 inodes (0 dirs) 0 blocks, and 0 frags. ***** FILE SYSTEM MARKED CLEAN ***** [Detaching after vfork from child process 55] [Detaching after vfork from child process 56] pid 56 (fsck_ufs), jid 0, uid 0: exited on signal 11 fsck: /dev/label/home: Segmentation fault [Inferior 1 (process 52) exited with code 01] (gdb) bt No stack. (gdb) quit Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg 32-bit compatibility ldconfig path: /usr/lib32 Setting hostname: bewitched. Please feel free to request for more information. --=20 You are receiving this mail because: You are the assignee for the bug.=