FS#76345 - [udisks2] random udisksd crash

Attached to Project: Arch Linux
Opened by Xavier de Gaye (xdegaye) - Sunday, 30 October 2022, 07:46 GMT
Last edited by Balló György (City-busz) - Tuesday, 06 June 2023, 12:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
The crash occurs randomly upon udisksd exit as described in upstream issue #1024 and both backtraces look similar. Issue #1024 is supposedly fixed by the merge of PR #926 fixing a memory corruption but this fix is not included in 2.9.4 release and in the tarball that is used in building archlinux udisks2 2.9.4-1.
See the links to both upstream issues below.
See also the description at https://bbs.archlinux.org/viewtopic.php?id=280810

Additional info:
* package version(s): udisks2 version: 2.9.4-1

* config and/or log files etc.
Here is the gdb backtrace:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/udisks2/udisksd'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f44db3c664c in ?? () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f44daba0400 (LWP 3298))]
(gdb) bt
#0 0x00007f44db3c664c in () at /usr/lib/libc.so.6
#1 0x00007f44db376958 in raise () at /usr/lib/libc.so.6
#2 0x00007f44db36053d in abort () at /usr/lib/libc.so.6
#3 0x00007f44db54706a in () at /usr/lib/libglib-2.0.so.0
#4 0x00007f44db5a28d0 in g_assertion_message_expr () at /usr/lib/libglib-2.0.so.0
#5 0x00007f44db753927 in () at /usr/lib/libgio-2.0.so.0
#6 0x00007f44dbb19aae in () at /lib64/ld-linux-x86-64.so.2
#7 0x00007f44db378fa5 in () at /usr/lib/libc.so.6
#8 0x00007f44db379120 in () at /usr/lib/libc.so.6
#9 0x00007f44db361297 in () at /usr/lib/libc.so.6
#10 0x00007f44db36134a in __libc_start_main () at /usr/lib/libc.so.6
#11 0x00005558ea51149e in _start ()

* link to upstream bug reports:
https://github.com/storaged-project/udisks/issues/1024
https://github.com/storaged-project/udisks/pull/926

Steps to reproduce:
The bug occurs randomly upon sdiskd exit
This task depends upon

Closed by  Balló György (City-busz)
Tuesday, 06 June 2023, 12:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  udisks2 2.9.4-4
Comment by Xavier de Gaye (xdegaye) - Tuesday, 01 November 2022, 07:17 GMT
udisks issue #1024 at https://github.com/storaged-project/udisks/issues/1024 is closed now with the comment:

"Distributors are free to include the menioned change in their packages. Otherwise this will be included in the upcoming 2.10.0 release (in a couple of months hopefully)."

This bug may occur only upon exit, so it is only annoying because the core dump is 44 MB and no one likes to see a core dump without knowing what is triggering it.
Comment by Chih-Hsuan Yen (yan12125) - Wednesday, 04 January 2023, 16:57 GMT
I can confirm backporting https://github.com/storaged-project/udisks/commit/6464e3083c27b9e4d97848b9e69e862f265511d5 fixes core dumps upon udisks2 exit. By the way, on my machine unpatched udisks crashes upon exit since glib2 2.74 100% of time instead of randomly.
Comment by Moviuro (Moviuro) - Monday, 27 February 2023, 16:43 GMT
PKGBUILD patch, if it helps.

Loading...