Bug 2219572 - [abrt] xorg-x11-server-Xorg: __pthread_mutex_lock_full(): Xorg killed by SIGABRT
Summary: [abrt] xorg-x11-server-Xorg: __pthread_mutex_lock_full(): Xorg killed by SIGABRT
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-server
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:1be8e4f7118bd0b75331fb2ba2b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-04 11:40 UTC by Patrick Monnerat
Modified: 2023-08-16 07:15 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: limits (1.29 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: dso_list (619 bytes, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: core_backtrace (6.75 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: open_fds (4.44 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: os_info (693 bytes, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: backtrace (62.73 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: environ (68 bytes, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: proc_pid_status (1.37 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: cpuinfo (2.22 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: mountinfo (3.14 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
File: maps (3.94 KB, text/plain)
2023-07-04 11:40 UTC, Patrick Monnerat
no flags Details
Xorg server log (20.81 KB, text/plain)
2023-07-04 16:10 UTC, Patrick Monnerat
no flags Details

Description Patrick Monnerat 2023-07-04 11:40:30 UTC
Description of problem:


Version-Release number of selected component:
xorg-x11-server-Xorg-1.20.14-23.fc39

Additional info:
reporter:       libreport-2.17.11
cgroup:         0::/system.slice/lightdm.service
kernel:         6.5.0-0.rc0.20230628git6aeadf7896bf.2.fc39.x86_64
package:        xorg-x11-server-Xorg-1.20.14-23.fc39
uid:            0
crash_function: __pthread_mutex_lock_full
backtrace_rating: 4
runlevel:       N 5
executable:     /usr/libexec/Xorg
journald_cursor: s=248aa2e59483464baf4cda2e539a2bbb;i=1206cb;b=f3de8567c1574752948d972b808025e3;m=2900fa27;t=5ff552fba3242;x=585f2d3e2a87700a
reason:         Xorg killed by SIGABRT
cmdline:        /usr/libexec/Xorg -core -noreset :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
comment:        
type:           CCpp
rootdir:        /

Truncated backtrace:
Thread no. 1 (18 frames)
 #0 __pthread_mutex_lock_full at pthread_mutex_lock.c:358
 #1 sigset at ../sysdeps/posix/sigset.c:35
 #2 get_rounding_mode at ../sysdeps/generic/get-rounding-mode.h:118
 #3 round_and_return at ../stdlib/strtod_l.c:216
 #9 __sigismember at ../sysdeps/unix/sysv/linux/sigsetops.h:96
 #10 sigset at ../sysdeps/posix/sigset.c:67
 #12 get_rounding_mode at ../sysdeps/generic/get-rounding-mode.h:118
 #13 round_and_return at ../stdlib/strtod_l.c:216
 #14 _IO_acquire_lock_fct at /usr/src/debug/glibc-2.37.9000-15.fc39.x86_64/libio/libioP.h:981
 #15 _IO_peekc_locked at peekc.c:37
 #16 _nl_find_msg at dcigettext.c:885
 #17 dixGetPrivateAddr at dri2/../../../include/privates.h:121
 #19 dixLookupPrivate at dri2/../../../include/privates.h:164
 #20 DRI2Authenticate at dri2/dri2.c:1367
 #21 ProcDRI2Authenticate at dri2/dri2ext.c:156
 #22 ProcDRI2Dispatch at dri2/dri2ext.c:609
 #23 Dispatch at ../../dix/dispatch.c:478
 #24 dix_main at ../../dix/main.c:276

Comment 1 Patrick Monnerat 2023-07-04 11:40:34 UTC
Created attachment 1973970 [details]
File: limits

Comment 2 Patrick Monnerat 2023-07-04 11:40:36 UTC
Created attachment 1973971 [details]
File: dso_list

Comment 3 Patrick Monnerat 2023-07-04 11:40:37 UTC
Created attachment 1973972 [details]
File: core_backtrace

Comment 4 Patrick Monnerat 2023-07-04 11:40:39 UTC
Created attachment 1973973 [details]
File: open_fds

Comment 5 Patrick Monnerat 2023-07-04 11:40:41 UTC
Created attachment 1973974 [details]
File: os_info

Comment 6 Patrick Monnerat 2023-07-04 11:40:42 UTC
Created attachment 1973975 [details]
File: backtrace

Comment 7 Patrick Monnerat 2023-07-04 11:40:44 UTC
Created attachment 1973976 [details]
File: environ

Comment 8 Patrick Monnerat 2023-07-04 11:40:46 UTC
Created attachment 1973977 [details]
File: proc_pid_status

Comment 9 Patrick Monnerat 2023-07-04 11:40:47 UTC
Created attachment 1973978 [details]
File: cpuinfo

Comment 10 Patrick Monnerat 2023-07-04 11:40:49 UTC
Created attachment 1973979 [details]
File: mountinfo

Comment 11 Patrick Monnerat 2023-07-04 11:40:50 UTC
Created attachment 1973980 [details]
File: maps

Comment 12 Patrick Monnerat 2023-07-04 11:52:30 UTC
Occurs on an up-to-date rawhide VM (F37 host) when login in Mate.
Cannot run GUI since ~Q4 2022.
Thanks for investigating.

Comment 13 Olivier Fourdan 2023-07-04 13:57:26 UTC
Can you please attach the Xorg logs of the system with the crash?

Comment 14 Patrick Monnerat 2023-07-04 16:10:50 UTC
Created attachment 1974028 [details]
Xorg server log

Comment 15 Olivier Fourdan 2023-07-05 07:34:44 UTC
Nothing stands out in those logs (I do not even see the crash there).

FWIW, nothing has changed in the Xorg server for a very long time, so I suspect some other change might be causing this.

 * How reproducible is this?
 * Can you try with the "modesetting" driver instead of "qxl"?

Comment 16 Patrick Monnerat 2023-07-05 09:27:11 UTC
> Nothing stands out in those logs (I do not even see the crash there).

That's why my crash description is not more detailed :-(
I cannot even be sure the initial cause is in xorg server, but it does abort!

As it occurs in rawhide, I did not report it earlier (and also because reporting from text mode is not very ergonomic!). It started failing after an update around oct or nov 2022. This is a quite old rawide instance, but is up-to-date. I did not try creating a new instance.


> How reproducible is this?

Almost always. I succeeded (< 1%) starting it some months ago by switching the window focus to another one, but had'nt anymore successful try since then. I did not really bound the success to my mouse handling, and think it was just occasional "luck".

> Can you try with the "modesetting" driver instead of "qxl"?

Tried the modesetting driver using a config file without success.
I also tried with other video "hardware" from virtmgr: no luck.

Some more info:
- I tried creating a brand new user (to avoid possible user-defined outdated files) and login into it: still crashes.
- It sometimes has the time to show the panel or even the background before crashing. Seems to depend on concurrency and disk cache state.
- If I hide the window during login (minimize or switch to a text screen) and wait a long time, it seems to crash only at the time I bring it back (this might be an impression).
- The login screen (lighdm+gtkgreeter) is OK.
- If I start it with "startx", it crashes immediately.

Comment 17 Olivier Fourdan 2023-07-05 10:12:08 UTC
AFAICS, it seems to fail in DRI2Authenticate().

Does it make any difference if you disable DRI2 entirely?

From "man xorg.conf", in the "ServerFlag" section of your xorg.conf:

       Option "DRI2" "boolean"
              enable or disable DRI2. DRI2 is disabled by default.

Comment 18 Patrick Monnerat 2023-07-05 17:23:36 UTC
> Does it make any difference if you disable DRI2 entirely?
With Option "DRI2" "off", it works !

And moreover, the crazy thing is it has almost completely unblocked the situation: after returning to the previous state (not disabling DRI2), the crash only occurs less than 10% of logins, even after cold rebooting the host.
I don't say the problem has gone, I just say it's hard now to reproduce it and I still do not have any hint about a procedure to reproduce or avoid.
Thanks for your work on it.

Comment 19 Fedora Release Engineering 2023-08-16 07:15:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


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