From owner-cvs-src@FreeBSD.ORG Mon May 29 15:33:06 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E497B16AB7A; Mon, 29 May 2006 15:33:06 +0000 (UTC) (envelope-from ru@ip.net.ua) Received: from cielago.ip.net.ua (cielago.ip.net.ua [82.193.96.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C59543D5D; Mon, 29 May 2006 15:32:58 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by cielago.ip.net.ua (8.13.6/8.13.6) with ESMTP id k4TFVUmj055426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 May 2006 18:31:31 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.6/8.13.6) id k4TFW2g3046389; Mon, 29 May 2006 18:32:02 +0300 (EEST) (envelope-from ru) Date: Mon, 29 May 2006 18:32:02 +0300 From: Ruslan Ermilov To: John-Mark Gurney Message-ID: <20060529153202.GE44223@ip.net.ua> References: <200605280715.k4S7Fa1E083206@repoman.freebsd.org> <20060529102126.GD44223@ip.net.ua> <20060529105954.GX49081@funkthat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ylS2wUBXLOxYXZFQ" Content-Disposition: inline In-Reply-To: <20060529105954.GX49081@funkthat.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/file magic.5 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 15:33:08 -0000 --ylS2wUBXLOxYXZFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 29, 2006 at 03:59:55AM -0700, John-Mark Gurney wrote: > Hmm. this is wierd: > # cd /usr/share/misc > # uname -a > FreeBSD carbon.funkthat.com 7.0-CURRENT FreeBSD 7.0-CURRENT #27: Mon Apr = 17 19:02:25 PDT 2006 jmg@carbon.funkthat.com:/usr/home/jmg/p4/world/src= /sys/i386/compile/carbon i386 > # file -C -m magic > # file magic > magic: magic text file for file(1) cmd > # file /tmp/*.CRW > Segmentation fault (core dumped) >=20 > That last part was the wierd part... and if I copied the magic.mgc > from my 5.4-R box, it worked fine w/ the same line to match the CRW... > (See below before you point out that above isn't a sparc64 box) >=20 > And the magic line is: > # tail -n 1 magic > 0 string II\x1a\x00 Canon RAW >=20 > If I remove that line, the compile works, and file returns data: > # file /tmp/*.CRW > /tmp/CRW_0171.CRW: data >=20 > Wow, I must of really been tired when I made that commit, now that I > think about it, I was testing i386 to i386.. so I'll drop the big > endian bit, but it is a bit worry some that -current's file is broken.. >=20 > # ident magic > magic: > $Id: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $ >=20 > Add the above magic line to that file, and I get a seg fault... >=20 It doesn't really matter what the last line looks like; everything that matches the last line will cause the file(1) to coredump. I verified on 7-CURRENT, i386 and amd64. NetBSD-current doesn't exhibit this problem. Hint: grep ^file /usr/src/MAINTAINERS Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --ylS2wUBXLOxYXZFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEexPyqRfpzJluFF4RAu7vAJ9NlP4uO2OyRWNqwPyub+Vfz4vnhQCgklFV HNXu+ooJ/lPT48qUDmj/mG4= =/e7L -----END PGP SIGNATURE----- --ylS2wUBXLOxYXZFQ--