Date: Mon, 29 May 2006 18:32:02 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/file magic.5 Message-ID: <20060529153202.GE44223@ip.net.ua> In-Reply-To: <20060529105954.GX49081@funkthat.com> References: <200605280715.k4S7Fa1E083206@repoman.freebsd.org> <20060529102126.GD44223@ip.net.ua> <20060529105954.GX49081@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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) > > 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) > > And the magic line is: > # tail -n 1 magic > 0 string II\x1a\x00 Canon RAW > > If I remove that line, the compile works, and file returns data: > # file /tmp/*.CRW > /tmp/CRW_0171.CRW: data > > 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.. > > # ident magic > magic: > $Id: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $ > > Add the above magic line to that file, and I get a seg fault... > 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, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEexPyqRfpzJluFF4RAu7vAJ9NlP4uO2OyRWNqwPyub+Vfz4vnhQCgklFV HNXu+ooJ/lPT48qUDmj/mG4= =/e7L -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060529153202.GE44223>
