Bug 82810 - file segfaults after examining an Ogg Vorbis file
file segfaults after examining an Ogg Vorbis file
Product: Red Hat Public Beta
Classification: Retired
Component: file (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-01-26 23:23 EST by James Ralston
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-27 13:38:05 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Ralston 2003-01-26 23:23:44 EST
Description of problem:

The "file" command will die with SIGSEGV if it is passed multiple files to
examine, and any file except the last file is an Ogg Vorbis file.

Version-Release number of selected component (if applicable):


How reproducible:

Invoke file like this:

    file some-file.ogg some-other-file

Actual results:

Segmentation fault.

Expected results:


Additional info:

The act of examining an Ogg Vorbis file seems to be what triggers this bug.
Comment 1 James Ralston 2003-01-26 23:25:37 EST
A clarification: file *does* print information about the Ogg Vorbis file
successfully; it only dies when it attempts to examine the next file in the argv
Comment 2 Jeff Johnson 2003-01-27 09:13:19 EST
Yup, this problem bit rpm too, which has an internal copy
of file-3.39. Fix there was to remove new-fangled
/usr/share/magic tests.

   diff -u /usr/share/magic /usr/lib/rpm/magic
for details.
Comment 3 Jeff Johnson 2003-01-27 13:38:05 EST
Fixed (as described) in file-3.39-6.
Comment 4 James Ralston 2003-01-27 20:52:57 EST
Hurm.  While file doesn't crash when using /usr/lib/rpm/magic, I think it's
bogus that a magic(5) file (one that doesn't even appear to be deliberately
mangled, even) can cause file to segfault.  File should not segfault, regardless
of what magic it's using.

What do the upstream maintainers think about this?
Comment 5 Jeff Johnson 2003-01-28 07:07:38 EST
There's a bug in the magic file distributed with

Go ask the upstream maintainers if you wish. The expedient
fix is
    Don't do that.

Note You need to log in before you can comment on or make changes to this bug.