bugmldonkey, a multi-networks file-sharing client - Bugs: bug #17160, Crash when loading text version of...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17160: Crash when loading text version of GNU file magic database

Submitter:  Samuel Mimram <smimram>
Submitted:  Thu 20 Jul 2006 11:47:35 AM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Segmentation Fault Status:  None
Assigned to:  None Open/Closed:  Open
Release:  2.7.7 Release: 
Operating System:  Linux Binaries Origin:  Debian package
CPU type:  Intel x86

Wed 16 Aug 2006 01:31:28 PM UTC, comment #5: 

Yes, the bug is known, but until now only on Slackware which lacks magic.mgc files.

Debian package has this file, now I do not unterstand why MLDonkey
tries to load /etc/magic first
http://packages.debian.org/stable/libs/libmagic1

spiralvoice <spiralvoice>
Group administrator
Wed 16 Aug 2006 01:02:39 PM UTC, comment #4: 

FWIW, I found out that this bug had already been reported to ocaml-magic:

http://sourceforge.net/tracker/index.php?func=detail&aid=1514849&group_id=129316&atid=714527

Samuel Mimram <smimram>
Wed 16 Aug 2006 11:29:07 AM UTC, comment #3: 

Hi,

Now the problem also happens to me. I've got the following stacktrace when I run mlnet:

#0  0xa7ce64ee in memset () from /lib/tls/i686/cmov/libc.so.6
#1  0xffffffff in ?? ()
#2  0xa7ed616d in apprentice_file (ms=0x84f6f70, magicp=0xaf892fdc,
    nmagicp=0xaf892fd8, fn=0x84f8b50 "/etc/magic", action=0)
    at apprentice.c:567
#3  0xa7ed7615 in file_apprentice (ms=0x84f6f70, fn=0x84f8b50 "/etc/magic",
    action=0) at apprentice.c:183
#4  0xa7ed56c2 in magic_load (ms=0x84f6f70, magicfile=0x0) at magic.c:156
#5  0x082f40b9 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
#6  0x081ea496 in ?? ()
#7  0xa7a8d864 in ?? ()
#8  0xa7a8d864 in ?? ()
#9  0x0812d6c6 in ?? ()
#10 0xaf893088 in ?? ()
#11 0x0812d6a5 in ?? ()
#12 0x084dbfa4 in ?? ()
#13 0x44e2ed79 in ?? ()
#14 0x00000000 in ?? ()

The contents of my /etc/magic file are not customized:

# Magic local data for file(1) command.
# Insert here your local magic data. Format is described in magic(5).

# Objective Caml file types

  1.       string  Caml1999        Objective caml

>8      string  X               exec file
>8      string  I               interface file\ (*.cmi)
>8      string  O               object file\ (*.cmo)
>8      string  A               library file\ (*.cma)
>8      string  Y               native object file\ (*.cmx)
>8      string  Z               native library file\ (*.cmxa)
>9      string  >\0             (Version %3.3s).


I have libmagic1 4.17-3. Feel free to tell me if you need me to do further tests.

PS: I didn't find how to reopen the bug.

Samuel Mimram <smimram>
Thu 20 Jul 2006 12:25:15 PM UTC, comment #2: 

Unfortunately, I cannot reproduce the bug either. I thought that maybe you could neverteless have an idea about what its cause could be...

Samuel Mimram <smimram>
Thu 20 Jul 2006 12:13:58 PM UTC, comment #1: 

Using Debian unstable with latest packages:
ii  libmagic-dev                   4.17-2                         File type determination library (development)
ii  libmagic1                      4.17-2                         File type determination library using "magic" numbers

ocamlc -v
The Objective Caml compiler, version 3.09.2

gcc -v
gcc version 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)

compiled MLDonkey CVS from source with Debian Ocaml package.
MLDonkey starts without problems here. Can you reproduce the
problem on your machine?

"debug_dir ." also works:
37 entries in dir .
store_1024
     data
Mime application/octet-stream

store_512
     data
Mime application/octet-stream

bw_h_updown.png
     PNG image data, 630 x 200, 4-bit colormap, non-interlaced
Mime image/png

bw_updown.png
     PNG image data, 630 x 200, 4-bit colormap, non-interlaced
Mime image/png

store_256
     data
Mime application/octet-stream

