update-mime-info segfaults

Asked by Daniel Milstein on 2006-09-06

When I try and install shared-mime-info in apt-get, I get a segfault with the following error message:

Setting up shared-mime-info (0.17-0ubuntu11) ...
***
* Updating MIME database in /usr/share/mime...
Wrote 503 strings at 20 - 29c8
Wrote aliases at 29c8 - 2bbc
Wrote parents at 2bbc - 35b8
Wrote literal globs at 35b8 - 3614
Wrote suffix globs at 3614 - 6b4c
Wrote full globs at 6b4c - 6b70
/var/lib/dpkg/info/shared-mime-info.postinst: line 9: 15628 Segmentation fault /usr/bin/update-mime-database /usr/share/mime
dpkg: error processing shared-mime-info (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 shared-mime-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

The gdb backtrace is as follows:
                  Program received signal SIGSEGV, Segmentation fault.
0x0804ad92 in write_match (key=0x8075d68,
    data=0xbfd220f4) at update-mime-database.c:2194
2194 offset = mdata->offset + 32 * g_list_index (mdata->matches, magic->matches->data);
(gdb) bt
#0 0x0804ad92 in write_match (key=0x8075d68,
    data=0xbfd220f4) at update-mime-database.c:2194
#1 0xb7d354ba in g_ptr_array_foreach ()
   from /usr/lib/libglib-2.0.so.0
#2 0x0804b6e7 in write_cache (cache=0x8070890)
    at update-mime-database.c:2332
#3 0x0804dee8 in main (argc=2, argv=0xbfd22314)
    at update-mime-database.c:2833
(gdb)

Is there anything that I can do to fix this?

Many thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2006-09-06
Last reply:
2006-09-06

This looks like a bug,please create a bug report

Can you help with this problem?

Provide an answer of your own, or ask Daniel Milstein for more information if necessary.

To post a message you must log in.