segfault in libmagic1

Bug #621042 reported by Brian J. Murrell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
file (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: file

I got the following segfault trying to use "file" on a file:

#0 memchr () at ../sysdeps/i386/memchr.S:184
#1 0x009f6835 in mcopy (ms=<value optimized out>, p=<value optimized out>,
    type=17, indir=0,
    s=0x858aee8 "[Strings.0409]\r\n;Localizable\r\nSimulator.DeviceDesc", ' ' <repeats 12 times>, "= \"Simulator for Microsoft Windows SideShow\"\r\nUSB\\MS_COMP_SIDESHW.DeviceDesc = \"Microsoft Windows SideShow-compatible device\"\r\n\r\n;Non-Loc"..., offset=0, nbytes=766, linecnt=100) at softmagic.c:949
#2 0x009f7f50 in mget (ms=0x856f4c0, s=<value optimized out>, m=0xb76f2720,
    nbytes=766, cont_level=0) at softmagic.c:1031
#3 0x009f9233 in match (ms=0x856f4c0,
    buf=0x858aee8 "[Strings.0409]\r\n;Localizable\r\nSimulator.DeviceDesc", ' ' <repeats 12 times>, "= \"Simulator for Microsoft Windows SideShow\"\r\nUSB\\MS_COMP_SIDESHW.DeviceDesc = \"Microsoft Windows SideShow-compatible device\"\r\n\r\n;Non-Loc"..., nbytes=766, mode=0) at softmagic.c:138
#4 file_softmagic (ms=0x856f4c0,
    buf=0x858aee8 "[Strings.0409]\r\n;Localizable\r\nSimulator.DeviceDesc", ' ' <repeats 12 times>, "= \"Simulator for Microsoft Windows SideShow\"\r\nUSB\\MS_COMP_SIDESHW.DeviceDesc = \"Microsoft Windows SideShow-compatible device\"\r\n\r\n;Non-Loc"..., nbytes=766, mode=0) at softmagic.c:74
#5 0x009f9810 in file_ascmagic_with_encoding (ms=0x856f4c0,
    buf=0x856f8a8 "\377\376[", nbytes=1535, ubuf=0x85896e0, ulen=766,
    code=0xa06672 "Little-endian UTF-16 Unicode", type=0xa06640 "text")
    at ascmagic.c:153
#6 0x009fa04c in file_ascmagic (ms=0x856f4c0, buf=0x856f8a8 "\377\376[",
    nbytes=1535) at ascmagic.c:96
#7 0x00a00456 in file_buffer (ms=0x856f4c0, fd=3,
    inname=0xbfc78ef4 "Windows/winsxs/x86_windowssideshowenha..river.inf.resources_31bf3856ad364e35_6.1.7600.16385_en-us_ee44b28c2fcbbce3/WindowsSideShowEnhancedDriver.inf_loc", buf=0x856f8a8, nb=1536) at funcs.c:257
#8 0x009f1f3e in file_or_fd (ms=<value optimized out>,
    inname=<value optimized out>, fd=3) at magic.c:336
#9 0x08048f10 in ?? ()
#10 0x08049a58 in ?? ()
#11 0x0031bbd6 in __libc_start_main (main=0x8049030, argc=1084,
    ubp_av=0xbfc69ac4, init=0x8049c20, fini=0x8049c10,
    rtld_fini=0xe050c0 <_dl_fini>, stack_end=0xbfc69abc) at libc-start.c:226
#12 0x08048c41 in ?? ()

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: file 5.03-5ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Fri Aug 20 06:20:44 2010
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: file

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :
Revision history for this message
Steffen Röcker (sroecker) wrote :

Can you attach the file?
Otherwise "hexdump -C file | head -10" would be interesting.

Changed in file (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for file (Ubuntu) because there has been no activity for 60 days.]

Changed in file (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.