Closed Bug 1815485 Opened 2 years ago Closed 1 year ago

Startup crash because Gbm inexplicably calls into zink_dri.so (OpenGL/Vulkan translation layer) while the proprietary Nvidia driver is used

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 111
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: vmxevilstar, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: crash)

Attachments

(1 file)

(deleted), text/plain
Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Steps to reproduce:

I have compiled firefox successfully (cd build && ../configure --prefix=/usr && make && make install) from geko git now I have Mozilla Firefox 111.0a1 on my debian experimental
grep experimental /etc/apt/sources.list
deb http://deb.debian.org/debian/ experimental main non-free contrib
deb-src http://deb.debian.org/debian/ experimental main contrib
then i launch firefox

rustc --version
rustc 1.67.0 (fc594f156 2023-01-24)

Actual results:

firefox
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 1342272
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

crash

the only thing I can view is the crash report interface

AdapterDeviceID: 0x249d
AdapterDriverVendor: nvidia/unknown
AdapterDriverVersion: 525.85.12.0
AdapterVendorID: 0x10de
Add-ons: formautofill%40mozilla.org:1.0.1,pictureinpicture%40mozilla.org:1.0.0,screenshots%40mozilla.org:39.0.1,webcompat-reporter%40mozilla.org:1.5.1,webcompat%40mozilla.org:110.3.0
AvailablePageFile: 1086324867072
AvailablePhysicalMemory: 11678961664
AvailableSwapMemory: 1076809039872
AvailableVirtualMemory: 47686053888
BackgroundTaskMode: 0
BuildID: 20230207142853
CrashTime: 1675789452
DesktopEnvironment: gnome
EMCheckCompatibility: true
HeadlessMode: 0
InstallTime: 1675783440
IsWayland: 0
Notes: Debian GNU/Linux bookworm/sidFP(D00-L1000-W0000000-T010)
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: default
SafeMode: 0
SecondsSinceLastCrash: 13
StartupCrash: 1
StartupTime: 1675789451
SubmittedFrom: Client
Throttleable: 1
TotalPageFile: 1144109608960
TotalPhysicalMemory: 67300569088
UptimeTS: .4096587
Vendor: Mozilla
Version: 111.0a1

This report also contains technical information about the state of the application when it crashed.

Expected results:

I expect to see the firefox window start so I can use it

sorry for the missing user agent string but since I cannot start it.....

the very same thing happens with the stable and nightly versions

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Please follow the steps on https://support.mozilla.org/kb/troubleshoot-firefox-crashes-closing-or-quitting and provide your Report ID here. Thanks!

Flags: needinfo?(vmxevilstar)

This could be a known setenv/getenv/libglvnd bug (bug 1794309):
Can the crash be prevented by starting Firefox with the following command?
$ __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json path/to/firefox

OS: Unspecified → Linux
Hardware: Unspecified → x86_64

