From owner-freebsd-stable Fri Sep 21 10:46:15 2001 Delivered-To: freebsd-stable@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-35.dsl.lsan03.pacbell.net [63.207.60.35]) by hub.freebsd.org (Postfix) with ESMTP id E9B2737B406 for ; Fri, 21 Sep 2001 10:46:07 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 087A466E33; Fri, 21 Sep 2001 10:46:07 -0700 (PDT) Date: Fri, 21 Sep 2001 10:46:06 -0700 From: Kris Kennaway To: j mckitrick Cc: William Wong , freebsd-stable@FreeBSD.ORG Subject: Re: sh MAKEDEV all Message-ID: <20010921104606.A88881@xor.obsecurity.org> References: <000501c1424d$9a1ea860$0300a8c0@anime.ca> <20010921123031.B78591@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010921123031.B78591@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Fri, Sep 21, 2001 at 12:30:31PM +0100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 21, 2001 at 12:30:31PM +0100, j mckitrick wrote: > On Thu, Sep 20, 2001 at 11:29:19PM -0400, William Wong wrote: > | Hi there, > |=20 > | After cvsup'n to RELENG_4_4 (from STABLE around July) > |=20 > | I got this error when doing a 'sh MAKEDEV all' > |=20 > | [mosquito] /dev>sh MAKEDEV all > | MAKEDEV: arith: syntax error: =E0 > | "=EE > |=20 > | bad node: mknod i4bteld1 > |=20 > | Though I don't think it affects anything since I don't use this device,= it's > | kinda odd to get this error. > |=20 > | Mailing list archives reveal that 2 other ppl have reported this problem > | this month: > |=20 > | http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D1047683+1050677+/usr/loca= l/www/d > | b/text/2001/freebsd-stable/20010916.freebsd-stable > |=20 > | http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D802451+804089+/usr/local/= www/db/ > | text/2001/freebsd-stable/20010916.freebsd-stable > |=20 > | Anyone know what's causing this though? >=20 > It's a bug in sh, caused by CPUTYPE, that screws up handling of the devic= es > in MAKEDEV. Not really caused by CPUTYPE - the PR was submitted long before CPUTYPE was added. According to the PR, it's broken code in sh which exhibits failure depending on the stack alignment and previous stack usage. Certain gcc optimizations enabled by some values of CPUTYPE have (for some reason) recently started triggering this code bug. Kris --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7q3zeWry0BWjoQKURAuESAJ9dEDXSeVjn4s1MKzC1Pp8Goc1q5wCgunvL 0U2RjgJitTGMAXSdDM63bLg= =cBnO -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message