View previous topic :: View next topic |
Author |
Message |
cmrd n00b
Joined: 13 Jul 2014 Posts: 44
|
Posted: Sun Dec 27, 2020 10:03 pm Post subject: firefox segfault, firefox-bin works |
|
|
I'm consistently unable to run firefox on my system:
Running firefox -p launches the profile selection window, but no matter what I select, I get a segfault as soon as I click "Start firefox".
When built with the debug use flag, it gives an arcane warning about a locale and not much useful info, but eselect locale list says my locale is en_GB.utf8.
The same symptoms happen when I build stable and ~amd64.
I'm using the default USE flags.
When I install firefox-bin it runs fine.
Running strace produces a 762k file, which doesn't give me any clues. The last 100 lines are below.
Having spent a while troubleshooting this, I'm starting to suspect miscompilation - should I open a bug?
Any ideas what I can try to get firefox not -bin running?
Code: | futex(0x7fc763f37f38, FUTEX_WAKE_PRIVATE, 2147483647) = 0
... repeated lots of times
futex(0x7fc7659ca250, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fc7410ff000
mprotect(0x7fc741100000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
clone(child_stack=0x7fc7418feeb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[29742], tls=0x7fc7418ff640, child_tidptr=0x7fc7418ff910) = 29742
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x7fc7659ca040, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fb0c, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fab0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757aa8430, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fb08, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fab0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757aa8430, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fb0c, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fab0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757aa8430, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(0x7fc765a03000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc765a03000
getrandom("\x5e\xeb\x26\xb2\x82\x81\x0e\x41", 8, GRND_NONBLOCK) = 8
getrandom("\x88\x5d\x67\xf7\xe0\x53\x25\xfa", 8, GRND_NONBLOCK) = 8
getrandom("\x63\xe4\x81\x85\xb4\x93\x54\xb4", 8, GRND_NONBLOCK) = 8
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc740fff000
munmap(0x7fc740fff000, 1048576) = 0
mmap(NULL, 2093056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc740f00000
munmap(0x7fc741000000, 1044480) = 0
mmap(0x7fc740fff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc740fff000
gettid() = 29639
getpid() = 29639
getpid() = 29639
futex(0x7fc757a7fb08, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a7fab0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757aa8430, FUTEX_WAKE_PRIVATE, 1) = 1
memfd_create("mozilla-ipc", MFD_CLOEXEC|MFD_ALLOW_SEALING) = 51
openat(AT_FDCWD, "/proc/self/fd/51", O_RDONLY|O_CLOEXEC) = 52
fallocate(51, 0, 0, 460800) = 0
mmap(NULL, 17179869184, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc340f00000
munmap(0x7fc340f00000, 17179869184) = 0
mmap(0x7fc540f00000, 460800, PROT_READ|PROT_WRITE, MAP_SHARED, 51, 0) = 0x7fc540f00000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc740e00000
mmap(0x7fc740eff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc740eff000
munmap(0x7fc540f00000, 460800) = 0
fcntl(51, F_ADD_SEALS, F_SEAL_SEAL|F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_FUTURE_WRITE) = 0
close(51) = 0
mmap(0x7fc540f00000, 460800, PROT_READ, MAP_SHARED, 52, 0) = 0x7fc540f00000
futex(0x7fc741f74b00, FUTEX_WAKE_PRIVATE, 2147483647) = 1
futex(0x7fc757a8e920, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7fc757a3e8c0, FUTEX_WAKE_PRIVATE, 1) = 1
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
unlink("/tmp/firefox/lock") = 0
close(11) = 0
unlink("/home/sklv/.mozilla/firefox/d1jyz2k4.default-release/lock") = 0
close(12) = 0
rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fc76615dcf0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], [], 8) = 0
getpid() = 29639
gettid() = 29639
tgkill(29639, 29639, SIGSEGV) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_TKILL, si_pid=29639, si_uid=1000} ---
+++ killed by SIGSEGV +++
|
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Sun Dec 27, 2020 10:10 pm Post subject: |
|
|
Firefox 84 crashes on my machine, too.
But it works if I start it with
Code: | MOZ_DISABLE_WAYLAND=1 firefox |
|
|
Back to top |
|
|
cmrd n00b
Joined: 13 Jul 2014 Posts: 44
|
Posted: Sun Dec 27, 2020 10:19 pm Post subject: |
|
|
mike155 wrote: | But it works if I start it with
Code: | MOZ_DISABLE_WAYLAND=1 firefox |
|
Code: | GDK_BACKEND=x11 MOZ_DISABLE_WAYLAND=1 firefox |
Did launch FF successfully, that's progress!
So how come firefox-bin doesn't have this issue? |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Mon Dec 28, 2020 1:22 pm Post subject: |
|
|
@cmrd: please post the output of
I wonder whether it's somehow related to USE flags... |
|
Back to top |
|
|
cmrd n00b
Joined: 13 Jul 2014 Posts: 44
|
Posted: Tue Dec 29, 2020 6:14 pm Post subject: |
|
|
Sure:
Code: | $ emerge -pv firefox
...
[ebuild R ~] www-client/firefox-84.0.1-r1:0/84::gentoo USE="clang hardened openh264 pulseaudio (selinux) system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland -dbus -debug -eme-free -geckodriver (-gmp-autoupdate) -hwaccel -jack -lto -pgo -screencast -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -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 -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
Having read the bug, it looks like it is the remote control feature failing due to -dbus.
Launching firefox with --no-remote works fine, with no segfault.
firefox-bin probably doesn't have this issue because it's built with +dbus. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Dec 29, 2020 9:22 pm Post subject: |
|
|
@cmrd: thanks! This confirms my suspicion. Firefox crashes if it was compiled WITH 'wayland' and WITHOUT 'dbus' and if it's called WITHOUT '--no-remote'. |
|
Back to top |
|
|
|
|
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
|
|