Bug#1019952: gnome-disk-utility: segfault in libudisks2.so.0.0.0
Bernhard Übelacker
bernhardu at mailbox.org
Sun Oct 9 09:53:05 BST 2022
Hello piorunz,
I tried to get some more information from your dmesg line and think
the crash takes place in function udisks_drive_ata_get_smart_enabled.
I could not find any crashes related to this function in udisks2
upstream bug tracker, but gnome-disks upstream tracker
contains [56], that might be related.
To be sure it would be good if you could generate a backtrace
of the crash.
For this is might be already sufficient to install systemd-coredump [1].
Then the segfault line should be followed more information
about the crash in the journal.
Kind regards,
Bernhard
> [74281.147838] gnome-disks[2098897]: segfault at a0 ip 00007f7b10aeefc8 sp
> 00007ffd5bd91c48 error 4 in libudisks2.so.0.0.0[7f7b10adb000+53000]
> [74281.147852] Code: e9 0d ce fe ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 53
> 48 89 fb e8 77 c3 fe ff 48 8b 3b 48 89 c6 e8 bc c0 fe ff 48 89 df 5b <48> 8b 80
> a0 00 00 00 ff e0 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44
(gdb) find /b 0x00007ffff7022960, 0x00007ffff707392f, 0xe9, 0x0d, 0xce, 0xfe, 0xff, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x1f, 0x00, 0x53, 0x48, 0x89, 0xfb, 0xe8, 0x77, 0xc3, 0xfe, 0xff, 0x48, 0x8b, 0x3b, 0x48, 0x89, 0xc6, 0xe8, 0xbc, 0xc0, 0xfe, 0xff, 0x48, 0x89, 0xdf, 0x5b, 0x48, 0x8b, 0x80, 0xa0, 0x00, 0x00, 0x00, 0xff, 0xe0, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x1f, 0x44
0x7ffff7034f9e <udisks_drive_ata_set_smart_supported+30>
1 pattern found.
(gdb) b * (0x7ffff7034f9e + 42)
Breakpoint 2 at 0x7ffff7034fc8: file ./udisks/udisks-generated.c, line 9308.
(gdb) info b
Num Type Disp Enb Address What
2 breakpoint keep y 0x00007ffff7034fc8 in udisks_drive_ata_get_smart_enabled at ./udisks/udisks-generated.c:9308
(gdb) disassemble /r 0x7ffff7034f9e, 0x7ffff7034f9e + 62
Dump of assembler code from 0x7ffff7034f9e to 0x7ffff7034fdc:
0x00007ffff7034f9e <udisks_drive_ata_set_smart_supported+30>: e9 0d ce fe ff jmp 0x7ffff7021db0 <g_object_set at plt>
0x00007ffff7034fa3: 66 2e 0f 1f 84 00 00 00 00 00 cs nopw 0x0(%rax,%rax,1)
0x00007ffff7034fad: 0f 1f 00 nopl (%rax)
0x00007ffff7034fb0 <udisks_drive_ata_get_smart_enabled+0>: 53 push %rbx
0x00007ffff7034fb1 <udisks_drive_ata_get_smart_enabled+1>: 48 89 fb mov %rdi,%rbx
0x00007ffff7034fb4 <udisks_drive_ata_get_smart_enabled+4>: e8 77 c3 fe ff call 0x7ffff7021330 <udisks_drive_ata_get_type at plt>
0x00007ffff7034fb9 <udisks_drive_ata_get_smart_enabled+9>: 48 8b 3b mov (%rbx),%rdi
0x00007ffff7034fbc <udisks_drive_ata_get_smart_enabled+12>: 48 89 c6 mov %rax,%rsi
0x00007ffff7034fbf <udisks_drive_ata_get_smart_enabled+15>: e8 bc c0 fe ff call 0x7ffff7021080 <g_type_interface_peek at plt>
0x00007ffff7034fc4 <udisks_drive_ata_get_smart_enabled+20>: 48 89 df mov %rbx,%rdi
0x00007ffff7034fc7 <udisks_drive_ata_get_smart_enabled+23>: 5b pop %rbx
0x00007ffff7034fc8 <udisks_drive_ata_get_smart_enabled+24>: 48 8b 80 a0 00 00 00 mov 0xa0(%rax),%rax <<<<<<<<
0x00007ffff7034fcf <udisks_drive_ata_get_smart_enabled+31>: ff e0 jmp *%rax
0x00007ffff7034fd1: 66 2e 0f 1f 84 00 00 00 00 00 cs nopw 0x0(%rax,%rax,1)
0x00007ffff7034fdb: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
End of assembler dump.
9305 gboolean
9306 udisks_drive_ata_get_smart_enabled (UDisksDriveAta *object)
9307 {
9308 return UDISKS_DRIVE_ATA_GET_IFACE (object)->get_smart_enabled (object);
9309 }
[56] https://gitlab.gnome.org/GNOME/gnome-disk-utility/-/issues/56
[1] https://wiki.debian.org/HowToGetABacktrace
More information about the pkg-gnome-maintainers
mailing list