Bug 34125 - Firefox hangs when loading UMC modules
Firefox hangs when loading UMC modules
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Upstream packages
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-1
Assigned To: Erik Damrose
Stefan Gohmann
:
Depends on:
Blocks: 34089
  Show dependency treegraph
 
Reported: 2014-02-14 10:05 CET by Erik Damrose
Modified: 2014-02-18 06:35 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2014-02-14 10:05:37 CET
First observed during UCS 3.2-1 development:

After completing initial appliance setup and logging in to KDE as Administrator, Firefox 'hangs' while loading the UMC. Killing the instance and trying again with a new Firefox instance works.

symptom is the same with FF 24.3.0 and 24.1.1:

trace shows that the hang occurs when parsing /etc/mailcap
strace -p $(pidof firefox):
open("/home/Administrator/.mime.types", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/etc/mime.types", O_RDONLY|O_LARGEFILE) = 73
read(73, "################################"..., 4096) = 4096
close(73)                               = 0
open("/etc/mailcap", O_RDONLY|O_LARGEFILE) = 73
read(73, "################################"..., 4096) = 3731
stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=84144, ...}) = 0
write(31, "\0", 1)                      = 1
futex(0xaa7c9040, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x9f697ec4, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x9f697ec8, FUTEX_WAIT_PRIVATE, 1, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0xaa7c9040, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x9f697ec8, FUTEX_WAIT_PRIVATE, 1, NULL


A defunct process is blocking firefox:
ps afx:
 9845 pts/2    Sl+    0:06      \_ /opt/firefox/firefox
 9916 pts/2    Z+     0:00          \_ [sh] <defunct>

There is a debian bug about this behaviour: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703472

Quick Workaround: With an empty /etc/mailcap firefox does not hang
Comment 1 Erik Damrose univentionstaff 2014-02-14 11:37:12 CET
The line causing the problem is

application/pdf;            okular '%s';        nametemplate=%s.pdf;      test=test "$DISPLAY" != "";     priority=6

/etc/mailcap is generated from source files in /usr/lib/mime/packages
To work around the firefox issue okular will be patched and the line removed.
Comment 2 Erik Damrose univentionstaff 2014-02-14 13:44:24 CET
The mime type registration for okular was removed.

r12601 kdegraphics Patch Version: 4:4.4.5-2.81.201402141307
r47817 Changelog entry

amd64 build pending
Comment 3 Stefan Gohmann univentionstaff 2014-02-16 10:22:11 CET
Tests: OK
I was unable to reproduce this issue with UCS 3.2-1 installations (amd64 and i386).
YAML: OK
Comment 4 Stefan Gohmann univentionstaff 2014-02-18 06:35:05 CET
UCS 3.2-1 has been released:
 http://docs.univention.de/release-notes-3.2-1-en.html
 http://docs.univention.de/release-notes-3.2-1-de.html

If this error occurs again, please use "Clone This Bug".