mlnet.pid
     ASCII text
Mime text/plain; charset=us-ascii

config_files_space.tmp
     ASCII text, with very long lines, with no line terminators
Mime text/plain; charset=us-ascii

file_sources.ini
     ASCII English text
Mime text/plain; charset=us-ascii

gnutella.ini
     ASCII English text
Mime text/plain; charset=us-ascii

gnutella2.ini
     ASCII English text
Mime text/plain; charset=us-ascii

mlnet.log
     ASCII text
Mime text/plain; charset=us-ascii

fileTP.ini
     ASCII English text
Mime text/plain; charset=us-ascii

fasttrack.ini
     ASCII English text
Mime text/plain; charset=us-ascii

donkey.ini
     ASCII English text, with very long lines
Mime text/plain; charset=us-ascii

stats_bt.ini
     ASCII English text
Mime text/plain; charset=us-ascii

bittorrent.ini
     ASCII English text
Mime text/plain; charset=us-ascii

onlinesig.dat
     ASCII text
Mime text/plain; charset=us-ascii

stats.ini
     ASCII English text
Mime text/plain; charset=us-ascii

stats_mod.ini
     ASCII English text
Mime text/plain; charset=us-ascii

users.ini
     ASCII English text
Mime text/plain; charset=us-ascii

downloads.ini
     ASCII English text
Mime text/plain; charset=us-ascii

shared_files_new.ini
     ASCII English text
Mime text/plain; charset=us-ascii

mldonkey_submit
     perl script text executable
Mime application/x-perl

mlsubmit.reg
     ASCII text
Mime text/plain; charset=us-ascii

torrents
     directory
Mime application/x-not-regular-file

servers.ini
     ASCII English text
Mime text/plain; charset=us-ascii

friends.ini
     ASCII English text
Mime text/plain; charset=us-ascii

searches.ini
     ASCII English text
Mime text/plain; charset=us-ascii

files.ini
     ASCII English text
Mime text/plain; charset=us-ascii

shared_files.ini
     ASCII English text
Mime text/plain; charset=us-ascii

old_config
     directory
Mime application/x-not-regular-file

temp
     directory
Mime application/x-not-regular-file

web_infos
     directory
Mime application/x-not-regular-file

searches
     directory
Mime application/x-not-regular-file

incoming
     directory
Mime application/x-not-regular-file

shared
     directory
Mime application/x-not-regular-file

mlnet_strings.en
     Mathematica 3.0 notebook
Mime text/plain; charset=us-ascii

spiralvoice <spiralvoice>
Group administrator
Thu 20 Jul 2006 11:47:35 AM UTC, original submission:  

Hi,

Since version 2.7.7-4 the mldonkey-server always crashes on startup with the following message:
* glibc detected * corrupted double-linked list: 0x0850c210 *

This does not happen with version 2.7.7-3

[The main change which could have caused that between 2.7.7-3 and 2.7.7-4 is the use of libmagic]

Here is an extercept of the stacktrace:

#100 0x08348b10 in ?? ()
#101 0x08095470 in ?? ()
#102 0xb763da5c in ?? ()
#103 0x084d7210 in ?? ()
#104 0x0804ed49 in ?? ()
#105 0x0831ad6a in std::operator+<char, std::char_traits<char>,
std::allocator<char> > ()
Previous frame inner to this frame (corrupt stack?)

You can find more information about the Debian bug report at
http://bugs.debian.org/378831

Samuel Mimram <smimram>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by smimram
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2006-09-19 unease Carbon-Copy- Added -email is unavailable-
    2006-09-19 unease Carbon-CopyRemoved -email is unavailable- -
    2006-09-19 unease Carbon-Copy- Added -email is unavailable-
    2006-08-16 spiralvoice Summarymldonkey crashes on startup Crash when loading text version of GNU file magic database
    2006-08-16 spiralvoice StatusWorks For Me None
        Open/ClosedClosed Open
    2006-08-16 smimram Carbon-CopyRemoved -email is unavailable- -
    2006-07-20 spiralvoice Open/ClosedOpen Closed
    2006-07-20 spiralvoice StatusNone Works For Me
    2006-07-20 smimram Carbon-Copy- Added -email is unavailable-
    2006-07-20 smimram Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.14-d582.
    Corresponding source code