You are not logged in.

#1 2023-05-24 11:10:29

GuangDai
Member
Registered: 2022-01-28
Posts: 6

[Bug] util-linux seems break udisks2, same in 2.39.2

edit: tested in 2.39.2,  bug still exists. (2023-05-25 21:14 UTC+8)
gdb.txt:

#0  0x00007fd45bc5926c in  () at /usr/lib/libc.so.6
#1  0x00007fd45bc09a08 in raise () at /usr/lib/libc.so.6
#2  0x00007fd45bbf2538 in abort () at /usr/lib/libc.so.6
#3  0x00007fd45bbf245c in  () at /usr/lib/libc.so.6
#4  0x00007fd45bc023d6 in  () at /usr/lib/libc.so.6
#5  0x00007fd45c34291a in  () at /usr/lib/libmount.so.1
#6  0x00007fd45c32125e in  () at /usr/lib/libmount.so.1
#7  0x00007fd45c336c8d in mnt_context_do_mount () at /usr/lib/libmount.so.1
#8  0x00007fd45c338d7c in mnt_context_mount () at /usr/lib/libmount.so.1
#9  0x00007fd458cade3c in  () at /usr/lib/libbd_fs.so.2
#10 0x00007fd458caf65f in bd_fs_mount () at /usr/lib/libbd_fs.so.2
#11 0x000056170aad0c96 in  ()
#12 0x00007fd45b7974f6 in  () at /usr/lib/libffi.so.8
#13 0x00007fd45b793f5e in  () at /usr/lib/libffi.so.8
#14 0x00007fd45b796b73 in ffi_call () at /usr/lib/libffi.so.8
#15 0x00007fd45bf24515 in g_cclosure_marshal_generic () at /usr/lib/libgobject-2.0.so.0
#16 0x00007fd45bf1e146 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#17 0x00007fd45bf4c427 in  () at /usr/lib/libgobject-2.0.so.0
#18 0x00007fd45c192947 in  () at /usr/lib/libudisks2.so.0
#19 0x00007fd45c08b672 in  () at /usr/lib/libgio-2.0.so.0
#20 0x00007fd45c01921c in  () at /usr/lib/libgio-2.0.so.0
#21 0x00007fd45be4b9a3 in  () at /usr/lib/libglib-2.0.so.0
#22 0x00007fd45be46315 in  () at /usr/lib/libglib-2.0.so.0
#23 0x00007fd45bc5744b in  () at /usr/lib/libc.so.6
#24 0x00007fd45bcdae40 in  () at /usr/lib/libc.so.

journalctl:

