You are not logged in.

#26 2017-05-08 21:16:49

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

Re: udisks2 fails to load - segfault and coredump

Whoops, I thought dhcpcd was used by NetworkManager etc. Should I disable it?

Yes, date is exactly correct.

Offline

#27 2017-05-08 21:47:50

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

Re: udisks2 fails to load - segfault and coredump

You should not attempt to run both. You can stop it and try to start networkmanager, see whether it makes a difference. But without either, you won't have a network connection ;-)

Offline

#28 2017-05-08 21:54:21

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

Re: udisks2 fails to load - segfault and coredump

I did stop and disable dhcpcd and then start NetworkManager with no difference.

I think the reason NetworkManager is not working is that it uses udisks2. (I think I saw that somewhere.)

Offline

#29 2017-05-09 05:56:14

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

Re: udisks2 fails to load - segfault and coredump

No, networkmanager may or not use udisks but it segfaults from the very same g_get_home_dir function.

Try compiling

gcc `pkg-config --cflags --libs glib-2.0` -o gethomedir gethomedir.c

gethomedir.c

#include <glib.h>
#include <stdio.h>

int main(int argc, char **argv) {
    printf("%s\n", g_get_home_dir());
}

and running it as your regular user and as root (to see whether it's a direct issue and related to the root account or the bug may relate to a threading race in gio. For the latter, you'll need to create a debug enabled build of glib)

Offline

#30 2017-05-09 07:22:08

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

Re: udisks2 fails to load - segfault and coredump

The command gives a gcc no input file error. Changing glib2.0 to glib-2.0, however, gives a no such file or directory. Do I need to be in a certain directory? I searched the filesystem with find, and I have no "gethomedir.c" file. It seems like that may be the problem...

Offline

#31 2017-05-09 07:51:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: udisks2 fails to load - segfault and coredump

You are supposed to create it with the contents posted and try to run and see if it segfaults

Offline

#32 2017-05-09 08:05:08

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

Re: udisks2 fails to load - segfault and coredump

Ha! Sorry, I made a stupid.

It works with regular and root user - no segfault.

For compiling with debugging enabled, can I follow https://wiki.archlinux.org/index.php/De … ing_Traces with the glib2 package?

Offline

#33 2017-05-09 13:58:35

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

Re: udisks2 fails to load - segfault and coredump

Yes. Be aware that this may take some time - depending on the machine in use, but considerably longer than just installing the package.

Offline

#34 2017-05-09 21:20:37

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

Re: udisks2 fails to load - segfault and coredump

I compiled glib2 according to wiki. I was considering how to use gdb with a systemd module that was not a "standalone" application, when I decided to start NetworkManager by commandline. When started as root (sudo), it launched and is working (the KDE applet started up), but systemctl status is still "failed".

Now I don't know if doing this before recompiling glib would have worked, but does this mean anything?

Offline

#35 2017-05-10 13:49:21

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

Re: udisks2 fails to load - segfault and coredump

The service status is "failed" because you didn't start the service but "just" ran the binary directly. That's "ok".

So what you can say now is that the bug does not emerge w/ the self-compiled (debug enabled) glib2, ie. we have a heisebug. Great. *sigh*

With a little luck, re-installing glibc clears the stage and there were just some left over symlinks or whatnotshit that lead into some ABI incompatibility, but if the problem re-appears with the repo glib2 (you're not using some glib2 from AUR, are you?) the only thing i can suggest is to
a) try a different mirror
b) hope the bug is gone with the next glib2 rebuild/update ...

Offline

Board footer

Powered by FluxBB