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

Submitter:  Carlo Caputo <zed9h>
Submitted:  Mon 26 Jun 2006 09:32:49 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Segmentation Fault Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed
Release:  None Release:  cvs20060626
Operating System:  Linux Binaries 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>
Group 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>

 

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

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

 

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 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-06-28 spiralvoice Open/ClosedOpen Closed
2006-06-26 spiralvoice StatusNone Wont Fix
2006-06-26 zed9h Attached File- Added magic, #10249

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code