systemd-logind assert failure: alloc.c:315: Assertion failed in nih_free: ptr != NULL

Bug #1341623 reported by Cristian Aravena Romero
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
systemd
Won't Fix
Critical
systemd (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Crash.

ProblemType: Crash
DistroRelease: Ubuntu 14.10
Package: systemd 204-12ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-3.8-lowlatency 3.16.0-rc4
Uname: Linux 3.16.0-3-lowlatency x86_64
ApportVersion: 2.14.4-0ubuntu2
Architecture: amd64
AssertionMessage: alloc.c:315: Assertion failed in nih_free: ptr != NULL
Date: Mon Jul 14 09:39:48 2014
ExecutablePath: /lib/systemd/systemd-logind
InstallationDate: Installed on 2014-04-27 (78 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
ProcCmdline: /lib/systemd/systemd-logind
ProcEnviron:

Signal: 6
SourcePackage: systemd
StacktraceTop:
 nih_free () from /lib/x86_64-linux-gnu/libnih.so.1
 ?? ()
 ?? ()
 ?? ()
 ?? ()
Title: systemd-logind assert failure: alloc.c:315: Assertion failed in nih_free: ptr != NULL
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 nih_free (ptr=0x0) at alloc.c:318
 cgm_get (controller=0x4272c7 "systemd", cgroup_path=0x8b6ea1 "user/1000.user/c2.session", cgroup_path@entry=0x8b6ea0 "/user/1000.user/c2.session", key=key@entry=0x433f05 "tasks") at ../src/shared/cgmanager.c:143
 cg_enumerate_tasks (controller=0x42618a "name=systemd", path=0x8b6ea0 "/user/1000.user/c2.session", _f=_f@entry=0x7fffff837248) at ../src/shared/cgroup-util.c:128
 cg_is_empty (controller=<optimized out>, path=<optimized out>, ignore_self=true) at ../src/shared/cgroup-util.c:1125
 cg_is_empty_recursive (controller=controller@entry=0x42618a "name=systemd", path=0x8b6ea0 "/user/1000.user/c2.session", ignore_self=ignore_self@entry=true) at ../src/shared/cgroup-util.c:1171

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in systemd (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
information type: Private → Public
Revision history for this message
In , Cristian Aravena Romero (caravena) wrote :

Open bug in launchpad.net:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1341623

Crash.

#0 0x00007f179fb4c117 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 1045
        selftid = 1045
#1 0x00007f179fb4d808 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x8a64d0, sa_sigaction = 0x8a64d0}, sa_mask = {__val = {9137825, 4354759, 9137552, 4350346, 1, 4294967296, 4322088, 9139344, 206158430256, 140737480192464, 140737480192256, 0, 139739453006202, 0, 140737480192368, 9137520}}, sa_flags = 9137825, sa_restorer = 0x4272c7}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007f17a0537309 in nih_free (ptr=0x0) at alloc.c:318
        ctx = <optimized out>
        __FUNCTION__ = "nih_free"
#3 0x0000000000422ae0 in cgm_get (controller=0x4272c7 "systemd", cgroup_path=0x8b6ea1 "user/1000.user/c2.session", cgroup_path@entry=0x8b6ea0 "/user/1000.user/c2.session", key=key@entry=0x433f05 "tasks") at ../src/shared/cgmanager.c:143
        nerr = 0x8b6d90
        result = 0x0
        ret = 0x0
        __func__ = "cgm_get"
#4 0x0000000000420aa7 in cg_enumerate_tasks (controller=0x42618a "name=systemd", path=0x8b6ea0 "/user/1000.user/c2.session", _f=_f@entry=0x7fffff837248) at ../src/shared/cgroup-util.c:128
        fs = 0x0
        f = <optimized out>
        r = <optimized out>
        value = 0x0
        template = 0x0
        fd = <optimized out>
        __PRETTY_FUNCTION__ = "cg_enumerate_tasks"
#5 0x0000000000420c6a in cg_is_empty (controller=<optimized out>, path=<optimized out>, ignore_self=true) at ../src/shared/cgroup-util.c:1125
        f = 0x0
        pid = 0
        self_pid = <optimized out>
        found = false
        r = <optimized out>
#6 0x0000000000420dcb in cg_is_empty_recursive (controller=controller@entry=0x42618a "name=systemd", path=0x8b6ea0 "/user/1000.user/c2.session", ignore_self=ignore_self@entry=true) at ../src/shared/cgroup-util.c:1171
        d = 0x0
        fn = 0x18 <error: Cannot access memory at address 0x18>
        r = <optimized out>
        children = 0x0
        p1 = <optimized out>
        i = 0
        __PRETTY_FUNCTION__ = "cg_is_empty_recursive"
#7 0x000000000040feab in session_terminate_cgroup (s=0x8b6960) at ../src/login/logind-session.c:651
        r = <optimized out>
        k = <optimized out>
#8 session_stop (s=s@entry=0x8b6960) at ../src/login/logind-session.c:709
        __PRETTY_FUNCTION__ = "session_stop"
        __func__ = "session_stop"
#9 0x0000000000409630 in manager_dispatch_other (fd=23, m=0x8a5010) at ../src/login/logind.c:1262
        s = 0x8b6960
        i = <optimized out>
        b = <optimized out>
#10 manager_run (m=m@entry=0x8a5010) at ../src/login/logind.c:1795
        event = {events = 16, data = {ptr = 0x1d, fd = 29, u32 = 29, u64 = 29}}
        n = <optimized out>
        msec = <optimized out>
        __PRETTY_FUNCTION__ = "manager_run"
        __func__ = "manager_run"
#11 0x000000000040622c in main (argc=<optimized out>, argv=<optimized out>) at ../src/login/logind.c:1872
        m = 0x8a5010
        r = 0
        __func__ = "main"

Revision history for this message
In , Lennart-poettering (lennart-poettering) wrote :

nig_free? THat's not an upstream symbol. Please file a bug against Ubuntu.

Changed in systemd:
importance: Unknown → Critical
status: Unknown → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
alex_b (barth-alexander) wrote :

I am still having this bug. I do not think that it is actually a duplicate of bug #1342586 since the later one is fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.