Bug 2337082 - [abrt] egl-utils: drisw_init_screen(): eglinfo killed by SIGSEGV
Summary: [abrt] egl-utils: drisw_init_screen(): eglinfo killed by SIGSEGV
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa-demos
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Airlie
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b70be64cf02319dfbf89b8889a2...
: 2336870 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-11 08:55 UTC by MicMor
Modified: 2025-04-23 13:41 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (2.23 KB, text/plain)
2025-01-11 08:55 UTC, MicMor
no flags Details
File: maps (3.99 KB, text/plain)
2025-01-11 08:55 UTC, MicMor
no flags Details
File: exploitable (117 bytes, text/plain)
2025-01-11 08:55 UTC, MicMor
no flags Details
File: open_fds (1.30 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: cpuinfo (3.21 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: core_backtrace (3.06 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: backtrace (43.95 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: proc_pid_status (1.48 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: mountinfo (4.00 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: os_info (719 bytes, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: dso_list (461 bytes, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
File: limits (1.29 KB, text/plain)
2025-01-11 08:56 UTC, MicMor
no flags Details
MESA_DEBUG (66.95 KB, text/plain)
2025-01-13 13:12 UTC, MicMor
no flags Details
dnf repoquery --info --installed mesa* (13.04 KB, text/plain)
2025-01-13 13:18 UTC, MicMor
no flags Details

Description MicMor 2025-01-11 08:55:52 UTC
Description of problem:
Error (crash) with eglinfo when launching it (command line or GUI)

Version-Release number of selected component:
egl-utils-9.0.0-8.fc41

Additional info:
reporter:       libreport-2.17.15
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.kinfocenter
reason:         eglinfo killed by SIGSEGV
rootdir:        /
package:        egl-utils-9.0.0-8.fc41
journald_cursor: s=6fcc4972b72746bf8013e19c98099f8f;i=350cc0;b=798698b003834747a9fcb19bfc48aab6;m=70b641a6;t=62b6a32023848;x=5a09fc655286cbd6
kernel:         6.12.9-200.fc41.x86_64
uid:            1000
crash_function: drisw_init_screen
cmdline:        /usr/bin/eglinfo
runlevel:       N 5
backtrace_rating: 4
type:           CCpp
executable:     /usr/bin/eglinfo
comment:        Error (crash) with eglinfo when launching it (command line or GUI)

Truncated backtrace:
Thread no. 1 (9 frames)
 #0 drisw_init_screen at ../src/gallium/frontends/dri/drisw.c:623
 #1 driCreateNewScreen3 at ../src/gallium/frontends/dri/dri_util.c:144
 #2 dri2_create_screen at ../src/egl/drivers/dri2/egl_dri2.c:825
 #3 dri2_initialize_device at ../src/egl/drivers/dri2/platform_device.c:362
 #4 dri2_initialize at ../src/egl/drivers/dri2/egl_dri2.c:912
 #5 eglInitialize at ../src/egl/main/eglapi.c:719
 #6 doOneDisplay at ../src/egl/opengl/eglinfo.c:529
 #7 doOneDevice at ../src/egl/opengl/eglinfo.c:647
 #8 doDevices at ../src/egl/opengl/eglinfo.c:673

Comment 1 MicMor 2025-01-11 08:55:56 UTC
Created attachment 2065474 [details]
File: environ

Comment 2 MicMor 2025-01-11 08:55:58 UTC
Created attachment 2065475 [details]
File: maps

Comment 3 MicMor 2025-01-11 08:55:59 UTC
Created attachment 2065476 [details]
File: exploitable

Comment 4 MicMor 2025-01-11 08:56:00 UTC
Created attachment 2065477 [details]
File: open_fds

Comment 5 MicMor 2025-01-11 08:56:02 UTC
Created attachment 2065478 [details]
File: cpuinfo

Comment 6 MicMor 2025-01-11 08:56:03 UTC
Created attachment 2065479 [details]
File: core_backtrace

Comment 7 MicMor 2025-01-11 08:56:05 UTC
Created attachment 2065480 [details]
File: backtrace

Comment 8 MicMor 2025-01-11 08:56:07 UTC
Created attachment 2065481 [details]
File: proc_pid_status

Comment 9 MicMor 2025-01-11 08:56:08 UTC
Created attachment 2065482 [details]
File: mountinfo

Comment 10 MicMor 2025-01-11 08:56:10 UTC
Created attachment 2065483 [details]
File: os_info

Comment 11 MicMor 2025-01-11 08:56:11 UTC
Created attachment 2065484 [details]
File: dso_list

Comment 12 MicMor 2025-01-11 08:56:12 UTC
Created attachment 2065485 [details]
File: limits

Comment 13 MicMor 2025-01-11 09:17:05 UTC
Same bug: https://bugzilla.redhat.com/show_bug.cgi?id=2336870

Comment 14 José Expósito 2025-01-13 11:43:33 UTC
The issue is that `screen->swrast_loader` is NULL for software rendering in `drisw_init_screen()`. My guess is that there is an issue in `setupLoaderExtensions()`, but, unfortunately, I wasn't able to reproduce the bug.

Does running the command with this environment variables print more information? `$ MESA_DEBUG=1 LIBGL_DEBUG=verbose eglinfo`.

Are you using mesa from RPM Fusion? I wonder if the issue could be a mismatch between different mesa packages, but in that case, I think that "DRI driver not from this Mesa build ('X' vs 'Y')" should be printed:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/loader/loader.c?ref_type=heads#L767

Comment 15 José Expósito 2025-01-13 11:56:13 UTC
The backtrace looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=2333711

Comment 16 MicMor 2025-01-13 13:12:01 UTC
Created attachment 2065814 [details]
MESA_DEBUG

MESA_DEBUG=1 LIBGL_DEBUG=verbose eglinfo

Comment 17 MicMor 2025-01-13 13:18:27 UTC
Created attachment 2065815 [details]
dnf repoquery --info --installed mesa*

Comment 18 José Expósito 2025-01-13 15:38:42 UTC
*** Bug 2336870 has been marked as a duplicate of this bug. ***

Comment 19 José Expósito 2025-01-13 15:42:03 UTC
Thanks for the logs. I don't see relevant information there. Also, I tried to reproduce in a different PC and in a VM without luck.

I'd suggest to report it upstream, where it'll get more attention from the mesa developers:
https://gitlab.freedesktop.org/mesa/mesa/-/issues

Comment 21 Karpiu 2025-02-27 20:52:24 UTC
run inxi -Gxx in Konsole


reporter:       libreport-2.17.15
type:           CCpp
reason:         eglinfo killed by SIGSEGV
journald_cursor: s=df8329cae32f420ab5c8371d324ec3b4;i=1af661;b=e513851dfb8140c28eb351422bd24067;m=2eba659b4;t=62f25bfc70a73;x=84baed3be1a66870
executable:     /usr/bin/eglinfo
cmdline:        /bin/eglinfo
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole-79549.scope/tab(79563).scope
rootdir:        /
uid:            1000
kernel:         6.12.15-200.fc41.x86_64
package:        egl-utils-9.0.0-8.fc41
runlevel:       N 5
backtrace_rating: 4
crash_function: drisw_init_screen
comment:        run inxi -Gxx in Konsole

Comment 22 Yaroslav Sidlovsky 2025-03-19 07:44:11 UTC
Crash when opening kinfocenter


reporter:       libreport-2.17.15
cmdline:        /usr/bin/eglinfo
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.kinfocenter
kernel:         6.13.6-200.fc41.x86_64
crash_function: drisw_init_screen
journald_cursor: s=e6ce1fe61c7c42f29e9501e5e041afff;i=28957b62;b=147f9936558843e788e4adf8d19f6175;m=26c8b505;t=630ad1fe06c53;x=61c90b7f1d6da3a6
reason:         eglinfo killed by SIGSEGV
runlevel:       N 5
package:        egl-utils-9.0.0-8.fc41
comment:        Crash when opening kinfocenter
type:           CCpp
executable:     /usr/bin/eglinfo
rootdir:        /
backtrace_rating: 4
uid:            1000

Comment 23 golovoslon 2025-03-23 13:48:49 UTC
I opened "More System Information" window in the KDE settings (System, About this System), then went to the Graphics section, OpenGL (EGL). There it was written there is a crash.


reporter:       libreport-2.17.15
type:           CCpp
reason:         eglinfo killed by SIGSEGV
journald_cursor: s=859616f797ad40a2934a00eb0d444f05;i=2b38df;b=11f90f60227147479abe419d981864da;m=183621f5;t=631029beec957;x=e4375f49d210ba76
executable:     /usr/bin/eglinfo
cmdline:        /usr/bin/eglinfo
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.kinfocenter
rootdir:        /
uid:            1000
kernel:         6.13.7-200.fc41.x86_64
package:        egl-utils-9.0.0-8.fc41
runlevel:       N 5
backtrace_rating: 4
crash_function: drisw_init_screen
comment:        I opened "More System Information" window in the KDE settings (System, About this System), then went to the Graphics section, OpenGL (EGL). There it was written there is a crash.

Comment 24 Karpiu 2025-03-25 20:09:01 UTC
run in Konsol:
inxi -Fzx


reporter:       libreport-2.17.15
type:           CCpp
reason:         eglinfo killed by SIGSEGV
journald_cursor: s=df8329cae32f420ab5c8371d324ec3b4;i=207d7a;b=2f38551f69594e82be9ccf33e3bcdcbf;m=2c6918e9d;t=631304093bae3;x=24b8cce2d66d06f3
executable:     /usr/bin/eglinfo
cmdline:        /bin/eglinfo
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.kde.konsole
rootdir:        /
uid:            1000
kernel:         6.13.8-200.fc41.x86_64
package:        egl-utils-9.0.0-8.fc41
runlevel:       N 5
backtrace_rating: 4
crash_function: drisw_init_screen

Comment 25 MicMor 2025-04-08 11:50:21 UTC
For my part, the problem with "eglinfo" has been solved update "mesa-25.0.3-2.fc41 "

Comment 26 MicMor 2025-04-23 13:41:45 UTC
It appeared again with fedora 42. The problem seems to come back according to the detected GPUs
 
proc 1: Intel® HD Graphics 630
proc 2: The Gallium LLVMpipe driver 

OK, no error with egl

proc 1: Intel® HD Graphics 630
proc2: NVIDIA GeForce GTX 1050 Ti

NOK


Note You need to log in before you can comment on or make changes to this bug.