Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[Ubuntu 18.04] systemd-logind crashed with SIGABRT in __libc_connect() #9431
systemd version the issue has been seen with
Unexpected behaviour you saw
So far this occurs without much warning. My system will lock up and reboot on its own. Then the following boot, I will be using various applications and the desktop will go away and I'll be returned to the login screen. Then the ubuntu bug report will report this crash and an xorg crash. Sometimes these crashes happen soon after first boot and sometimes after I've been using the computer most of the day.
I've also seen this on a different machine running an AMD Ryzen 7 1800X and Nvida GT 710.
Steps to reproduce the problem
If there are steps I could take to gather more information let me know.
Downgrading to Ubuntu 17.10, Systemd v234-2ubuntu12.4. This problem has not appeared in this older version.
Looks like a duplicate of #7074.
If you're using NIS, you should disable systemd-logind's IP sandbox, since it will otherwise prevent it from opening network connections to your NIS server.
Quick way to work around this is to create a drop-in for systemd-logind.service and add
Another option is to run
I hope that helps!
The bug at Ubuntu Launchpad says "configured system to use nis. seems to be crashing when I attempt to use a NIS user account", so...
You can use the workaround suggested above (clearing
Not sure why this seems to be random in how long it takes to trigger... Not sure how to trigger an operation that will always trigger a NIS lookup... But maybe try those and see if you still have crashes after a few days, perhaps that's enough confirmation?
The stack trace in the bug shows the SIGABRT being triggered in the portmapper code, and that means NIS is causing this. Hence, yupp, please turn off the IP sandboxing stuff for logind and it should work again. Also see the NEWS file about this.
Consider asking your distro to include a drop-in for logind that turns off the IP sandbox, so that everybody who installs nss-nis automatically gets the IP sandbox turned off, and things just work again for NIS.
Anyway, let's close this here, the IP sandbox for logind was announced, and I don't think we should really change anything in systemd regarding this. Hope that makes sense. Closing.