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     [EMAIL 
> PROTECTED]:/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
[EMAIL PROTECTED]
FreeBSD committer

Attachment: pgpmHWIXJEnSD.pgp
Description: PGP signature

Reply via email to