Bug#608856: iceweasel: Freeze while trying to open a linked file

Dmitry Semyonov linulin at gmail.com
Tue Jan 4 02:57:56 UTC 2011


Package: iceweasel
Severity: important

First of all, the workaround for those, seeking for quick solution:

  1. Execute the following commands:

sudo cp /etc/mailcap /etc/mailcap.iceweasel
sudo sed -i 's/; test=test -n "$DISPLAY"//' /etc/mailcap.iceweasel
sudo sed -i 's/; test=test "$DISPLAY"//' /etc/mailcap.iceweasel
sudo sed -i 's/; test=test -n "$ALSA_OUTPUT_PORTS"//' /etc/mailcap.iceweasel

  2. Open "about:config" page in Iceweasel, and change
"helpers.global_mailcap_file" from "/etc/mailcap" to
"/etc/mailcap.iceweasel"


The workaround disables all useless (to Iceweasel) test commands before
execution of actual helper applications. I have yet to verify it during
a week or two to be 100% sure that the issue is really solved, but after
a bit of meditation over frozen Iceweasel's backtrace I believe that it
should be.

Note that I deliberately deleted the version information. While I'm
currently using 3.6.13-1, I encountered the issue with previous 3.x
versions too.

The severity is "important" because it's very annoying when the whole
browser, full of opened tabs, freezes in the middle of some work, and
you have to kill it from console, start again, re-enter passwords,
relogin to some web sites, etc. instead of proceeding with the work.


Now some low-level details.

This is how the problem looks in 'ps efx' output:

21767 ?        Ssl  167:24      |   \_ /usr/lib/iceweasel/firefox-bin
26499 ?        Z      0:00      |   |   \_ [sh] <defunct>


The interesting backtrace excerpt:

#0  0xb78b3424 in __kernel_vsyscall ()
#1  0xb7770f7f in __pthread_cond_wait (cond=0x98b41804, mutex=0x967ffa00) at pthread_cond_wait.c:153
#2  0xb5fdbfc9 in PR_WaitCondVar () from /usr/lib/libnspr4.so.0d
#3  0xb5fe4461 in ?? () from /usr/lib/libnspr4.so.0d
#4  0xb5fd1e84 in PR_WaitProcess () from /usr/lib/libnspr4.so.0d
#5  0xb7030438 in nsProcess::Monitor (arg=0x98b41780) at ../../../xpcom/threads/nsProcessCommon.cpp:263
#6  0xb7030633 in nsProcess::RunProcess (this=0x98b41780, blocking=1, args=0xbfb1d2e8, count=2,
    observer=0x0, holdWeak=0) at ../../../xpcom/threads/nsProcessCommon.cpp:440
#7  0xb70300a0 in nsProcess::Run (this=0x98b41780, blocking=1, args=0xbfb1d2e8, count=2)
    at ../../../xpcom/threads/nsProcessCommon.cpp:320
#8  0xb6d8446b in nsOSHelperAppService::GetHandlerAndDescriptionFromMailcapFile (aFilename=..., 
    aMajorType=..., aMinorType=..., aTypeOptions=..., aHandler=..., aDescription=..., aMozillaFlags=...)
    at ../../../uriloader/exthandler/unix/nsOSHelperAppService.cpp:1159


And the offender command:

(gdb) f 6
#6  0xb7030633 in nsProcess::RunProcess (this=0x98b41780, blocking=1, args=0xbfb1d2e8, count=2, 
    observer=0x0, holdWeak=0) at ../../../xpcom/threads/nsProcessCommon.cpp:440
(gdb) p args[0]
$36 = 0xb71ad750 "-c"
(gdb) p args[1]
$37 = 0xbfb1cf68 "test -n \"$DISPLAY\""


P.S.
  Sorry about not following the suggestions to reproduce the issue with disabled add-ons, using
safe mode, etc. but the problem seems unrelated to all that stuff.


-- Package-specific info:

