bugmldonkey, a multi-networks file-sharing client - Bugs: bug #16947, libmagic database parse problem

 
 

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

bug #16947: libmagic database parse problem

Submitted by:  Carlo Caputo <zed9h>
Submitted on:  Mon 26 Jun 2006 09:32:49 PM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: Segmentation FaultStatus: Wont Fix
Assigned to: NoneOpen/Closed: Closed
Release: cvs20060626Release: None
Operating System: LinuxBinaries Origin: CVS / Self compiled
CPU type: Intel x86

Mon 26 Jun 2006 09:58:28 PM UTC, comment #1:

ocaml-magic libs used in mldonkey are 3rd-party software,
your bug seems to be a problem either of the distro because
of missing mgc files or of ocaml-magic not working well in
this case, file a bugreport here:
http://sourceforge.net/projects/ocaml-magic/

spiralvoice <spiralvoice>
Project Administrator
Mon 26 Jun 2006 09:32:49 PM UTC, original submission:

on slackware-10.2, file-4.17's libmagic is deployed without *.mgc binary compiled databases and mldonkey at some point (not right away nor after some download) fail to load the plain version of /etc/file/magic, but after installing the same version of file(4.17) it succeeds loading /usr/local/share/file/magic.mgc , the binary version.

I imagine it didn't segfault before because the memory corruption didn't go far enough to cross the protection boundary, but even before this crach there were severe instabilities, perhaps related.

note: the slackware version of /etc/file/magic have two entries more than the official release (whole file attached):
$ diff -u5 /usr/local/share/file/magic /etc/file/magic
--- /usr/local/share/file/magic 2006-06-26 17:46:59.000000000 -0300
+++ /etc/file/magic 2006-05-19 00:10:53.000000000 -0300
@@ -3071,10 +3071,30 @@
#

  1. string RZIP rzip compressed data

>4 byte x - version %d
>5 byte x \b.%d
>6 belong x (%d bytes)
+
+# Supplementary magic data for the file(1) command to support
+# rzip(1). The format is described in magic(5).
+#
+# Copyright (C) 2003 by Andrew Tridgell. You may do whatever you want with
+# this file.
+#
+
+0 string RZIP rzip compressed data
+>4 byte x - version %d
+>5 byte x \b.%d
+>6 belong x (%d bytes)
+
+#------------------------------------------------------------------------------
+# zisofs: file(1) magic for zisofs/RockRidge compressed files
+#
+# from H. Peter Anvin <hpa@zytor.com> May 4, 2001
+#
+0 string \x37\xE4\x53\x96\xC9\xDB\xD6\x07 zisofs/Rockridge compressed file
+>8 lelong x - %d bytes
#------------------------------------------------------------------------------
# Console game magic
# Toby Deshane <hac@shoelace.digivill.net>
# ines: file(1) magic for Marat's iNES Nintendo Entertainment System
# ROM dump format

Carlo Caputo <zed9h>

 

Attached Files
file #10249:  magic added by zed9h (433KiB - application/octet-stream - /etc/file/magic (slackware-current [10.2 -> 11.0]) )

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 28 Jun 2006 10:06:27 PM UTCspiralvoiceOpen/ClosedOpen=>Closed
Mon 26 Jun 2006 09:58:28 PM UTCspiralvoiceStatusNone=>Wont Fix
Mon 26 Jun 2006 09:32:49 PM UTCzed9hAttached File-=>Added magic, #10249

Back to the top


Powered by Savane 3.1-cleanup1