Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] dev-libs/nss aborts on Firefox 3.6.4 start up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
drbergie
n00b
n00b


Joined: 22 Nov 2007
Posts: 34

PostPosted: Sun Jul 25, 2010 4:48 pm    Post subject: [Solved] dev-libs/nss aborts on Firefox 3.6.4 start up Reply with quote

Upgraded to Firefox 3.6.4, and found it aborts. Read quite a few threads in recent weeks about Firefox failing to start. Made a debug build, after none of the other threads solved my problem. (Also made a debug build of nss) and found the following backtrace;

revdep-rebuild does not fix the problem. re emerging Firefox and all its dependents with "CFLAGS=-O0" doesn't fix the problem. Neither does emerge world and then depclean.

Anyone has bright ideas?
Thanks

Code:

Starting program: /usr/lib/mozilla-firefox/firefox                                         
[Thread debugging using libthread_db enabled]                                               
[New Thread 0xb395ab70 (LWP 5914)]                                                         
[New Thread 0xb2fffb70 (LWP 5915)]                                                         
[New Thread 0xb27feb70 (LWP 5916)]                                                         
[New Thread 0xb1ffdb70 (LWP 5917)]                                                         
[New Thread 0xb12ffb70 (LWP 5918)]                                                         
[New Thread 0xb02ffb70 (LWP 5920)]                                                         
[Thread 0xb02ffb70 (LWP 5920) exited]                                                       
[New Thread 0xb02ffb70 (LWP 5921)]                                                         
[New Thread 0xad2ffb70 (LWP 5922)]                                                         
[New Thread 0xacafeb70 (LWP 5923)]                                                         
[Thread 0xacafeb70 (LWP 5923) exited]

Program received signal SIGABRT, Aborted.
0xffffe424 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7c77451 in raise () from /lib/libc.so.6
#2  0xb7c78b92 in abort () from /lib/libc.so.6
#3  0xb0a82a7b in PR_CallOnce_stub (once=0xb0a965c8, func=0xb0a53cde <rng_init>) at stubs.c:439
#4  0xb0a53fa2 in RNG_RNGInit () at drbg.c:469
#5  0xb0af6ba8 in RNG_RNGInit () at loader.c:834
#6  0xb0ad4534 in nsc_CommonInitialize (pReserved=0xbfff71f8, isFIPS=0) at pkcs11.c:2582
#7  0xb0ad47d2 in NSC_Initialize (pReserved=0xbfff71f8) at pkcs11.c:2710
#8  0xb65c25ed in secmod_ModuleInit (mod=0xad551010, reload=0xbfff72f4, alreadyLoaded=0xbfff7250) at pk11load.c:252
#9  0xb65c2bbd in secmod_LoadPKCS11Module (mod=0xad551010, oldModule=0xbfff72f4) at pk11load.c:492
#10 0xb65d07cf in SECMOD_LoadModule (
    modulespec=0xad5d9800 " name=\"NSS Internal PKCS #11 Module\" parameters=\"configdir='/home/drbergie/.mozilla/firefox/cntwy83z.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=optimizeSpace updatedir='' updateCertP"..., parent=0xad5d7c10, recurse=1)
    at pk11pars.c:1108
#11 0xb65d08ad in SECMOD_LoadModule (
    modulespec=0xad5d7400 "name=\"PSM Internal Crypto Services\" parameters=\"configdir='/home/drbergie/.mozilla/firefox/cntwy83z.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=optimizeSpace updatedir='' updateCertPr"..., parent=0x0, recurse=1)
    at pk11pars.c:1143
#12 0xb6596502 in nss_InitModules (configdir=0xb7ac11c8 "/home/drbergie/.mozilla/firefox/cntwy83z.default", certPrefix=0xb669a105 "",
    keyPrefix=0xb669a105 "", secmodName=0xb669a361 "secmod.db", updateDir=0xb669a105 "", updCertPrefix=0xb669a105 "",
    updKeyPrefix=0xb669a105 "", updateID=0xb669a105 "", updateName=0xb669a105 "",
    configName=0xad524a00 "PSM Internal Crypto Services",
    configStrings=0xb30ab5c0 " manufacturerID='Mozilla.org' libraryDescription='PSM Internal Crypto Services' cryptoTokenDescription='Generic Crypto Services' dbTokenDescription='Software Security Device' cryptoSlotDescription='PS"..., pwRequired=0, readOnly=0,
    noCertDB=0, noModDB=0, forceOpen=0, optimizeSpace=1, isContextInit=0) at nssinit.c:461
#13 0xb65967b5 in nss_Init (configdir=0xb7ac11c8 "/home/drbergie/.mozilla/firefox/cntwy83z.default", certPrefix=0xb669a105 "",
    keyPrefix=0xb669a105 "", secmodName=0xb669a361 "secmod.db", updateDir=0xb669a105 "", updCertPrefix=0xb669a105 "",
    updKeyPrefix=0xb669a105 "", updateID=0xb669a105 "", updateName=0xb669a105 "", initContextPtr=0x0, initParams=0x0, readOnly=0,
    noCertDB=0, noModDB=0, forceOpen=0, noRootInit=0, optimizeSpace=1, noSingleThreadedModules=0, allowAlreadyInitializedModules=0,
    dontFinalizeModules=0) at nssinit.c:620