(In reply to Darkspirit from comment #4)

This could be a known setenv/getenv/libglvnd bug (bug 1794309):
Can the crash be prevented by starting Firefox with the following command?
$ __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json path/to/firefox

in bash I should set the variable without the $ at the beginning of the line nevertheless I tried
unless there's a specific file I should set that variable in (looking at the syntax seems not /etc/profile nor $HOME/.bashrc) it doesn't work
were you talking about a wrapper script with a different interpreter ?

$ __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/bin/firefox
bash: $: command not found
$__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/bin/firefox
bash: =/usr/share/glvnd/egl_vendor.d/10_nvidia.json: No such file or directory
$EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/bin/firefox
bash: =/usr/share/glvnd/egl_vendor.d/10_nvidia.json: No such file or directory
$EGL_VENDOR_LIBRARY_FILENAMES="/usr/share/glvnd/egl_vendor.d/10_nvidia.json" /usr/bin/firefox
bash: =/usr/share/glvnd/egl_vendor.d/10_nvidia.json: No such file or directory
xevilstar@ghost:~$ EGL_VENDOR_LIBRARY_FILENAMES="/usr/share/glvnd/egl_vendor.d/10_nvidia.json" /usr/bin/firefox
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 97460
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

AdapterDeviceID: 0x249d
AdapterDriverVendor: nvidia/unknown
AdapterDriverVersion: 525.85.12.0
AdapterVendorID: 0x10de
Add-ons: formautofill%40mozilla.org:1.0.1,pictureinpicture%40mozilla.org:1.0.0,screenshots%40mozilla.org:39.0.1,webcompat-reporter%40mozilla.org:1.5.1,webcompat%40mozilla.org:110.3.0
AvailablePageFile: 1088172515328
AvailablePhysicalMemory: 30402596864
AvailableSwapMemory: 1076808974336
AvailableVirtualMemory: 48891838464
BackgroundTaskMode: 0
BuildID: 20230207142853
CrashTime: 1675834226
DesktopEnvironment: gnome
EMCheckCompatibility: true
HeadlessMode: 0
InstallTime: 1675783440
IsWayland: 0
Notes: Debian GNU/Linux bookworm/sidFP(D00-L1000-W0000000-T010)
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: default
SafeMode: 0
SecondsSinceLastCrash: 292
StartupCrash: 1
StartupTime: 1675834226
SubmittedFrom: Client
Throttleable: 1
TotalPageFile: 1144109539328
TotalPhysicalMemory: 67300564992
UptimeTS: .37519244
Vendor: Mozilla
Version: 111.0a1

This report also contains technical information about the state of the application when it crashed.

Flags: needinfo?(vmxevilstar)

(In reply to Andre Klapper from comment #3)

Please follow the steps on https://support.mozilla.org/kb/troubleshoot-firefox-crashes-closing-or-quitting and provide your Report ID here. Thanks!

cannot follow any steps if the window is not showing

$ = shell of your non-root user.
Please type: __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/bin/firefox
or
__EGL_VENDOR_LIBRARY_FILENAMES="/usr/share/glvnd/egl_vendor.d/10_nvidia.json" /usr/bin/firefox

Please run Firefox in gdb and try to get backtrace of the crash:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Running_application_in_debugger
Thanks.

Flags: needinfo?(vmxevilstar)
Priority: -- → P3

(In reply to Darkspirit from comment #7)

$ = shell of your non-root user.
Please type: __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/bin/firefox
or
__EGL_VENDOR_LIBRARY_FILENAMES="/usr/share/glvnd/egl_vendor.d/10_nvidia.json" /usr/bin/firefox

__EGL_VENDOR_LIBRARY_FILENAMES="/usr/share/glvnd/egl_vendor.d/10_nvidia.json" /usr/bin/firefox

ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 605547
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal..

crash

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json /usr/bin/firefox
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 605721
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
crash

Flags: needinfo?(vmxevilstar)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #8)

Please run Firefox in gdb and try to get backtrace of the crash:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Running_application_in_debugger
Thanks.

firefox -g -d gdb
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 605891
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

crash (no gdb prompt)

(In reply to vmxevilstar from comment #10)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #8)

Please run Firefox in gdb and try to get backtrace of the crash:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Running_application_in_debugger
Thanks.

firefox -g -d gdb
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 605891
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

crash (no gdb prompt)

So please run as

gdb ./firefox 
Flags: needinfo?(vmxevilstar)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #11)

(In reply to vmxevilstar from comment #10)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #8)

Please run Firefox in gdb and try to get backtrace of the crash:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Running_application_in_debugger
Thanks.

firefox -g -d gdb
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ExceptionHandler::GenerateDump cloned child 605891
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

crash (no gdb prompt)

So please run as

gdb ./firefox 

gdb ./firefox
GNU gdb (Debian 13.0.90.20230114-0.1) 13.0.90.20230114-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./firefox...
(No debugging symbols found in ./firefox)
(gdb)

Flags: needinfo?(vmxevilstar)

Execute gdb ./firefox,
then type run and press enter,
then wait until the crash occurs,
then type bt full and press enter.

Attached file gdb (deleted) —
(In reply to Darkspirit from comment #13) > Execute `gdb ./firefox`, > then type `run` and press enter, > then wait until the crash occurs, > then type `bt full` and press enter.

(In reply to Darkspirit from comment #13)

Execute gdb ./firefox,
then type run and press enter,
then wait until the crash occurs,
then type bt full and press enter.

gdb ./firefox
GNU gdb (Debian 13.0.90.20230114-0.1) 13.0.90.20230114-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./firefox...
(No debugging symbols found in ./firefox)
(gdb) run
Starting program: /usr/bin/firefox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff777e6c0 (LWP 4123978)]
[Thread 0x7ffff777e6c0 (LWP 4123978) exited]
[Detaching after fork from child process 4123979]
[Detaching after fork from child process 4123982]
[New Thread 0x7ffff777e6c0 (LWP 4123985)]
[New Thread 0x7fffe66cb6c0 (LWP 4123986)]
[New Thread 0x7fffe5eca6c0 (LWP 4123987)]
[New Thread 0x7fffe53ff6c0 (LWP 4123989)]
[New Thread 0x7fffe4bfe6c0 (LWP 4123990)]
[New Thread 0x7fffe68eb6c0 (LWP 4123991)]
[New Thread 0x7fffe68aa6c0 (LWP 4123992)]
[New Thread 0x7fffe68696c0 (LWP 4123993)]
[New Thread 0x7fffe56c96c0 (LWP 4123994)]
[New Thread 0x7fffe56886c0 (LWP 4123995)]
[New Thread 0x7fffe56476c0 (LWP 4123996)]
[New Thread 0x7fffe2aff6c0 (LWP 4123997)]
[New Thread 0x7fffe2abe6c0 (LWP 4123998)]
[New Thread 0x7fffe2a7d6c0 (LWP 4123999)]
[New Thread 0x7fffe00ff6c0 (LWP 4124000)]
[Detaching after fork from child process 4124001]
[New Thread 0x7fffe68286c0 (LWP 4124002)]
[Thread 0x7fffe00ff6c0 (LWP 4124000) exited]
[New Thread 0x7fffdf8bf6c0 (LWP 4124017)]
[New Thread 0x7fffe2a3c6c0 (LWP 4124018)]
[New Thread 0x7fffdf87e6c0 (LWP 4124019)]
[New Thread 0x7fffdedff6c0 (LWP 4124020)]
[New Thread 0x7fffdec006c0 (LWP 4124021)]
[New Thread 0x7fffdea016c0 (LWP 4124022)]
[New Thread 0x7fffde8026c0 (LWP 4124023)]
[New Thread 0x7fffde6036c0 (LWP 4124024)]
[New Thread 0x7fffde4046c0 (LWP 4124025)]
[New Thread 0x7fffde2056c0 (LWP 4124026)]
[New Thread 0x7fffde0066c0 (LWP 4124027)]
[New Thread 0x7fffdde076c0 (LWP 4124028)]
[New Thread 0x7fffdddc66c0 (LWP 4124029)]
[Thread 0x7fffdf8bf6c0 (LWP 4124017) exited]
[New Thread 0x7fffdf8bf6c0 (LWP 4124030)]
[New Thread 0x7fffddd636c0 (LWP 4124031)]
[New Thread 0x7fffdd2ff6c0 (LWP 4124032)]
[New Thread 0x7fffe00ff6c0 (LWP 4124034)]
[Thread 0x7fffe00ff6c0 (LWP 4124034) exited]
[New Thread 0x7fffe00ff6c0 (LWP 4124035)]
[New Thread 0x7fffdc0ff6c0 (LWP 4124036)]
[Thread 0x7fffe00ff6c0 (LWP 4124035) exited]
[New Thread 0x7fffe00ff6c0 (LWP 4124037)]
[New Thread 0x7fffdb5ff6c0 (LWP 4124038)]
[Thread 0x7fffe00ff6c0 (LWP 4124037) exited]
[Thread 0x7fffdc0ff6c0 (LWP 4124036) exited]
[Thread 0x7fffdb5ff6c0 (LWP 4124038) exited]
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

Thread 1 "firefox" received signal SIGSEGV, Segmentation fault.
0x00007fffce8d574d in ?? () from /usr/lib/x86_64-linux-gnu/dri/zink_dri.so
(gdb) bt full
#0 0x00007fffce8d574d in () at /usr/lib/x86_64-linux-gnu/dri/zink_dri.so
#1 0x00007fffce2b5d6f in () at /usr/lib/x86_64-linux-gnu/dri/zink_dri.so
#2 0x00007fffdc222d23 in () at /lib/x86_64-linux-gnu/libgbm.so.1
#3 0x00007fffdc222ea0 in () at /lib/x86_64-linux-gnu/libgbm.so.1
#4 0x00007fffdc22308b in () at /lib/x86_64-linux-gnu/libgbm.so.1
#5 0x00007fffdc22175c in () at /lib/x86_64-linux-gnu/libgbm.so.1
#6 0x00007fffdc221894 in gbm_create_device () at /lib/x86_64-linux-gnu/libgbm.so.1
#7 0x00007ffff05a4fad in mozilla::widget::nsGbmLib::CreateDevice(int) () at /usr/lib/firefox/libxul.so
#8 0x00007ffff058415f in mozilla::widget::nsDMABufDevice::Configure(nsTSubstring<char>&) () at /usr/lib/firefox/libxul.so
#9 0x00007fffee1dcb02 in gfxPlatformGtk::InitDmabufConfig() () at /usr/lib/firefox/libxul.so
#10 0x00007fffee1dc540 in gfxPlatformGtk::gfxPlatformGtk() () at /usr/lib/firefox/libxul.so
#11 0x00007fffee1d3912 in gfxPlatform::Init() () at /usr/lib/firefox/libxul.so
#12 0x00007fffee1d4e20 in gfxPlatform::InitializeCMS() () at /usr/lib/firefox/libxul.so
#13 0x00007ffff05469e1 in nsXPLookAndFeel::GetUncachedColor(mozilla::StyleSystemColor, mozilla::ColorScheme, mozilla::LookAndFeel::UseStandins) () at /usr/lib/firefox/libxul.so
#14 0x00007ffff05466b4 in nsXPLookAndFeel::GetColorValue(mozilla::StyleSystemColor, mozilla::ColorScheme, mozilla::LookAndFeel::UseStandins, unsigned int&) () at /usr/lib/firefox/libxul.so
#15 0x00007ffff0547bf2 in mozilla::LookAndFeel::GetColor(mozilla::StyleSystemColor, mozilla::ColorScheme, mozilla::LookAndFeel::UseStandins) () at /usr/lib/firefox/libxul.so
#16 0x00007ffff05158a0 in mozilla::widget::ThemeColors::RecomputeAccentColors() () at /usr/lib/firefox/libxul.so
#17 0x00007ffff051574b in mozilla::widget::Theme::LookAndFeelChanged() () at /usr/lib/firefox/libxul.so
#18 0x00007ffff0545ae7 in nsXPLookAndFeel::GetInstance() () at /usr/lib/firefox/libxul.so
#19 0x00007ffff0547fe1 in mozilla::LookAndFeel::GetThemeInfo(nsTSubstring<char>&) () at /usr/lib/firefox/libxul.so
#20 0x00007fffed3ac8fd in nsSystemInfo::Init() () at /usr/lib/firefox/libxul.so
#21 0x00007fffed407655 in mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) () at /usr/lib/firefox/libxul.so
#22 0x00007fffed416634 in nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor> >&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) ()
at /usr/lib/firefox/libxul.so
#23 0x00007fffed4169bc in nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) () at /usr/lib/firefox/libxul.so
#24 0x00007fffed40eff2 in mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const () at /usr/lib/firefox/libxul.so
#25 0x00007fffed392cfb in nsCOMPtr_base::assign_from_helper(nsCOMPtr_helper const&, nsID const&) () at /usr/lib/firefox/libxul.so
#26 0x00007fffedd43673 in xpc::Services_Resolve(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::PropertyKey>, bool*) () at /usr/lib/firefox/libxul.so
#27 0x00007ffff228e229 in js::NativeGetProperty(JSContext*, JS::Handle<js::NativeObject*>, JS::Handle<JS::Value>, JS::Handle<JS::PropertyKey>, JS::MutableHandle<JS::Value>) () at /usr/lib/firefox/libxul.so
#28 0x00007ffff21890ae in js::GetProperty(JSContext*, JS::Handle<JS::Value>, JS::Handle<js::PropertyName*>, JS::MutableHandle<JS::Value>) () at /usr/lib/firefox/libxul.so
#29 0x00007ffff217e65a in Interpret(JSContext*, js::RunState&) () at /usr/lib/firefox/libxul.so
#30 0x00007ffff2178b64 in js::RunScript(JSContext*, js::RunState&) () at /usr/lib/firefox/libxul.so
#31 0x00007ffff2186ad1 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) () at /usr/lib/firefox/libxul.so
#32 0x00007ffff2187051 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) () at /usr/lib/firefox/libxul.so
#33 0x00007ffff2187711 in js::CallGetter(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::MutableHandle<JS::Value>) () at /usr/lib/firefox/libxul.so
#34 0x00007ffff228e6cd in js::NativeGetProperty(JSContext*, JS::Handle<js::NativeObject*>, JS::Handle<JS::Value>, JS::Handle<JS::PropertyKey>, JS::MutableHandle<JS::Value>) () at /usr/lib/firefox/libxul.so
#35 0x00007ffff21890ae in js::GetProperty(JSContext*, JS::Handle<JS::Value>, JS::Handle<js::PropertyName*>, JS::MutableHandle<JS::Value>) () at /usr/lib/firefox/libxul.so
#36 0x00007ffff217e65a in Interpret(JSContext*, js::RunState&) () at /usr/lib/firefox/libxul.so
#37 0x00007ffff2178b64 in js::RunScript(JSContext*, js::RunState&) () at /usr/lib/firefox/libxul.so
#38 0x00007ffff2186ad1 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) () at /usr/lib/firefox/libxul.so
#39 0x00007ffff2187051 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) () at /usr/lib/firefox/libxul.so
#40 0x00007ffff21e2952 in JS_CallFunctionValue(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) () at /usr/lib/firefox/libxul.so
--Type <RET> for more, q to quit, c to continue without paging--
#41 0x00007fffedd58233 in nsXPCWrappedJS::CallMethod(unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) () at /usr/lib/firefox/libxul.so
#42 0x00007fffed45325c in PrepareAndDispatch () at /usr/lib/firefox/libxul.so
#43 0x00007fffed45268b in SharedStub () at /usr/lib/firefox/libxul.so
#44 0x00007fffed41400b in NS_CreateServicesFromCategory(char const*, nsISupports*, char const*, char16_t const*) () at /usr/lib/firefox/libxul.so
#45 0x00007ffff2017f76 in nsXREDirProvider::DoStartup() () at /usr/lib/firefox/libxul.so
#46 0x00007ffff200ae76 in XREMain::XRE_mainRun() () at /usr/lib/firefox/libxul.so
#47 0x00007ffff200bb3d in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) () at /usr/lib/firefox/libxul.so
#48 0x00007ffff200bead in XRE_main(int, char**, mozilla::BootstrapConfig const&) () at /usr/lib/firefox/libxul.so
#49 0x0000555555580aca in main ()
(gdb)
(gdb)
(gdb) exit
A debugging session is active.

Inferior 1 [process 4123975] will be killed.

Quit anyway? (y or n) y

So it crashes in zink_dri.so which is OpenGL/Vulkan translation layer. Can you install debuginfo packages for /usr/lib/x86_64-linux-gnu/dri/zink_dri.so and /lib/x86_64-linux-gnu/libgbm.so.1 and try to get the backtrace again?
Thanks.

Flags: needinfo?(vmxevilstar)

sorry I have the nvidia commercial drivers and libs installed by bin and cannot switch to mesa

Flags: needinfo?(vmxevilstar)

Gbm is Mesa, but not Mesa EGL. The proprietary Nvidia driver should tell Mesa Gbm that it wants to be used as Gbm backend.

Keywords: crash
Summary: firefox crashes → Startup crash because Gbm inexplicably calls into zink_dri.so (OpenGL/Vulkan translation layer) while the proprietary Nvidia driver is used

(In reply to Darkspirit from comment #18)

Gbm is Mesa, but not Mesa EGL. The proprietary Nvidia driver should tell Mesa Gbm that it wants to be used as Gbm backend.

nice ... what can I do ? :)

Try $ sudo apt install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
and then try gbm again.

#2 0x00007fffdc222d23 in () at /lib/x86_64-linux-gnu/libgbm.so.1

() should then become the actual function.

(In reply to Darkspirit from comment #20)

Try $ sudo apt install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
and then try gbm again.

#2 0x00007fffdc222d23 in () at /lib/x86_64-linux-gnu/libgbm.so.1

() should then become the actual function.

root@ghost:# apt install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libgbm1-dbgsym
E: Unable to locate package mesa-vulkan-drivers-dbgsym
E: Unable to locate package libglapi-mesa-dbgsym
E: Unable to locate package libgl1-mesa-dri-dbgsym
E: Unable to locate package libegl-mesa0-dbgsym
root@ghost:
# apt-get install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libgbm1-dbgsym
E: Unable to locate package mesa-vulkan-drivers-dbgsym
E: Unable to locate package libglapi-mesa-dbgsym
E: Unable to locate package libgl1-mesa-dri-dbgsym
E: Unable to locate package libegl-mesa0-dbgsym
root@ghost:# apt-get update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian sid InRelease
Hit:4 http://deb.debian.org/debian experimental InRelease
Hit:5 http://deb.debian.org/debian unstable InRelease
Hit:6 http://deb.debian.org/debian bookworm-updates InRelease
Hit:7 https://repo.skype.com/deb stable InRelease
Hit:8 https://dl.winehq.org/wine-builds/debian bookworm InRelease
Hit:9 https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 InRelease
Hit:10 http://deb.anydesk.com all InRelease
Get:11 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Hit:12 https://deb.opera.com/opera-stable stable InRelease
Ign:13 http://download.yajhfc.de/repository/apt stable/ InRelease
Hit:14 http://packages.microsoft.com/repos/code stable InRelease
Hit:15 http://download.yajhfc.de/repository/apt stable/ Release
Hit:16 https://repo.steampowered.com/steam stable InRelease
Hit:17 https://linux.teamviewer.com/deb stable InRelease
Hit:18 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:19 https://packages.microsoft.com/repos/edge stable InRelease
Get:20 https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye InRelease [3083 B]
Get:21 https://packages.microsoft.com/debian/11/prod bullseye InRelease [3083 B]
Hit:22 https://deb.nodesource.com/node_12.x bookworm InRelease
Hit:24 https://packages.microsoft.com/repos/msr-seccrypt buster InRelease
Hit:25 https://packages.microsoft.com/repos/msr-seccrypt-debian buster InRelease
Hit:26 https://packages.microsoft.com/repos/vscode stable InRelease
Hit:27 https://packages.microsoft.com/repos/ms-teams stable InRelease
Fetched 23.3 kB in 3s (9092 B/s)
Reading package lists... Done
root@ghost:
# apt-get install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libgbm1-dbgsym
E: Unable to locate package mesa-vulkan-drivers-dbgsym
E: Unable to locate package libglapi-mesa-dbgsym
E: Unable to locate package libgl1-mesa-dri-dbgsym
E: Unable to locate package libegl-mesa0-dbgsym
root@ghost:# apt-get -t experimentall install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
Reading package lists... Done
E: The value 'experimentall' is invalid for APT::Default-Release as such a release is not available in the sources
root@ghost:
# apt-get -t experimental install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libgbm1-dbgsym
E: Unable to locate package mesa-vulkan-drivers-dbgsym
E: Unable to locate package libglapi-mesa-dbgsym
E: Unable to locate package libgl1-mesa-dri-dbgsym
E: Unable to locate package libegl-mesa0-dbgsym

root@ghost:# apt-cache search libgbm1-dbgsym
root@ghost:
# apt-cache search libgbm1
libgbm1 - generic buffer management API -- runtime
root@ghost:# apt-cache search libgbm1*
libgbm-dev - generic buffer management API -- development files
libgbm1 - generic buffer management API -- runtime
root@ghost:
# apt-cache search mesa-vulkan-drivers-dbgsym
root@ghost:# apt-cache search mesa-vulkan-drivers
mesa-vulkan-drivers - Mesa Vulkan graphics drivers
root@ghost:
# apt-cache search libglapi-mesa-dbgsym
root@ghost:# apt-cache search libglapi-mesa
libglapi-mesa - free implementation of the GL API -- shared library
root@ghost:
# apt-cache search libgl1-mesa-dri-dbgsym
root@ghost:# apt-cache search libgl1-mesa-dri
libgl1-mesa-dri - free implementation of the OpenGL API -- DRI modules
libglx-mesa0 - free implementation of the OpenGL API -- GLX vendor library
xserver-xorg-video-nouveau - X.Org X server -- Nouveau display driver
root@ghost:
# apt-cache search libegl-mesa0-dbgsym
root@ghost:~# apt-cache search libegl-mesa0
libegl-mesa0 - free implementation of the EGL API -- Mesa vendor library

of course I did apt-get update first

  1. Please add this to /etc/apt/sources.list:
    deb http://deb.debian.org/debian-debug/ bookworm-debug main
    deb http://deb.debian.org/debian-debug/ unstable-debug main
    deb http://deb.debian.org/debian-debug/ experimental-debug main
    
    https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols
  2. $ sudo apt update
  3. $ sudo apt install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
  4. $ gdb ./firefox,
    type run and press enter,
    wait until the crash occurs,
    type bt full and press enter.

(In reply to Darkspirit from comment #23)

  1. Please add this to /etc/apt/sources.list:
    deb http://deb.debian.org/debian-debug/ bookworm-debug main
    deb http://deb.debian.org/debian-debug/ unstable-debug main
    deb http://deb.debian.org/debian-debug/ experimental-debug main
    
    https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols
  2. $ sudo apt update
  3. $ sudo apt install libgbm1-dbgsym mesa-vulkan-drivers-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym libegl-mesa0-dbgsym
  4. $ gdb ./firefox,
    type run and press enter,
    wait until the crash occurs,
    type bt full and press enter.

I guess those packages aren't in experimental yet

The following packages have unmet dependencies:
libegl-mesa0-dbgsym : Depends: libegl-mesa0 (= 22.3.5-1) but 23.0.0rc1-1 is to be installed
libgbm1-dbgsym : Depends: libgbm1 (= 22.3.5-1) but 23.0.0
rc1-1 is to be installed
libgl1-mesa-dri-dbgsym : Depends: libgl1-mesa-dri (= 22.3.5-1) but 23.0.0rc1-1 is to be installed
libglapi-mesa-dbgsym : Depends: libglapi-mesa (= 22.3.5-1) but 23.0.0
rc1-1 is to be installed
mesa-vulkan-drivers-dbgsym : Depends: mesa-vulkan-drivers (= 22.3.5-1) but 23.0.0~rc1-1 is to be installed

all fixed in latest firefox 109.0 deb package

Closing, Thanks.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: