From owner-freebsd-current@freebsd.org Sat Dec 30 21:07:15 2017 Return-Path: Delivered-To: freebsd-current@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 ABBFBEACB99 for ; Sat, 30 Dec 2017 21:07:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 577ED6D37D for ; Sat, 30 Dec 2017 21:07:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.209.229.136] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1eVOLY-0000NV-92 for freebsd-current@freebsd.org; Sat, 30 Dec 2017 22:07:12 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id vBUL7BGK076004 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 30 Dec 2017 22:07:11 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id vBUL7BU7076003 for freebsd-current@freebsd.org; Sat, 30 Dec 2017 22:07:11 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 30 Dec 2017 22:07:11 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: panic: invalid bcd 194 Message-ID: <20171230210711.GA75976@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.209.229.136 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2017 21:07:15 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa s=C3=A1bado, diciembre 30, 2017 a las 10:44:57p. m. +0200, Kons= tantin Belousov escribi=C3=B3: > On Sat, Dec 30, 2017 at 09:03:17PM +0100, Matthias Apitz wrote: > >=20 > > Hello, > >=20 > > I've got an older Acer C720 with r314251, which was not booted for some= time, > > and now panics on boot, also in single user mode, saying: > >=20 > > ... > > Dec 30 19:54:26 c720-r314251 kernel: ada0: Command Queueing enabled > > Dec 30 19:54:26 c720-r314251 kernel: ada0: 244198MB (500118192 512 byte= sectors) > > Dec 30 19:54:26 c720-r314251 kernel: WARNING: WITNESS option enabled, e= xpect reduced performance. > > Dec 30 19:54:26 c720-r314251 kernel: Trying to mount root from ufs:/dev= /ada0p2 [rw,noatime]... > > panic: invalid bcd 194 > > ... > >=20 > > The message comes from=20 > >=20 > > $ find * -type f -exec fgrep "invalid bcd" {} /dev/null \; > > sys/sys/libkern.h: ("invalid bcd %d", bcd)); > >=20 > > $ vim sys/sys/libkern.h > > ... > > #define LIBKERN_LEN_BCD2BIN 154 > > #define LIBKERN_LEN_BIN2BCD 100 > > #define LIBKERN_LEN_HEX2ASCII 36 > >=20 > > static inline u_char > > bcd2bin(int bcd) > > { > >=20 > > KASSERT(bcd >=3D 0 && bcd < LIBKERN_LEN_BCD2BIN, > > ("invalid bcd %d", bcd)); > > return (bcd2bin_data[bcd]); > > } > >=20 > > Any idea what could be damaged the system and what to do or check before > > re-setup? >=20 > Show the backtrace. Thanks, here we have it as photo: http://www.unixarea.de/download_238222137= _147226.jpg matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =F0=9F=93=B1 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlpH//wACgkQR8z35Hb+ nRFBJw/+Mq2p0aj+rM3vSnfKTzrT8nZpEbmT7eBtpIXm1lS+GCM1GvQEuFngkFPR FhlGIiJ4buuL3Xb8oEHnKp426PfYPdW+STn0YuBHrP2kWlc+sBSgmFNkhJ+4jFJi EfXkdYECdW8/ujU3cCD/+CuPyDieOszcJ3lic3uzBrGQTVpMhsvqDH1abELmx5u9 UYqhSxcr80P+FPIKFptFZDvCctiDP4kQEgBINtw04FwvpZQI4G7nm/t4XjNQPyua XY21SHoQej57J15nxAtzZXdcOKmS3KGHiKNS4qntZjflbmG9f7C0hVKbeiwErvkK JRzjFIUduuLx+1SxzdYwrfYlphs0zbGKlwyo1dj8QIV6gTCDbL9t3+IfeJ5lenff KZO6Q5B96WS2a50r+UcQ/XKZtlXZRfRODqKRyIwed6d7ymFCu8lFeG4sg4BSGxPr jSSXhG4pIkUaY7EPeLnJGIRy89PADka39PG3/w8DgNprisDhTcmOYMZtXN394jsJ sO9x16VWsSCP20PjUGNd3NQnoW/T9CN6dtXJisSr31TKUQ5kkvcWgZAylPbGYrmX abOZSSB/y4eSiXlePwwPvaZImxdn+aA1xWhzIoGlkJ2IzD/A4e1W6juYvF0xa25w Acz1bTREZr9j/9sUAd0pLwMOtFADcoYrwvJofd6XJHmhv54HEq4= =YUp1 -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--