#638903 Iceweasel should initialize NSS modules off the main thread

#638903#5
Date:
2011-08-22 20:31:58 UTC
From:
To:
iceweasel refuses to start after upgrade to 6.0. This is the second
computer having the same problem. Is this known? On the other computer I
had to create a new account, and restore by coping the bookmark file:
bookmarks-2011-08-22.json and the settings file:sessionstore.js
manually.

#638903#10
Date:
2011-08-22 21:10:38 UTC
From:
To:
What exactly do you mean with "refuses to start"?

Mike

#638903#15
Date:
2011-08-22 21:36:44 UTC
From:
To:
It just hangs!

Starting with  iceweasel -safe-mode -preferences gives the preferences
menu, then a freeze.

iceweasel -safe-mode -jsconsole opens the Error console and then hangs
(no output)

NO!

See http://paste.debian.net/127055/ for the last 30k. The whole file is
1.3GB.

Yes it was.

#638903#20
Date:
2011-08-22 21:13:26 UTC
From:
To:
Does it crash? Does it display something and then abort? Is there
something displayed on the console/in .xsession-errors? What does strace
-f iceweasel say? Was iceweasel running during the upgrade?

Mike

#638903#25
Date:
2011-08-23 04:52:58 UTC
From:
To:
Does "MOZILLA_DISABLE_PLUGINS=1 iceweasel" do any better?

Mike

#638903#30
Date:
2011-08-23 05:02:19 UTC
From:
To:
Sorry no it does'nt! Same hang during startup.
#638903#35
Date:
2011-08-23 05:38:09 UTC
From:
To:
Can you attach gdb to the hung process and get a backtrace?

Mike

#638903#40
Date:
2011-08-23 06:06:14 UTC
From:
To:
A "bt full" is at http://paste.debian.net/127095/

In case you need an "thread apply all bt full" I can paste that too, it
seems is less than 90k in size.

#638903#45
Date:
2011-08-23 06:19:17 UTC
From:
To:
severity 638903 wishlist
retitle 638903 Iceweasel should initialize NSS modules off the main thread
thanks

So, this is what i was afraid of, except it's not a plugin, it's a NSS
module that you installed. You'll have to figure out why it freezes.

At best, iceweasel could (should) initialize the nss modules off the
main thread to avoid freezing like this, but this is not a serious issue
anymore.

What you can do is install the libnss3-tools package, and disable the
faulty NSS module with modutil -dbdir ~/.mozilla/firefox/$profiledir
-delete or -disable (-list will give you a list of the installed
modules)

Mike

#638903#54
Date:
2011-08-23 06:46:34 UTC
From:
To:
#> modutil -dbdir ~/.mozilla/firefox/$profiledir -list
modutil: function failed: security library: bad database

Where is $profiledir?

The directories I have below identifier.default/ are:

Cache, OfflineCache, chrome, extensions, startupCache, weave

#638903#59
Date:
2011-08-23 06:48:50 UTC
From:
To:
Replace $profiledir with identifier.default.

Mike

#638903#64
Date:
2011-08-23 07:26:22 UTC
From:
To:
Ok, removing one of the modules made iceweasel work again, thanks.

Looks like I removed my electronic smart card reader module. How are
things expected to work in the future with NSS modules?

#638903#69
Date:
2011-08-23 07:27:42 UTC
From:
To:
Nothing is supposed to have changed wrt NSS modules. At least not that
I'm aware of.

Mike