I straced the mimedb process when trying mimdb -d .xls (this is the line that 
blocks mine),
I saw it loop juste after opening this file 
/usr/share/mime/application/vnd.ms-excel.xml,
I tried to edit the file removing different XML element to see which made it 
block.
Apparently if the is a comment field without an xml:lang attribute, it blocks 
on the function regexec.
So this file parse:

<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info"; 
type="application/vnd.ms-excel">
  <!--Created automatically by update-mime-database. DO NOT EDIT!-->
  <comment xml:lang="en_GB">Excel spreadsheet</comment>
  <generic-icon name="x-office-spreadsheet"/>
  <alias type="application/msexcel"/>
  <alias type="application/x-msexcel"/>

  <sub-class-of type="application/zip"/>
</mime-type>

but not this one (see the added comment line):

<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info"; 
type="application/vnd.ms-excel">
  <!--Created automatically by update-mime-database. DO NOT EDIT!-->
  <comment xml:lang="en_GB">Excel spreadsheet</comment>
  <generic-icon name="x-office-spreadsheet"/>
  <alias type="application/msexcel"/>
  <alias type="application/x-msexcel"/>
  <comment>Excel 2007 VBA add-in</comment>
  <sub-class-of type="application/zip"/>
</mime-type>

My conjectured diagnostic is that mimedb is trying to parse XML using
regex and forgot to handle comments without xml:lang attributes.

-- 
tab completion crashes fish shell
https://bugs.launchpad.net/bugs/149998
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to