5月 25 21:37:12  udisksd[9093]: Acquired the name org.freedesktop.UDisks2 on the system message bus
5月 25 21:37:13  ntfs-3g[9107]: Version 2022.10.3 external FUSE 29
5月 25 21:37:13  udisksd[9093]: udisksd: libmount/src/hook_mount.c:480: hook_attach_target: Assertion `api->fd_tree >= 0' failed.
5月 25 21:37:13  ntfs-3g[9107]: Mounted /dev/sda1 (Read-Write, label "ND", NTFS 3.1)
5月 25 21:37:13  ntfs-3g[9107]: Cmdline options: rw,uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,windows_names
5月 25 21:37:13  ntfs-3g[9107]: Mount options: uhelper=udisks2,nodev,nosuid,allow_other,nonempty,relatime,rw,default_permissions,fsname=/dev/sda1,blkdev,blksize=4096
5月 25 21:37:13  ntfs-3g[9107]: Global ownership and permissions enforced, configuration type 7
5月 25 21:37:13  systemd[1]: udisks2.service: Main process exited, code=dumped, status=6/ABRT
5月 25 21:37:13  ntfs-3g[9107]: Unmounting /dev/sda1 (ND)
5月 25 21:37:13  systemd[1]: udisks2.service: Failed with result 'core-dump' 

------
I post here for other users who meet the same problem. And hope someone can report it to bugs. ( I don't know why arch uses so many account systems sad )

After Updating to the latest, KDE fails to mount ntfs devices (such as 'C', the main partition of Windows).

And the syslog shows that

udisks2.service: Failed with result 'core-dump'.

and you will receive the error message when you try udiskctl mount

Error mounting /dev/sdb2: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

I and other user have met the problem. Downgrade util-linux and util-linux-libs can solve the problem.

Reference:
1. https://forum.endeavouros.com/t/unable- … es/41116/3
2. https://www.reddit.com/r/archlinux/comm … le_device/
3. https://bugzilla.redhat.com/show_bug.cgi?id=2189241
4. https://bugs.gentoo.org/906797
5. https://bugs.gentoo.org/906859
6. https://github.com/util-linux/util-linux/issues/2267

Last edited by GuangDai (2023-05-25 13:40:27)

Offline

#2 2023-05-24 13:08:16

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

Is this https://bugs.archlinux.org/task/76345 please test by patching udisks2 with https://github.com/storaged-project/udi … 6fed.patch
Edit:
Please also try patching util-linux with https://github.com/util-linux/util-linu … 7eb574effd
Edit:
If the issue is still present please post a backtrace with debug symbols [1]. It's usually as simple as this (but not always):

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt

[1] https://wiki.archlinux.org/title/Debugg … ing_traces

Last edited by loqs (2023-05-24 18:13:33)

Offline

#3 2023-05-25 02:41:44

GuangDai
Member
Registered: 2022-01-28
Posts: 6

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

loqs wrote:

Is this https://bugs.archlinux.org/task/76345 please test by patching udisks2 with https://github.com/storaged-project/udi … 6fed.patch
Edit:
Please also try patching util-linux with https://github.com/util-linux/util-linu … 7eb574effd
Edit:
If the issue is still present please post a backtrace with debug symbols [1]. It's usually as simple as this (but not always):

$ coredumpctl gdb (then answer y when it asks "Enable debuginfod for this session?")
(gdb) set logging enabled
(gdb) bt (or bt full)

Then post gdb.txt

[1] https://wiki.archlinux.org/title/Debugg … ing_traces

udisks2 patch doesn't solve the problem.

I am compling the second. (10:41 UTC+8)

edit: Second patch doesn't solve too.

gdb.txt:

#0  0x00007f349038426c in  () at /usr/lib/libc.so.6
#1  0x00007f3490334a08 in raise () at /usr/lib/libc.so.6
#2  0x00007f349031d538 in abort () at /usr/lib/libc.so.6
#3  0x00007f349031d45c in  () at /usr/lib/libc.so.6
#4  0x00007f349032d3d6 in  () at /usr/lib/libc.so.6
#5  0x00007f3490a70114 in  () at /usr/lib/libmount.so.1
#6  0x00007f3490a500ae in  () at /usr/lib/libmount.so.1
#7  0x00007f3490a69e66 in mnt_context_do_mount () at /usr/lib/libmount.so.1
#8  0x00007f3490a6a582 in mnt_context_mount () at /usr/lib/libmount.so.1
#9  0x00007f348d3b2e3c in  () at /usr/lib/libbd_fs.so.2
#10 0x00007f348d3b465f in bd_fs_mount () at /usr/lib/libbd_fs.so.2
#11 0x000055801e81ec96 in  ()
#12 0x00007f348fea04f6 in  () at /usr/lib/libffi.so.8
#13 0x00007f348fe9cf5e in  () at /usr/lib/libffi.so.8
#14 0x00007f348fe9fb73 in ffi_call () at /usr/lib/libffi.so.8
#15 0x00007f349064f515 in g_cclosure_marshal_generic () at /usr/lib/libgobject-2.0.so.0
#16 0x00007f3490649146 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#17 0x00007f3490677427 in  () at /usr/lib/libgobject-2.0.so.0
#18 0x00007f34908bd947 in  () at /usr/lib/libudisks2.so.0
#19 0x00007f34907b6672 in  () at /usr/lib/libgio-2.0.so.0
#20 0x00007f349074421c in  () at /usr/lib/libgio-2.0.so.0
#21 0x00007f34905769a3 in  () at /usr/lib/libglib-2.0.so.0
#22 0x00007f3490571315 in  () at /usr/lib/libglib-2.0.so.0
#23 0x00007f349038244b in  () at /usr/lib/libc.so.6
#24 0x00007f3490405e40 in  () at /usr/lib/libc.so.6

edit: I see there is a user report the bug to the upstrem git repo: https://github.com/util-linux/util-linux/issues/2267 , and the developer said that he can reproduced with mount. So maybe this is a bug in upstream.

Last edited by GuangDai (2023-05-25 03:47:07)

Offline

#4 2023-05-25 05:43:56

balbao
Member
Registered: 2022-01-12
Posts: 1

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

Unable to mount external partitions since util-linux and util-linux-libs changed from 2.38.1 to 2.39.1. Obliged to make a return to version 2.38 to make everything work again.

Offline

#5 2023-05-25 10:36:39

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

https://bugs.archlinux.org/task/78596 hopefully fixed in util-linux 2.39-2 currently in core-testing.

Offline

#6 2023-05-25 13:47:33

GuangDai
Member
Registered: 2022-01-28
Posts: 6

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

Already tesed in 2.39.2.

Offline

#7 2023-05-25 13:49:17

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

GuangDai wrote:

Already tesed in 2.39.2.

Thank you for testing.  Can you please report your findings on https://bugs.archlinux.org/task/78596

Offline

#8 2023-05-25 13:56:08

GuangDai
Member
Registered: 2022-01-28
Posts: 6

Re: [Bug] util-linux seems break udisks2, same in 2.39.2

loqs wrote:
GuangDai wrote:

Already tesed in 2.39.2.

Thank you for testing.  Can you please report your findings on https://bugs.archlinux.org/task/78596

OK.

Offline

Board footer

Powered by FluxBB