#14 0xb6596b7b in NSS_InitReadWrite (configdir=0xb7ac11c8 "/home/drbergie/.mozilla/firefox/cntwy83z.default") at nssinit.c:722
#15 0xb722df09 in ?? () from /usr/lib/xulrunner-1.9.2/libxul.so
#16 0xb7ac11c8 in ?? ()
#17 0xb770b1dc in ?? () from /usr/lib/xulrunner-1.9.2/libxul.so
#18 0xbfff75dc in ?? ()
#19 0xb7228080 in ?? () from /usr/lib/xulrunner-1.9.2/libxul.so
#20 0x00000000 in ?? ()



emerge --info:
Code:
emerge --info     
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.32-gentoo-r7 i686)
=================================================================                                 
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 09 Jul 2010 10:45:01 +0000                                                     
app-shells/bash:     4.0_p37                                                                           
dev-java/java-config: 2.1.11                                                                           
dev-lang/python:     2.6.5-r2, 3.1.2-r3                                                                 
dev-util/cmake:      2.6.4-r3                                                                           
sys-apps/baselayout: 1.12.13                                                                           
sys-apps/sandbox:    1.6-r2                                                                             
sys-devel/autoconf:  2.13, 2.65                                                                         
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                                           
sys-devel/binutils:  2.20.1-r1                                                                         
sys-devel/gcc:       4.4.3-r2                                                                           
sys-devel/gcc-config: 1.4.1                                                                             
sys-devel/libtool:   2.2.6b                                                                             
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O0 -march=i686 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O0 -march=i686 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.ac.za/"
LDFLAGS="-Wl,-O1"
LINGUAS="en af"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/jyujin"
SYNC="rsync://rsync.is.co.za/gentoo-portage/"
USE="X a52 aac acl acpi alsa arts berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gnome gpm gtk hal iconv ipv6 jpeg kde lame lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly offensive ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3 qt3support qt4 readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype type1 unicode usb vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en af" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Last edited by drbergie on Mon Jul 26, 2010 8:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Sun Jul 25, 2010 9:47 pm    Post subject: Reply with quote

Can you set up a test user on your system and try to run FF as this user?

I also had problems with NSS recently, but this was in combination with Evolution. Don't know if it's related, but may give a clue.
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
drbergie
n00b
n00b


Joined: 22 Nov 2007
Posts: 34

PostPosted: Mon Jul 26, 2010 9:34 am    Post subject: Reply with quote

I ran
Code:
useradd -m -G users,audio,wheel firefoxtest

and when I run firefox as "firefoxtest" it pops up a dialog (it says
Quote:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
)
Unfortunately, it still aborts in /usr/lib/libfreebl3.so, like with my default user.

This backtrace I also found in an old apache bug. but it seems to be fixed on nss-3.12.3, and I have 3.12.6.

Is Firefox loading the incorrect so?
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Mon Jul 26, 2010 9:58 am    Post subject: Reply with quote

Strange … what's the output of

Code:
ldd $(which firefox)

_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
drbergie
n00b
n00b


Joined: 22 Nov 2007
Posts: 34

PostPosted: Mon Jul 26, 2010 12:50 pm    Post subject: Reply with quote

Code:

ls -l $(which firefox)
/usr/bin/firefox -> /usr/lib/mozilla-firefox/firefox
ldd /usr/lib/mozilla-firefox/firefox
        linux-gate.so.1 =>  (0xffffe000)                                           
        libpthread.so.0 => /lib/libpthread.so.0 (0xb78a0000)                       
        libasound.so.2 => /usr/lib/libasound.so.2 (0xb77cd000)                     
        libdl.so.2 => /lib/libdl.so.2 (0xb77c9000)                                 
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libstdc++.so.6 (0xb76d8000)
        libm.so.6 => /lib/libm.so.6 (0xb76b1000)                                         
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1 (0xb7693000) 
        libc.so.6 => /lib/libc.so.6 (0xb754d000)                                         
        /lib/ld-linux.so.2 (0xb78e2000)                                                   
        librt.so.1 => /lib/librt.so.1 (0xb7544000)       


