update-mime-info segfaults
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shared-mime-info (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: shared-mime-info
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: 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:
0x0804ad92 in write_match (key=0x8075d68,
data=
2194 offset = mdata->offset + 32 * g_list_index (mdata->matches, magic->
(gdb) bt
#0 0x0804ad92 in write_match (key=0x8075d68,
data=
#1 0xb7d354ba in g_ptr_array_foreach ()
from /usr/lib/
#2 0x0804b6e7 in write_cache (cache=0x8070890)
at update-
#3 0x0804dee8 in main (argc=2, argv=0xbfd22314)
at update-
(gdb)
Is there anything that I can do to fix this?
Many thanks.
Looks like the problem was that a file in /usr/share/mime was malformatted. Nevermind. Sorry about that.