[Bug 865188] New: systemd: Assertion 'hashmap_put(...) == 1' failed
https://bugzilla.novell.com/show_bug.cgi?id=865188 https://bugzilla.novell.com/show_bug.cgi?id=865188#c0 Summary: systemd: Assertion 'hashmap_put(...) == 1' failed Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Yarny@public-files.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 I'm regularly installing openSUSE 13.1, mostly within VirtualBox. In the course of this, I run a script which issues some systemctl commands to setup most services as I want them. Very occasionally, maybe 1 in 100 times, one of these commands fails, e.g. like this:
$ systemctl --force enable NetworkManager.service ln -s '/usr/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/network.service' ln -s '/usr/lib/systemd/system/NetworkManager.service' '/etc/systemd/system/multi-user.target.wants/NetworkManager.service' ln -s '/usr/lib/systemd/system/NetworkManager-dispatcher.service' '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service' Failed to issue method call: Connection was disconnected before a reply was received When this happens, systmed logs to /var/log/messages: 2013-12-30T16:38:50.743663+00:00 1ef975e systemd[1]: Assertion 'hashmap_put(u->manager->cgroup_unit, s, u) == 1' failed at src/core/unit.c:2357, function unit_deserialize(). Aborting. 2013-12-30T16:38:50.753224+00:00 1ef975e systemd[1]: Caught <ABRT>, dumped core as pid 1479. 2013-12-30T16:38:50.754650+00:00 1ef975e systemd[1]: Freezing execution. After this happened, all further systemctl calls fails with: Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: Connection refused The system then needs to be restarted with "reboot -f" ("reboot" isn't working either).
I'm seeing this approx once a month. Up to now, however, I failed to reproduce it at will. Reproducible: Sometimes -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c2
Yarny Yarny
What is the reason of using a `script' to `issues' some systemctl commands the most services ... ?! The script runs on a freshly installed openSUSE and installs/configures some services which I need on my machines. I'm using VirtualBox to test the script before using it on production systems.
Why do you not use the normal way that is you enable your required services and the set your default target like systemctl set-default graphical.target Hmm, what is "normal"? I'm mostly enabling my services with "systemctl enable whatever.service". But since there are so many, and since there are a lot of other things to do when perparing my machines for use (e.g. put some stuff in /etc/skel, ...), I assembled a script which does these things for me.
Beside: How stable your virtual system is? I'm mostly fine with it --- up to this bug ;-)
The case that the socket /run/systemd/private does not exists indicates that systemd has been crash. It still exists, but systemd doesn't react to connections anymore, since systemd was "freezing execution" (see logfile in original bug report).
Indeed I've several virtual and real systems with systemd running and *never* catched such a crash. And I'm really stress the virtual systems in a hard way. I wish I had better information on how to reproduce the bug, but I haven't. The only reason I can guess is that the bug is more likely to appear if several systemctl calls are issued in short order.
Please attach your crash script. That's not easy. The script grew for several years, is now about 18k lines of python code and contains lots of confidential stuff. I've now distilled the systemctl command lines and put them in script.sh (attached tar file). The tar file also contains the unit files that are referenced in the script. Most of these unit files shouldn't be relevant for the bug, however.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c4
Yarny Yarny
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c5
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=865188
https://bugzilla.novell.com/show_bug.cgi?id=865188#c6
Yarny Yarny
participants (1)
-
bugzilla_noreply@novell.com