And also:
Code:
 ldd /usr/lib/xulrunner-1.9.2/xulrunner-bin                         
        linux-gate.so.1 =>  (0xffffe000)                                                                         
        libpthread.so.0 => /lib/libpthread.so.0 (0xb787a000)                                                     
        libmozjs.so => /usr/lib/xulrunner-1.9.2/libmozjs.so (0xb7763000)                                         
        libxpcom.so => /usr/lib/xulrunner-1.9.2/libxpcom.so (0xb775d000)                                         
        libxul.so => /usr/lib/xulrunner-1.9.2/libxul.so (0xb6654000)                                             
        libplds4.so.8 => /usr/lib/libplds4.so.8 (0xb664f000)                                                     
        libplc4.so.8 => /usr/lib/libplc4.so.8 (0xb664a000)                                                       
        libnspr4.so.8 => /usr/lib/libnspr4.so.8 (0xb6614000)                                                     
        libdl.so.2 => /lib/libdl.so.2 (0xb6610000)                                                               
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb61c9000)                                         
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb61a9000)                                                 
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb60fa000)                                                 
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb60cb000)                                       
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6017000)                                               
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb5fe0000)                                           
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb5f35000)                                         
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb5f18000)                                   
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb5f0a000)                                   
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb5eba000)                                             
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb5e21000)                                                     
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb5de0000)                                         
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb5dda000)                                         
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb5ce8000)                                               
        libstartup-notification-1.so.0 => /usr/lib/libstartup-notification-1.so.0 (0xb5cde000)                   
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb5b99000)                                                         
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb5b85000)                                                       
        libasound.so.2 => /usr/lib/libasound.so.2 (0xb5ab1000)                                                   
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libstdc++.so.6 (0xb59c0000)                       
        libm.so.6 => /lib/libm.so.6 (0xb599a000)                                                                 
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/libgcc_s.so.1 (0xb597c000)                         
        libc.so.6 => /lib/libc.so.6 (0xb5836000)                                                                 
        /lib/ld-linux.so.2 (0xb78bc000)                                                                           
        libsqlite3.so => /usr/lib/libsqlite3.so (0xb57b1000)                                                     
        libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0xb5763000)
        libssl3.so => /usr/lib/libssl3.so (0xb5731000)
        libsmime3.so => /usr/lib/libsmime3.so (0xb570b000)
        libnss3.so => /usr/lib/libnss3.so (0xb55f8000)
        libnssutil3.so => /usr/lib/libnssutil3.so (0xb55df000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb54b6000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb54a9000)
        libz.so.1 => /lib/libz.so.1 (0xb5491000)
        libhunspell-1.2.so.0 => /usr/lib/libhunspell-1.2.so.0 (0xb5440000)
        libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0xb541d000)
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb53d8000)
        librt.so.1 => /lib/librt.so.1 (0xb53cf000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb536e000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb5368000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb5354000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb5349000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb533c000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb5338000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb5334000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb532d000)
        libglitz-glx.so.1 => /usr/lib/libglitz-glx.so.1 (0xb5325000)
        libGL.so.1 => //usr/lib/opengl/nvidia/lib/libGL.so.1 (0xb5260000)
        libglitz.so.1 => /usr/lib/libglitz.so.1 (0xb5226000)
        libpng14.so.14 => /usr/lib/libpng14.so.14 (0xb51f3000)
        libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0xb51ee000)
        libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xb51e4000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb51c4000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb51c0000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb51b9000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb51a4000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb5175000)
        libxcb-aux.so.0 => /usr/lib/libxcb-aux.so.0 (0xb5170000)
        libxcb-event.so.1 => /usr/lib/libxcb-event.so.1 (0xb516c000)
        libxcb-atom.so.1 => /usr/lib/libxcb-atom.so.1 (0xb5167000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb515b000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb5154000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb5134000)
        libGLcore.so.1 => //usr/lib/opengl/nvidia/lib/libGLcore.so.1 (0xb3b24000)
        libnvidia-tls.so.1 => //usr/lib/opengl/nvidia/lib/libnvidia-tls.so.1 (0xb3b21000)


and to make sure the nss stuff is correct:
Code:
equery b /usr/lib/libnss3.so
[ Searching for file(s) /usr/lib/libnss3.so in *... ]
dev-libs/nss-3.12.6-r1 (/usr/lib/libnss3.so -> libnss3.so.12)



Code:
equery b /usr/lib/libnssutil3.so
[ Searching for file(s) /usr/lib/libnssutil3.so in *... ]
dev-libs/nss-3.12.6-r1 (/usr/lib/libnssutil3.so -> libnssutil3.so.12)
Back to top
View user's profile Send private message
drbergie
n00b
n00b


Joined: 22 Nov 2007
Posts: 34

PostPosted: Mon Jul 26, 2010 8:15 pm    Post subject: [Solved] dev-libs/nss aborts on Firefox 3.6.4 start up Reply with quote

Ok Fixed it!
Problems started a few weeks months ago, when I migrated my Gentoo install from one harddrive to a new one. I thought everything was fine, but I started getting lots of emerge errors. Files was lying around that didn't belong to installed packages.

Specifically this problem had to do with the /usr/lib/nspr and /usr/lib/nss directories. When I moved them, and ran ldconfig again, Firefox worked again!

Thanks for your time lxg.
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Mon Jul 26, 2010 8:17 pm    Post subject: Reply with quote

You're welcome. Glad you were able to solve it, because I was out of ideas. :)
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum