Open Bug 1946405 Opened 26 days ago Updated 26 days ago

Segmentation fault in GTKRemoteServer if DBus disabled and no display server running

Categories

(Firefox :: Headless, defect)

Firefox 135
All
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: misternumberone, Unassigned)

Details

Attachments

(1 file)

  1. Compile and install Firefox on any Linux distro, but add the ac_add_options --disable-dbus and ac_add_options --disable-necko-wifi lines to the mozconfig file
  2. Shut down all running display servers, if applicable. For example, sudo systemctl stop sddm
  3. Back up and delete the current user's Firefox profiles using mv ~/.mozilla ~/.mozilla-bak
  4. Run the command firefox -headless

Backtrace:

Thread 1 "firefox" received signal SIGSEGV, Segmentation fault.
0x00007ffff4fa9494 in XInternAtoms () from /usr/lib/libX11.so.6
(gdb) bt
#0  0x00007ffff4fa9494 in XInternAtoms () from /usr/lib/libX11.so.6
#1  0x00007fffef4c8303 in nsXRemoteServer::EnsureAtoms (this=0x7fffd92d15e0)
    at /usr/src/debug/firefox/firefox-135.0/toolkit/components/remote/nsXRemoteServer.cpp:154
#2  nsXRemoteServer::XRemoteBaseStartup (this=0x7fffd92d15e0, aAppName=0x7ffff7703708 "firefox", 
    aProfileName=0x7ffff7743488 "/home/tacokoneko/.mozilla/firefox/g3cc47es.default-release")
    at /usr/src/debug/firefox/firefox-135.0/toolkit/components/remote/nsXRemoteServer.cpp:60
#3  0x00007fffef4c4213 in nsGTKRemoteServer::Startup (this=0x7fffd92d15e0, aAppName=0x7ffff7703708 "firefox", 
    aProfileName=0x7ffff7743488 "/home/tacokoneko/.mozilla/firefox/g3cc47es.default-release")
    at /usr/src/debug/firefox/firefox-135.0/toolkit/components/remote/nsGTKRemoteServer.cpp:39
#4  0x00007fffef4c51fa in nsRemoteService::StartupServer (this=0x7ffff77a70a0)
    at /usr/src/debug/firefox/firefox-135.0/toolkit/components/remote/nsRemoteService.cpp:278
#5  0x00007fffef6f2434 in XREMain::XRE_mainRun (this=0x7fffffffd6c0)
    at /usr/src/debug/firefox/firefox-135.0/toolkit/xre/nsAppRunner.cpp:5771
#6  0x00007fffef6f2dba in XREMain::XRE_main (this=0x7fffffffd6c0, argc=2, argv=0x7fffffffea08, aConfig=...)
    at /usr/src/debug/firefox/firefox-135.0/toolkit/xre/nsAppRunner.cpp:6075
#7  0x00007fffef6f333c in XRE_main (argc=2, argv=0x7fffffffea08, aConfig=...)
    at /usr/src/debug/firefox/firefox-135.0/toolkit/xre/nsAppRunner.cpp:6148
#8  0x000055555557d281 in do_main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>)
    at /usr/src/debug/firefox/firefox-135.0/browser/app/nsBrowserApp.cpp:232
#9  main (argc=2, argv=0x7fffffffea08, envp=<optimized out>)
    at /usr/src/debug/firefox/firefox-135.0/browser/app/nsBrowserApp.cpp:464
(gdb) 
OS: Unspecified → Linux
Hardware: Unspecified → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: