Created attachment 513820 [details] backtrace of crash with gdb There is a segfault in mozilla's libxul.so when the user tries to login into something like their mail account. This started to happen for one user with firefox-57.0.1, and because I couldn't do a runtime check earlier, with firefox-57.0.4. Now, with a debug ebuild of firefox-57.0.4, it is not possible to establish a https:// connection at all, websites cannot be loaded if there is not http fallback available. Rather, the browser seems to be caught in an endless loop of trying a TLS-handshake, but fails and starts again approx. every second. As a debug build, and before any website is loaded, one segfault occurs: Thread 47 "LoadRoots" received signal SIGSEGV, Segmentation fault.[Switching to LWP 5967] 0x00007fffe7f513bd in mozilla::psm::LoadExtendedValidationInfo () at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/security/certverifier/ExtendedValidation.cpp:1242 1242 /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/security/certverifier/ExtendedValidation.cpp: No such file or directory. (gdb) bt #0 0x00007fffe7f513bd in mozilla::psm::LoadExtendedValidationInfo () at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/security/certverifier/ExtendedValidation.cpp:1242 #1 0x00007fffea6d3d15 in LoadLoadableRootsTask::Run (this=0x55555a1286c0) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/security/manager/ssl/nsNSSComponent.cpp:1121 #2 0x00007fffe8005683 in nsThread::ProcessNextEvent (this=0x55555a12b420, aMayWait=<optimized out>, aResult=0x7fffdb5aa307) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/xpcom/threads/nsThread.cpp:1039 #3 0x00007fffe8008332 in NS_ProcessNextEvent (aThread=aThread@entry=0x55555a12b420, aMayWait=aMayWait@entry=false) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/xpcom/threads/nsThreadUtils.cpp:521 #4 0x00007fffe838efa7 in mozilla::ipc::MessagePumpForNonMainThreads::Run (this=0x55555a135120, aDelegate=0x55555a134780) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/ipc/glue/MessagePump.cpp:338 #5 0x00007fffe836a4f8 in MessageLoop::RunInternal (this=this@entry=0x55555a134780) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/ipc/chromium/src/base/message_loop.cc:326 #6 0x00007fffe836a548 in MessageLoop::RunHandler (this=0x55555a134780) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/ipc/chromium/src/base/message_loop.cc:319 #7 MessageLoop::Run (this=this@entry=0x55555a134780) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/ipc/chromium/src/base/message_loop.cc:299 #8 0x00007fffe8008591 in nsThread::ThreadFunc (aArg=<optimized out>) at /var/tmp/portage/www-client/firefox-57.0.4/work/firefox-57.0.4/xpcom/threads/nsThread.cpp:427 #9 0x00007fffe6d26e3f in _pt_root (arg=0x55555a12b680) at /var/tmp/portage/dev-libs/nspr-4.17/work/nspr-4.17/nspr/pr/src/pthreads/ptthread.c:216 #10 0x00007ffff7dc0d4e in start (p=0x7fffdb5aaae0) at src/thread/pthread_create.c:150 #11 0x00007ffff7dcccac in __clone () at src/thread/x86_64/clone.s:21 Backtrace stopped: frame did not save the PC I have the full log with lot's of other warnings and other details attached.
Created attachment 513822 [details] output of emerge --info toolchain used: stable gentoo toolchain (gcc-6.4.0,glibc-2.25-r9,binutils-2.29.1-r1), llvm-5.0.1, rust-1.21.0 and cargo-0.22.0-r1. The last two are taken from the musl overlay. emerge -pv firefox [ebuild R #] www-client/firefox-57.0.4::gentoo USE="dbus debug eme-free system-harfbuzz system-jpeg (system-libevent) system-libvpx system-sqlite -bindist -custom-cflags -custom-optimization -gmp-autoupdate (-hardened) -hwaccel -jack (-neon) -nsplugin (-pgo) -pulseaudio -screenshot (-selinux) -startup-notification (-system-icu) {-test} -wifi" L10N="de -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 0 KiB
I can try to downgrade the llvm/clang dependencies to 5.0.0 if there is a smonking gun regarding this, somewhere. Also I'm using dev-libs/nss-3.34.1 and nspr-4.17.
Can you provide an example how to trigger the segfault? We can not log in your mail account...
Until gentoo supports rust on musl there will be no help for those who are experimenting. I keep a working beta ebuild in the mozilla overlay other then that you are on your own. We will also not keep bugs open that are invalid.