Bug 76468 - Assert on sd-event with SIGTERM
Summary: Assert on sd-event with SIGTERM
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Tom Gundersen
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-21 20:16 UTC by Umut Tezduyar
Modified: 2014-05-20 17:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Umut Tezduyar 2014-03-21 20:16:18 UTC
I have noticed sd-event can complain with assert up on the application receives SIGTERM.

systemctl stop systemd-networkd
[  748.481550] systemd[1]: Stopping Network Service...
[  748.488039] systemd-networkd[800]: Received SIGTERM from PID 1 (systemd).
[  748.494359] systemd-networkd[800]: Assertion 's->event->state != SD_EVENT_FINISHED' failed at /apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1229, function sd_event_source_set_enabled(). Ignoring.
[  748.500794] systemd-networkd[800]: Assertion 's->event->state != SD_EVENT_FINISHED' failed at /apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1229, function sd_event_source_set_enabled(). Ignoring.
[  748.507157] systemd-networkd[800]: Assertion 's->event->state != SD_EVENT_FINISHED' failed at /apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1229, function sd_event_source_set_enabled(). Ignoring.
[  748.511428] systemd-networkd[800]: eth0: DHCP lease lost
[  748.515465] systemd-networkd[800]: DHCP CLIENT: STOPPED
[  748.519437] systemd-networkd[800]: IPv4LL: STOPPED
[  748.541424] systemd-networkd[800]: vlan1: IPv4 link-local release 169.254.51.233
[  748.547655] systemd-networkd[800]: IPv4LL: STOPPED
[  748.562460] systemd[1]: Stopped Network Service.
Comment 1 Umut Tezduyar 2014-04-09 12:38:17 UTC
Stack trace of 3 x "assert_returns"

#0  stack_walk ()
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1316
#1  0x0040bf8c in sd_event_source_set_enabled (s=0x7628a8, m=m@entry=0)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1343
#2  0x0040c0a8 in detach_io_events (bus=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:3038
#3  0x0040c12c in sd_bus_detach_event (bus=bus@entry=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:3097
#4  0x0040c29c in bus_free.5529 (b=b@entry=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:143
#5  0x0040c544 in sd_bus_unref (bus=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:1448
#6  0x00415944 in manager_free (m=m@entry=0x75f178)
    at /rubrik/apps/systemd/systemd/src/network/networkd-manager.c:142
#7  0x00404324 in manager_freep.isra.0 ()
    at /rubrik/apps/systemd/systemd/src/network/networkd.h:257
#8  main (argc=<optimized out>, argv=<optimized out>)
    at /rubrik/apps/systemd/systemd/src/network/networkd.c:28








#0  stack_walk ()
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1316
#1  0x0040bf8c in sd_event_source_set_enabled (s=0x762718, m=m@entry=0)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1343
#2  0x0040c140 in sd_bus_detach_event (bus=bus@entry=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:3100
#3  0x0040c29c in bus_free.5529 (b=b@entry=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:143
#4  0x0040c544 in sd_bus_unref (bus=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:1448
#5  0x00415944 in manager_free (m=m@entry=0x75f178)
    at /rubrik/apps/systemd/systemd/src/network/networkd-manager.c:142
#6  0x00404324 in manager_freep.isra.0 ()
    at /rubrik/apps/systemd/systemd/src/network/networkd.h:257
#7  main (argc=<optimized out>, argv=<optimized out>)
    at /rubrik/apps/systemd/systemd/src/network/networkd.c:28






#0  stack_walk ()
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1316
#1  0x0040bf8c in sd_event_source_set_enabled (s=0x7627e0, m=m@entry=0)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-event/sd-event.c:1343
#2  0x0040c160 in sd_bus_detach_event (bus=bus@entry=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:3105
#3  0x0040c29c in bus_free.5529 (b=b@entry=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:143
#4  0x0040c544 in sd_bus_unref (bus=0x75f238)
    at /rubrik/apps/systemd/systemd/src/libsystemd/sd-bus/sd-bus.c:1448
#5  0x00415944 in manager_free (m=m@entry=0x75f178)
    at /rubrik/apps/systemd/systemd/src/network/networkd-manager.c:142
#6  0x00404324 in manager_freep.isra.0 ()
    at /rubrik/apps/systemd/systemd/src/network/networkd.h:257
#7  main (argc=<optimized out>, argv=<optimized out>)
    at /rubrik/apps/systemd/systemd/src/network/networkd.c:28


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.