-- Extensions information
Name: Adblock Plus
Location: ${PROFILE_EXTENSIONS}/{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
Status: enabled

Name: Context Search
Location: ${PROFILE_EXTENSIONS}/{902D2C4A-457A-4EF9-AD43-7014562929FF}
Status: enabled

Name: Default
Location: /usr/lib/iceweasel/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
Package: iceweasel
Status: enabled

Name: Flashblock
Location: ${PROFILE_EXTENSIONS}/{3d7eb24f-2740-49df-8937-200b1cc08f8a}
Status: enabled

Name: Google Dictionary and Google Translate
Location: ${PROFILE_EXTENSIONS}/googledictionary at toptip.ca
Status: enabled

Name: Header Spy
Location: ${PROFILE_EXTENSIONS}/{9efe12fc-8e7b-41dc-917e-b9341daa31e0}
Status: enabled

Name: NoScript
Location: ${PROFILE_EXTENSIONS}/{73a6fe31-595d-460b-a920-fcc0f8843232}
Status: enabled

Name: Password Hasher
Location: ${PROFILE_EXTENSIONS}/passhash at mozilla.wijjo.com
Status: enabled

Name: Russian spellchecking dictionary
Location: ${PROFILE_EXTENSIONS}/ru at dictionaries.addons.mozilla.org
Status: enabled

Name: Sage
Location: ${PROFILE_EXTENSIONS}/{a6ca9b3b-5e52-4f47-85d8-cca35bb57596}
Status: enabled

Name: ScrapBook
Location: ${PROFILE_EXTENSIONS}/{53A03D43-5363-4669-8190-99061B2DEBA5}
Status: enabled

Name: Sort Tabs
Location: ${PROFILE_EXTENSIONS}/tito at sorttabs
Status: enabled

Name: Tab Mix Plus
Location: ${PROFILE_EXTENSIONS}/{dc572301-7619-498c-a57d-39143191b318}
Status: enabled

Name: Toggle Word Wrap
Location: ${PROFILE_EXTENSIONS}/{cafe3945-058e-47e3-87f8-75bc120b9638}
Status: enabled

Name: ViewSourceWith
Location: ${PROFILE_EXTENSIONS}/{eecba28f-b68b-4b3a-b501-6ce12e6b8696}
Status: enabled

-- Plugins information
Name: DjVuLibre-3.5.23
Location: /usr/lib/netscape/plugins-libc6/nsdejavu.so
Package: djvulibre-plugin
Status: enabled

Name: Java(TM) Plug-in 1.6.0_22
Location: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/i386/libnpjp2.so
Package: sun-java6-bin
Status: enabled

Name: Picasa
Location: /opt/google/picasa/3.0/lib/npPicasa3.so
Package: picasa
Status: enabled

Name: Shockwave Flash
Location: /usr/lib/flashplugin-nonfree/libflashplayer.so
Status: enabled

Name: VLC Multimedia Plug-in
Location: /usr/lib/mozilla/plugins/libvlcplugin.so
Package: mozilla-plugin-vlc
Status: enabled


-- Addons package information
ii  djvulibre-plug 3.5.23-3       Browser plugin for the DjVu image format
ii  iceweasel      3.6.13-1       Web browser based on Firefox
ii  mozilla-plugin 1.1.3-1        multimedia plugin for web browsers based on 
ii  picasa         3.0.5744-02    Image management application from Google
ii  sun-java6-bin  6.22-1         Sun Java(TM) Runtime Environment (JRE) 6 (ar

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages iceweasel depends on:
ii  debianutils                   3.4        Miscellaneous utilities specific t
ii  fontconfig                    2.8.0-2.1  generic font configuration library
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libgtk2.0-0                   2.20.1-2   The GTK+ graphical user interface 
ii  libnspr4-0d                   4.8.6-1    NetScape Portable Runtime Library
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3
ii  procps                        1:3.2.8-9  /proc file system utilities
ii  xulrunner-1.9.2               1.9.2.13-1 XUL + XPCOM application runner

iceweasel recommends no packages.

Versions of packages iceweasel suggests:
ii  libgssapi-krb5-2            1.8.3+dfsg-4 MIT Kerberos runtime libraries - k
pn  mozplugger                  <none>       (no description available)
ii  ttf-lyx                     1.6.7-1      TrueType versions of some TeX font
pn  ttf-mathematica4.1          <none>       (no description available)
ii  xfonts-mathml               4            Type1 Symbol font for MathML
pn  xprint                      <none>       (no description available)

Versions of packages xulrunner-1.9.2 depends on:
ii  libasound2              1.0.23-2.1       shared library for ALSA applicatio
ii  libatk1.0-0             1.30.0-1         The ATK accessibility toolkit
ii  libbz2-1.0              1.0.5-6          high-quality block-sorting file co
ii  libc6                   2.11.2-7         Embedded GNU C Library: Shared lib
ii  libcairo2               1.8.10-6         The Cairo 2D vector graphics libra
ii  libdbus-1-3             1.2.24-4         simple interprocess messaging syst
ii  libevent-1.4-2          1.4.13-stable-1  An asynchronous event notification
ii  libffi5                 3.0.9-3          Foreign Function Interface library
ii  libfontconfig1          2.8.0-2.1        generic font configuration library
ii  libfreetype6            2.4.2-2.1        FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.4.5-8        GCC support library
ii  libglib2.0-0            2.24.2-1         The GLib library of C routines
ii  libgtk2.0-0             2.20.1-2         The GTK+ graphical user interface 
ii  libhunspell-1.2-0       1.2.11-1         spell checker and morphological an
ii  libjpeg62               6b1-1            The Independent JPEG Group's JPEG 
ii  libmozjs3d              1.9.2.13-1       The Mozilla SpiderMonkey JavaScrip
ii  libnspr4-0d             4.8.6-1          NetScape Portable Runtime Library
ii  libnss3-1d              3.12.8-1         Network Security Service libraries
ii  libpango1.0-0           1.28.3-1         Layout and rendering of internatio
ii  libpixman-1-0           0.16.4-1         pixel-manipulation library for X a
ii  libpng12-0              1.2.44-1         PNG library - runtime
ii  libreadline6            6.1-3            GNU readline and history libraries
ii  libsqlite3-0            3.7.4-2          SQLite 3 shared library
ii  libstartup-notification 0.10-1           library for program launch feedbac
ii  libstdc++6              4.4.5-8          The GNU Standard C++ Library v3
ii  libx11-6                2:1.3.3-4        X11 client-side library
ii  libxrender1             1:0.9.6-1        X Rendering Extension client libra
ii  libxt6                  1:1.0.7-1        X11 toolkit intrinsics library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

-- no debconf information





More information about the pkg-mozilla-maintainers mailing list