You are not logged in.

#1 2017-05-01 17:36:56

Paleo
Member
Registered: 2016-06-19
Posts: 19

udisks2 fails to load - segfault and coredump

Hi, everyone! First-time poster here, so I decided to do this in the Newbie-Corner, even though I have been using Arch for a while now...

I'm currently in a predicament that I know will probably be humourous in hindsight, seeing as it escalated very dramatically.

(I'm recounting from memory and writing on my phone, so please pardon any mistakes...)

My problems all started when my WiFi (I'm on a laptop) stopped working. It appeared wpa_supplicant wasn't loading. The problem was two missing shared libraries called libssl.so.1.1 and libcrypto.so.1.1, apparently not installed, so I first tried to create softlinks at those names to libssl.so and libcrypto.so (all in /usr/lib, I think). wpa_supplicant then complained that there was missing version info with those linked libraries. I reversed those changes, then did pacman -S to upgrade some packages that I thought were relevant, including openssl, openssl2, networkmanager, etc.

Then my sudo stopped working. I can't remember the error now, but it was something to do with libcrypto.

Without being able to use the sudo and thus pacman on my system, I booted into a Arch install USB (uname gives 4.8.13-1-ARCH of Fri Dec 9 2016). I mounted my disk and arch-chrooted into my system. Then I first upgraded all packages that could possibly be vaguely related to the problem. (Using the method in https://wiki.archlinux.org/index.php/Pa … n_upgrade) Which gave me a nasty

systemd-modules-load: Failed to lookup alias 'sg': Function not implemented.
...
Could not mount /boot
Dependency failed for Local File Systems
...
Etc.

error. (Emergency console could not be opened as root account is locked. I tried paswd -l and -u and -d in the chroot environment, to no avail.)

Up until this point I had avoided upgrading the entire system as I'm on a student budget and am charged per internet used. But I thought the situation called for drastic measures, so I upgraded the entire system (through arch-chroot).

Same error.

Is there any way that I can get out of this without having to reinstall?

Thanks in advance for all your help!

Last edited by Paleo (2017-05-07 20:16:16)

Offline

#2 2017-05-01 18:07:52

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: udisks2 fails to load - segfault and coredump

If updating your entire system is 'a drastic measure', then you are using the wrong distribution. Partially updating your system is not supported on Arch. Either update everything or update nothing.

https://wiki.archlinux.org/index.php/Sy … nsupported

With regard to the sg alias error, I can only guess that you updated your chrooted system without /boot mounted. Boot a liveCD, mount your root partition and then mount your boot partition inside it, then chroot and reinstall the kernel package you use,e.g. 'linux' or 'linux-lts'.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-05-01 18:44:30

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

Thank you very much for the reply.

That makes sense and I will definitely try doing that as soon as possible, and report back. It's interesting that /boot isn't mentioned in the linked Wiki article.

I think perhaps I should have put "drastic measures" in quotes. ;-) Usually I'd do relatively regular full upgrades, but it has been difficult to keep that up this last while.

Thanks again!

Offline

#4 2017-05-01 20:19:12

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

Ok, doing that got me back into my system (whoop, thanks!), but now NetworkManager and udisks2 both fail to load, both segfaulting and coredumping ("fatal signal was delivered"). (wpa_supplicant, on the other hand, seems fine...)

The X Server now also takes quite a while to load (after target GUI is reached), then after login, KDE loads, but with a delayed panel and wallpaper (probably the plasma-desktop or something). All apps and utilities I've tried work (except NetworkManager, of course).

Trying ip link wlp2s0 set up tells me "operation not possible due to RF-kill" (which is not installed). Ethernet connection works and configures automatically. journalctl tells me that there were some WiFi drivers that failed to load.

This is very confusing.

Offline

#5 2017-05-01 20:50:41

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: udisks2 fails to load - segfault and coredump

Paleo wrote:

This is very confusing.

Please consider how it is for others who do not have access to the system.  Post complete logs/output/versions/error messages
You mention a number of different issues which may or may not be related if they are not related then they should each have their own thread.
You mention journal output and coredumps but have not included the journal output or the backtrace from the cordump or any console output that might be relevant.
Also please include your pacman.log.

Offline

#6 2017-05-02 16:19:59

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

Hi, all! Sorry about the delay...

Up until now I didn't have time to post the logs and before that I didn't have access to internet on my system... Sorry for the inconvenience!

Here is pacman.log, dmesg.

I can't think of any other log that might help. But KDE and the desktop, as well as Dolphin still load very slowly. (I said it's confusing because I don't see a connection between these processes. neutral )

Offline

#7 2017-05-02 17:04:29

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: udisks2 fails to load - segfault and coredump

Does `pacman -Qkk` detect lots of packages with file size mismatches? (most particularly glib2)

loqs wrote:

You mention journal output and coredumps but have not included the journal output or the backtrace from the cordump or any console output that might be relevant.

Offline

#8 2017-05-02 17:19:38

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

There are quite a few "size mismatch" messages, but

pacman -Qkk glib2

returns normal ("0 altered file").

There are many "UID mismatche"s, as well as a few others: pacman -Qkk.

Offline

#9 2017-05-07 17:31:25

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

NetworkManager unit fails, systemctl status is:

● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Sun 2017-05-07 19:23:05 SAST; 1min 46s ago
     Docs: man:NetworkManager(8)
  Process: 26136 ExecStart=/usr/bin/NetworkManager --no-daemon (code=dumped, signal=SEGV)
 Main PID: 26136 (code=dumped, signal=SEGV)
      CPU: 60ms

May 07 19:23:04 Larch systemd[1]: NetworkManager.service: Main process exited, code=dumped, status=11/SEGV
May 07 19:23:04 Larch systemd[1]: Failed to start Network Manager.
May 07 19:23:04 Larch systemd[1]: NetworkManager.service: Unit entered failed state.
May 07 19:23:04 Larch systemd[1]: NetworkManager.service: Failed with result 'core-dump'.
May 07 19:23:05 Larch systemd[1]: NetworkManager.service: Service hold-off time over, scheduling restart.
May 07 19:23:05 Larch systemd[1]: Stopped Network Manager.
May 07 19:23:05 Larch systemd[1]: NetworkManager.service: Start request repeated too quickly.
May 07 19:23:05 Larch systemd[1]: Failed to start Network Manager.
May 07 19:23:05 Larch systemd[1]: NetworkManager.service: Unit entered failed state.
May 07 19:23:05 Larch systemd[1]: NetworkManager.service: Failed with result 'core-dump'.

Status for udisks2 is:

● udisks2.service - Disk Manager
   Loaded: loaded (/usr/lib/systemd/system/udisks2.service; disabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Sun 2017-05-07 18:58:07 SAST; 27min ago
     Docs: man:udisks(8)
  Process: 24157 ExecStart=/usr/lib/udisks2/udisksd --no-debug (code=dumped, signal=SEGV)
 Main PID: 24157 (code=dumped, signal=SEGV)
      CPU: 93ms

May 07 18:58:07 Larch systemd[1]: Starting Disk Manager...
May 07 18:58:07 Larch udisksd[24157]: The --no-debug option is deprecated and ignored. See '--help'.
May 07 18:58:07 Larch udisksd[24157]: udisks daemon version 2.6.4 starting
May 07 18:58:07 Larch systemd[1]: udisks2.service: Main process exited, code=dumped, status=11/SEGV
May 07 18:58:07 Larch systemd[1]: Failed to start Disk Manager.
May 07 18:58:07 Larch systemd[1]: udisks2.service: Unit entered failed state.
May 07 18:58:07 Larch systemd[1]: udisks2.service: Failed with result 'core-dump'.

Will it help to post the coredumpctl info? What other information can I provide?

Am I right in thinking that the udisks2 failure is the cause of the NetworkManager fail, slow KDE and Dolphin, etc?

(Should I start a new thread, seeing as the deepest-level problem - the one in the title - has been resolved?)

Last edited by Paleo (2017-05-07 20:17:22)

Offline

#10 2017-05-07 20:43:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

Why are you using the deadline scheduler?

Offline

#11 2017-05-07 20:52:09

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

I don't know what that is, but I quickly looked it up. I don't remember ever explicitly setting up anything like that.

How is it visible in those statuses / logs? What is the default behaviour and how does it affect my situation?

Thanks for the reply!

Offline

#12 2017-05-07 21:00:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

The kernel commandline in dmesg (where there are also backslashes which are at best handled gracefully but not canonical)
It didn't end up there by random or some UI click or so and it's by far not the only customization of the kernel parameters.

=> How did you install archlinux? (Notably, did you invoke some script or ask your nerd-mate to do it for you?)

It's an I/O scheduler, the default one is cfq
The better approach to use it (iff) is to set if for the devices where you actully want to use it and right afterwards, you adjust the tunables.

Offline

#13 2017-05-07 21:10:09

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

I installed it myself, and I followed the ArchWiki install guide... Perhaps there was some wiki page that I followed that I was not supposed to. I'll see if I can remember if there was anything else.

How would I go about trying to restore it to "best practice" behaviour?

Offline

#14 2017-05-07 21:14:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

Just remove the explicit selection from the kernel commandline in grub. Temporarily or permanently doesn't matter for testing this.

Offline

#15 2017-05-07 21:37:54

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

Thank you for pointing that out. I removed it from /boot/loader/entries/arch.conf, but with no (apparent) effect.

I did, however, discover that the segfault occurs with libglib-2.0.so. (dmesg gives: segfault at ... error 7 in libglib-2.0.so.0.5200.1. ...)

I reinstalled both glib2 and glibc (just for good measure - I don't know how to find out from what package the .so was.) With no effect. Again.

Offline

#16 2017-05-08 05:58:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

liblglib raises the abort, that doesn't mean it's the culprit (far more stuff would crash then)
If the scheduler has no impact, the coredumps of udisks and netwrkmanager would provide (a bit) more insight (unfortunately they'll be largely stripped of debug symbols, so there's no direct answer but maybe a better pattern)

Offline

#17 2017-05-08 06:02:16

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

Would it be wise to try and get debug symbols and restart to get the fail log again? Or would the coredump in its present state contain useful information?

If that doesn't help, is there anything else I can do besides reinstall?

Thank you very much.

Last edited by Paleo (2017-05-08 06:26:28)

Offline

#18 2017-05-08 06:28:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

You'd start with the present coredump to know what to compile debug enabled - arch doesn't provide debug packages.

PS: "reinstall" won't get you anywhere. Reproducing errors will not erase them in a deterministic universe with sane gods.

Last edited by seth (2017-05-08 06:30:04)

Offline

#19 2017-05-08 06:30:55

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

I know, yes.

I will check (and post) the coredumps as soon as I can get to my computer again..

(I thought at first something might have gone wrong during install, or I hoped that any missing files would be restored.)

Thanks!

Last edited by Paleo (2017-05-08 06:32:33)

Offline

#20 2017-05-08 14:07:43

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

coredumpctl info for udisks2 gives

           PID: 2803 (udisksd)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Mon 2017-05-08 16:01:17 SAST (2min 27s ago)
  Command Line: /usr/lib/udisks2/udisksd --no-debug
    Executable: /usr/lib/udisks2/udisksd
 Control Group: /system.slice/udisks2.service
          Unit: udisks2.service
         Slice: system.slice
       Boot ID: 89e1586f8b3c41ea9e0b62e8c2616e3c
    Machine ID: 0c992724c6d44036beba41e9dabfa140
      Hostname: Larch
       Storage: /var/lib/systemd/coredump/core.udisksd.0.89e1586f8b3c41ea9e0b62e8c2616e3c.2803.1494252077000000000000.lz4 (inaccessible)
       Message: Process 2803 (udisksd) of user 0 dumped core.
                
                Stack trace of thread 2803:
                #0  0x00007f2310030d76 n/a (libglib-2.0.so.0)
                #1  0x00007f23100311e5 g_get_home_dir (libglib-2.0.so.0)
                #2  0x00007f23105f8e81 n/a (libgio-2.0.so.0)
                #3  0x00007f23105fec5b n/a (libgio-2.0.so.0)
                #4  0x00007f2310569afb g_file_monitor_file (libgio-2.0.so.0)
                #5  0x00000000004442f6 n/a (udisksd)
                #6  0x00007f23102dc22e n/a (libgobject-2.0.so.0)
                #7  0x00007f23102ddc0d g_object_newv (libgobject-2.0.so.0)
                #8  0x00007f23102de3c4 g_object_new (libgobject-2.0.so.0)
                #9  0x00000000004446c5 udisks_fstab_monitor_new (udisksd)
                #10 0x00000000004156eb n/a (udisksd)
                #11 0x00007f23102dc777 n/a (libgobject-2.0.so.0)
                #12 0x00007f23102de10e g_object_new_valist (libgobject-2.0.so.0)
                #13 0x00007f23102de3b1 g_object_new (libgobject-2.0.so.0)
                #14 0x0000000000415b5b udisks_daemon_new (udisksd)
                #15 0x00000000004151db n/a (udisksd)
                #16 0x00007f23105df6d4 n/a (libgio-2.0.so.0)
                #17 0x00007f23105a36b3 n/a (libgio-2.0.so.0)
                #18 0x00007f23105a4176 n/a (libgio-2.0.so.0)
                #19 0x00007f23105d2142 n/a (libgio-2.0.so.0)
                #20 0x00007f23105a36b3 n/a (libgio-2.0.so.0)
                #21 0x00007f23105a36e9 n/a (libgio-2.0.so.0)
                #22 0x00007f230fffd66a g_main_context_dispatch (libglib-2.0.so.0)
                #23 0x00007f230fffda20 n/a (libglib-2.0.so.0)
                #24 0x00007f230fffdd42 g_main_loop_run (libglib-2.0.so.0)
                #25 0x0000000000414f67 main (udisksd)
                #26 0x00007f230fa11511 __libc_start_main (libc.so.6)
                #27 0x000000000041505a _start (udisksd)
                
                Stack trace of thread 2813:
                #0  0x00007f230fad8889 syscall (libc.so.6)
                #1  0x00007f231004344a g_cond_wait_until (libglib-2.0.so.0)
                #2  0x00007f230ffd1f49 n/a (libglib-2.0.so.0)
                #3  0x00007f2310025c66 n/a (libglib-2.0.so.0)
                #4  0x00007f2310025295 n/a (libglib-2.0.so.0)
                #5  0x00007f230fd9c2e7 start_thread (libpthread.so.0)
                #6  0x00007f230fadd54f __clone (libc.so.6)
                
                Stack trace of thread 2811:
                #0  0x00007f230fad367d poll (libc.so.6)
                #1  0x00007f230fffd9b6 n/a (libglib-2.0.so.0)
                #2  0x00007f230fffdacc g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f230fffdb11 n/a (libglib-2.0.so.0)
                #4  0x00007f2310025295 n/a (libglib-2.0.so.0)
                #5  0x00007f230fd9c2e7 start_thread (libpthread.so.0)
                #6  0x00007f230fadd54f __clone (libc.so.6)
                
                Stack trace of thread 2814:
                #0  0x00007f230fad367d poll (libc.so.6)
                #1  0x00007f230fffd9b6 n/a (libglib-2.0.so.0)
                #2  0x00007f230fffdd42 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007f23105e4ff6 n/a (libgio-2.0.so.0)
                #4  0x00007f2310025295 n/a (libglib-2.0.so.0)
                #5  0x00007f230fd9c2e7 start_thread (libpthread.so.0)
                #6  0x00007f230fadd54f __clone (libc.so.6)

gdb backtrace (not sure if it gives any additional information):

#0  0x00007f2310030d76 in  () at /usr/lib/libglib-2.0.so.0
#1  0x00007f23100311e5 in g_get_home_dir () at /usr/lib/libglib-2.0.so.0
#2  0x00007f23105f8e81 in  () at /usr/lib/libgio-2.0.so.0
#3  0x00007f23105fec5b in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007f2310569afb in g_file_monitor_file () at /usr/lib/libgio-2.0.so.0
#5  0x00000000004442f6 in  ()
#6  0x00007f23102dc22e in  () at /usr/lib/libgobject-2.0.so.0
#7  0x00007f23102ddc0d in g_object_newv () at /usr/lib/libgobject-2.0.so.0
#8  0x00007f23102de3c4 in g_object_new () at /usr/lib/libgobject-2.0.so.0
#9  0x00000000004446c5 in udisks_fstab_monitor_new ()
#10 0x00000000004156eb in  ()
#11 0x00007f23102dc777 in  () at /usr/lib/libgobject-2.0.so.0
#12 0x00007f23102de10e in g_object_new_valist () at /usr/lib/libgobject-2.0.so.0
#13 0x00007f23102de3b1 in g_object_new () at /usr/lib/libgobject-2.0.so.0
#14 0x0000000000415b5b in udisks_daemon_new ()
#15 0x00000000004151db in  ()
#16 0x00007f23105df6d4 in  () at /usr/lib/libgio-2.0.so.0
#17 0x00007f23105a36b3 in  () at /usr/lib/libgio-2.0.so.0
#18 0x00007f23105a4176 in  () at /usr/lib/libgio-2.0.so.0
#19 0x00007f23105d2142 in  () at /usr/lib/libgio-2.0.so.0
#20 0x00007f23105a36b3 in  () at /usr/lib/libgio-2.0.so.0
#21 0x00007f23105a36e9 in  () at /usr/lib/libgio-2.0.so.0
#22 0x00007f230fffd66a in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#23 0x00007f230fffda20 in  () at /usr/lib/libglib-2.0.so.0
#24 0x00007f230fffdd42 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#25 0x0000000000414f67 in main ()

and for NetworkManager:

           PID: 3191 (NetworkManager)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 11 (SEGV)
     Timestamp: Mon 2017-05-08 16:02:27 SAST (2min 58s ago)
  Command Line: /usr/bin/NetworkManager --no-daemon
    Executable: /usr/bin/NetworkManager
 Control Group: /system.slice/NetworkManager.service
          Unit: NetworkManager.service
         Slice: system.slice
       Boot ID: 89e1586f8b3c41ea9e0b62e8c2616e3c
    Machine ID: 0c992724c6d44036beba41e9dabfa140
      Hostname: Larch
       Storage: /var/lib/systemd/coredump/core.NetworkManager.0.89e1586f8b3c41ea9e0b62e8c2616e3c.3191.1494252147000000000000.lz4 (inaccessible)
       Message: Process 3191 (NetworkManager) of user 0 dumped core.
                
                Stack trace of thread 3191:
                #0  0x00007f47f8049d76 n/a (libglib-2.0.so.0)
                #1  0x00007f47f804a1e5 g_get_home_dir (libglib-2.0.so.0)
                #2  0x00007f47f8815e81 n/a (libgio-2.0.so.0)
                #3  0x00007f47f881bc5b n/a (libgio-2.0.so.0)
                #4  0x000000000043d72e n/a (NetworkManager)
                #5  0x00007f47f851735b g_type_create_instance (libgobject-2.0.so.0)
                #6  0x00007f47f84f91fb n/a (libgobject-2.0.so.0)
                #7  0x00007f47f84fac0d g_object_newv (libgobject-2.0.so.0)
                #8  0x00007f47f84fb3c4 g_object_new (libgobject-2.0.so.0)
                #9  0x000000000044e059 n/a (NetworkManager)
                #10 0x000000000041b9cc n/a (NetworkManager)
                #11 0x00007f47f6f77511 __libc_start_main (libc.so.6)
                #12 0x000000000041c49a n/a (NetworkManager)
                
                Stack trace of thread 3205:
                #0  0x00007f47f703e889 syscall (libc.so.6)
                #1  0x00007f47f805c44a g_cond_wait_until (libglib-2.0.so.0)
                #2  0x00007f47f7feaf49 n/a (libglib-2.0.so.0)
                #3  0x00007f47f803ec66 n/a (libglib-2.0.so.0)
                #4  0x00007f47f803e295 n/a (libglib-2.0.so.0)
                #5  0x00007f47f73022e7 start_thread (libpthread.so.0)
                #6  0x00007f47f704354f __clone (libc.so.6)
                
                Stack trace of thread 3206:
                #0  0x00007f47f703e889 syscall (libc.so.6)
                #1  0x00007f47f87f0138 n/a (libgio-2.0.so.0)
                #2  0x00007f47f880429c n/a (libgio-2.0.so.0)
                #3  0x00007f47f87c06b3 n/a (libgio-2.0.so.0)
                #4  0x00007f47f87c06e9 n/a (libgio-2.0.so.0)
                #5  0x00007f47f801666a g_main_context_dispatch (libglib-2.0.so.0)
                #6  0x00007f47f8016a20 n/a (libglib-2.0.so.0)
                #7  0x00007f47f8016d42 g_main_loop_run (libglib-2.0.so.0)
                #8  0x00007f47f8801ff6 n/a (libgio-2.0.so.0)
                #9  0x00007f47f803e295 n/a (libglib-2.0.so.0)
                #10 0x00007f47f73022e7 start_thread (libpthread.so.0)
                #11 0x00007f47f704354f __clone (libc.so.6)
                
                Stack trace of thread 3199:
                #0  0x00007f47f703967d poll (libc.so.6)
                #1  0x00007f47f80169b6 n/a (libglib-2.0.so.0)
                #2  0x00007f47f8016acc g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f47f8016b11 n/a (libglib-2.0.so.0)
                #4  0x00007f47f803e295 n/a (libglib-2.0.so.0)
                #5  0x00007f47f73022e7 start_thread (libpthread.so.0)
                #6  0x00007f47f704354f __clone (libc.so.6)

gdb backtrace:

#0  0x00007f47f8049d76 in  () at /usr/lib/libglib-2.0.so.0
#1  0x00007f47f804a1e5 in g_get_home_dir () at /usr/lib/libglib-2.0.so.0
#2  0x00007f47f8815e81 in  () at /usr/lib/libgio-2.0.so.0
#3  0x00007f47f881bc5b in  () at /usr/lib/libgio-2.0.so.0
#4  0x000000000043d72e in  ()
#5  0x00007f47f851735b in g_type_create_instance () at /usr/lib/libgobject-2.0.so.0
#6  0x00007f47f84f91fb in  () at /usr/lib/libgobject-2.0.so.0
#7  0x00007f47f84fac0d in g_object_newv () at /usr/lib/libgobject-2.0.so.0
#8  0x00007f47f84fb3c4 in g_object_new () at /usr/lib/libgobject-2.0.so.0
#9  0x000000000044e059 in  ()
#10 0x000000000041b9cc in  ()
#11 0x00007f47f6f77511 in __libc_start_main () at /usr/lib/libc.so.6
#12 0x000000000041c49a in  ()

Is there a standard "method" to resolve coredumping systemd modules?

Last edited by Paleo (2017-05-08 14:19:09)

Offline

#21 2017-05-08 15:43:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

g_get_home_dir () at /usr/lib/libglib-2.0.so.0

Anything special about your home directory? LDAP? Other network shares?

What's the output of

grep `whoami` /etc/passwd

(it doesn't include your password, but your home directory)

and

stat $HOME

Edit: since the services will run as root - do you have a /root dir and please rather test

grep root /etc/passwd

Last edited by seth (2017-05-08 15:46:25)

Offline

#22 2017-05-08 19:30:19

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

Nope, nothing strange. No network shares / LDAP.

My /etc/passwd has

paleo:x:1000:100:Paleo:/home/paleo:/bin/bash
root:x:0:root:/root:/bin/bash

stat of my home:

  File: /home/paleo
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 806h/2054d      Inode: 9830402     Links: 36
Access: (0755/drwxr-xr-x)  Uid: ( 1000/    paleo)   Gid: (  100/   users)
Access: 2017-05-08 16:03:48.433124572 +0200
Modify: 2017-05-08 16:03:44.493043807 +0200
Change: 2017-05-08 16:03:44.493043807 +0200
 Birth: -

Offline

#23 2017-05-08 19:56:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

What about "stat /root"

Since there might be a nslookup - are you using systemd-networkd? Are you maybe generally trying to use multiple network services?

systemctl list-units | grep -iE '(net|dhcp|wicd|conn)'

You could further try

sudo su # stracing root w/o being actually root is PITA
strace /usr/lib/udisks2/udisksd --no-debug 2>&1 | tee udisks.strace

to maybe get a better idea on what it's likely doing when it segfaults - w/o having to compile glib2 yourself

Offline

#24 2017-05-08 20:07:18

Paleo
Member
Registered: 2016-06-19
Posts: 19

Re: udisks2 fails to load - segfault and coredump

stat root:

  File: /root
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 806h/2054d      Inode: 1310721     Links: 7
Access: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-05-01 10:57:37.697237774 +0200
Modify: 2017-05-07 23:18:52.316292648 +0200
Change: 2017-05-07 23:18:52.316292648 +0200
 Birth: -

I only use NetworkManager - that I am aware of:

  sys-devices-pci0000:00-0000:00:1c.2-0000:02:00.0-net-wlp2s0.device                          loaded active plugged   Wireless 3165 (Dual Band Wireless AC 3165)                                                 
  sys-devices-pci0000:00-0000:00:1c.3-0000:03:00.0-net-enp3s0.device                          loaded active plugged   RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller                                  
  sys-subsystem-net-devices-enp3s0.device                                                     loaded active plugged   RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller                                  
  sys-subsystem-net-devices-wlp2s0.device                                                     loaded active plugged   Wireless 3165 (Dual Band Wireless AC 3165)                                                 
  chrony.service                                                                              loaded active running   Chrony Network Time Daemon                                                                 
  dhcpcd.service                                                                              loaded active running   dhcpcd on all interfaces                                                                   
● NetworkManager.service                                                                      loaded failed failed    Network Manager                                                                            
  systemd-timesyncd.service                                                                   loaded active running   Network Time Synchronization                                                               
  network.target                                                                              loaded active active    Network                                                                                    

This strace (2575 lines) looks a bit daunting. Where do I start making sense out of it?

Thanks!

Offline

#25 2017-05-08 20:34:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: udisks2 fails to load - segfault and coredump

No, you've also enabled (and running) dhcpcd

Udisks times out waiting for likely™ some™ kernel event, but that's all I can say either - it does connect to the system dbus, though.
(The FD 3 is opened by eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK)   = 3)

Is your system time "ok" (ie "date" saying it's today and about the right time)?

Offline

Board footer

Powered by FluxBB