update-mime-database segmentation fault on libxml2 and __strncmp_sse42

Bug #759525 reported by Qishuai Liu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libxml2
Invalid
Undecided
Unassigned
libxml2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libxml2

$ sudo update-mime-database.real /usr/share/mime
Segmentation fault
$ sudo gdb update-mime-database.real
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/update-mime-database.real...(no debugging symbols found)...done.
(gdb) r /usr/share/mime
Starting program: /usr/bin/update-mime-database.real /usr/share/mime

Program received signal SIGSEGV, Segmentation fault.
__strncmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp.S:130
130 ../sysdeps/x86_64/multiarch/strcmp.S: No such file or directory.
        in ../sysdeps/x86_64/multiarch/strcmp.S
(gdb) bt
#0 __strncmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp.S:130
#1 0x00007ffff7aedcca in __xmlParserInputBufferCreateFilename (URI=<value optimized out>, enc=<value optimized out>) at xmlIO.c:2525
#2 0x00007ffff7ac2d8d in xmlNewInputFromFile__internal_alias (ctxt=0x60e870, filename=0x60ddc0 "/usr/share/mime/packages/freedesktop.org.xml") at parserInternals.c:1549
#3 0x00007ffff7ac71b6 in xmlCreateURLParserCtxt__internal_alias (filename=0x60ddc0 "/usr/share/mime/packages/freedesktop.org.xml", options=0) at parser.c:13357
#4 0x00007ffff7ade03e in xmlSAXParseFileWithData__internal_alias (sax=0x0, filename=0x60ddc0 "/usr/share/mime/packages/freedesktop.org.xml", recovery=0, data=0x0) at parser.c:13416
#5 0x00000000004065e6 in ?? ()
#6 0x000000000040785b in ?? ()
#7 0x00007ffff744ac4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>,
    rtld_fini=<value optimized out>, stack_end=0x7fffffffe798) at libc-start.c:226
#8 0x0000000000402829 in ?? ()
#9 0x00007fffffffe798 in ?? ()
#10 0x000000000000001c in ?? ()
#11 0x0000000000000002 in ?? ()
#12 0x00007fffffffe9ab in ?? ()
#13 0x00007fffffffe9ce in ?? ()
#14 0x0000000000000000 in ?? ()

/proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
stepping : 5
cpu MHz : 1600.000
cache size : 4096 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips : 4000.30
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

Tags: libc6 libxml2
security vulnerability: yes → no
visibility: private → public
Revision history for this message
Matthias Klose (doko) wrote :

I assume this is lucid. could you post the output of

  dpkg -l libc6 gdb libxml2

Revision history for this message
LexLythius (lexlythius) wrote :

I got this problem (triggered from package shared-mime-info) when I upgraded my server to 10.04 back in February (see https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/59240) and still have it. Upgrading today to 10.04.3 did not help.

# sudo gdb update-mime-database.real
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/update-mime-database.real...(no debugging symbols found)...done.
(gdb) r /usr/share/mime
Starting program: /usr/bin/update-mime-database.real /usr/share/mime

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff74af280 in ?? () from /lib/libc.so.6

(gdb) bt
#0 0x00007ffff74af280 in ?? () from /lib/libc.so.6
#1 0x00007ffff7aedcca in __xmlParserInputBufferCreateFilename () from /usr/lib/libxml2.so.2
#2 0x00007ffff7ac2d8d in xmlNewInputFromFile () from /usr/lib/libxml2.so.2
#3 0x00007ffff7ac71b6 in xmlCreateURLParserCtxt () from /usr/lib/libxml2.so.2
#4 0x00007ffff7ade03e in xmlSAXParseFileWithData () from /usr/lib/libxml2.so.2
#5 0x00000000004065e6 in ?? ()
#6 0x000000000040785b in ?? ()
#7 0x00007ffff744ac4d in __libc_start_main () from /lib/libc.so.6
#8 0x0000000000402829 in ?? ()
#9 0x00007fffffffe798 in ?? ()
#10 0x000000000000001c in ?? ()
#11 0x0000000000000002 in ?? ()
#12 0x00007fffffffe9a0 in ?? ()
#13 0x00007fffffffe9c3 in ?? ()
#14 0x0000000000000000 in ?? ()

Then I did:

strace -o/tmp/strace.txt update-mime-database.real /usr/share/mime

See attached output

Linux server1 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.3 LTS

Anything else I can provide, let me know.

Changed in libxml2 (Ubuntu):
status: New → Confirmed
Revision history for this message
LexLythius (lexlythius) wrote :

Adding the same info you asked the other guy for.

# dpkg -l libc6 gdb libxml2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=====================================================-=====================================================-==========================================================================================================================
ii gdb 7.1-1ubuntu2 The GNU Debugger
ii libc6 2.11.1-0ubuntu7.8 Embedded GNU C Library: Shared libraries
ii libxml2 2.7.6.dfsg-1ubuntu1.2 GNOME XML library

Revision history for this message
Aron Xu (happyaron) wrote :

The problem does not exist on 12.04, closing.

Changed in libxml2 (Ubuntu):
status: Confirmed → Fix Released
Aron Xu (happyaron)
Changed in libxml2:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.