From owner-freebsd-stable@freebsd.org Wed Aug 10 14:55:46 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84A37BB5950 for ; Wed, 10 Aug 2016 14:55:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) 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 6D5E71367 for ; Wed, 10 Aug 2016 14:55:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 69047BB594F; Wed, 10 Aug 2016 14:55:46 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68AF2BB594E for ; Wed, 10 Aug 2016 14:55:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 919C91366 for ; Wed, 10 Aug 2016 14:55:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u7AEtYwW055440 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 10 Aug 2016 17:55:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u7AEtYwW055440 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u7AEtXQ5055438; Wed, 10 Aug 2016 17:55:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 10 Aug 2016 17:55:33 +0300 From: Konstantin Belousov To: Dmitry Sivachenko Cc: FreeBSD Stable ML Subject: Re: fsck_ufs dumps core Message-ID: <20160810145533.GS83214@kib.kiev.ua> References: <292C631A-F184-46B1-85B4-3EC68FB2E416@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <292C631A-F184-46B1-85B4-3EC68FB2E416@gmail.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 14:55:46 -0000 On Wed, Aug 10, 2016 at 05:29:31PM +0300, Dmitry Sivachenko wrote: > Hello, > > I am running FreeBSD 10.3-STABLE #0 r299261M > > After unclean reboot I am unable to fsck my UFS filesystem: > > # fsck /dev/mfid0p1 > ** /dev/mfid0p1 > ** Last Mounted on /opt > ** Phase 1 - Check Blocks and Sizes > fsck: /dev/mfid0p1: Segmentation fault > > pid 482 (fsck_ufs), uid 0: exited on signal 11 (core dumped) > > # gdb -c fsck_ufs.482 /sbin/fsck_ufs > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "amd64-marcel-freebsd"... > Core was generated by `fsck_ufs'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libufs.so.6...done. > Loaded symbols for /lib/libufs.so.6 > Reading symbols from /lib/libc.so.7...done. > Loaded symbols for /lib/libc.so.7 > Reading symbols from /libexec/ld-elf.so.1...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x0000000000409a8b in pass1 () at /place/WRK/src/sbin/fsck_ffs/pass1.c:83 > 83 setbmap(i); > (gdb) bt > #0 0x0000000000409a8b in pass1 () at /place/WRK/src/sbin/fsck_ffs/pass1.c:83 > #1 0x0000000000409050 in main (argc=, > argv=) at /place/WRK/src/sbin/fsck_ffs/main.c:447 > Current language: auto; currently minimal > (gdb) > Try to use alternative superblock (-b switch). You can get the list of the possible values for -b by 'newfs -N' invocation, but you have to know the parameters which were used for formatting.