This problem ran into me while I was upgrading through gutsy revisions.
update-mime-database kept crashing - for instance, in the post/pre
install/rm scripts for sun-java5-jre, or even in shared-mime-info's
scripts. Here's a backtrace of what happens when "update-mime-database
/usr/share/mime" happens:
Program received signal SIGSEGV, Segmentation fault.
0x0804bc15 in write_match (key=0x8059ce8, data=0xffba48b4)
at update-mime-database.c:2228
2228 offset = mdata->offset + 32 * g_list_index (mdata->matches,
magic->matches->data);
(gdb) bt
#0 0x0804bc15 in write_match (key=0x8059ce8, data=0xffba48b4)
at update-mime-database.c:2228
#1 0xf7dd3789 in g_ptr_array_foreach () from /usr/lib/libglib-2.0.so.0
#2 0x0804b82d in write_cache (cache=0x8059fc8) at update-mime-database.c:2366
#3 0x0804e472 in main (argc=Cannot access memory at address 0x4
) at update-mime-database.c:2869
#4 0xf7c8f040 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#5 0x08049c51 in _start ()
(gdb)
If I sit at the top frame and try to print any of the mentioned
variables (offset, mdata, magic), they're all apparently not in the
context. As a heads up, this is the i386 package running in a chroot, on
a x64 host.
** Changed in: shared-mime-info (Ubuntu)
Status: Invalid => Confirmed
--
update-mime-info segfaults
https://bugs.launchpad.net/bugs/59240
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs