<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd-timesyncd segfaults when there's no network (systemd-216)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83091#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd-timesyncd segfaults when there's no network (systemd-216)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83091">bug 83091</a>
from <span class="vcard"><a class="email" href="mailto:steven@uplinklabs.net" title="Steven Noonan <steven@uplinklabs.net>"> <span class="fn">Steven Noonan</span></a>
</span></b>
<pre>Looking a little bit further. It runs through manager_connect without any
issues once. About ten seconds later it calls manager_connect again, and this
time the null deref occurs.
On the second call, server_name_flush_addresses gets called, which ends up
here:
(gdb) bt
#0 manager_set_server_address (m=0x555555577480, a=a@entry=0x0) at
src/timesync/timesyncd-manager.c:758
#1 0x000055555555b4f3 in server_address_free (a=0x555555578bb0) at
src/timesync/timesyncd-server.c:62
#2 0x000055555555b810 in server_name_flush_addresses (n=0x5555555788c0) at
src/timesync/timesyncd-server.c:150
#3 0x00005555555595fe in manager_connect (m=m@entry=0x555555577480) at
src/timesync/timesyncd-manager.c:899
#4 0x000055555555ab0c in manager_timeout (source=<optimized out>,
usec=<optimized out>, userdata=0x555555577480) at
src/timesync/timesyncd-manager.c:158
#5 0x000055555556125d in source_dispatch (s=0x555555579290) at
src/libsystemd/sd-event/sd-event.c:2043
#6 0x0000555555561ad8 in sd_event_run (e=e@entry=0x555555577790,
timeout=<optimized out>, timeout@entry=18446744073709551615) at
src/libsystemd/sd-event/sd-event.c:2333
#7 0x0000555555561bc1 in sd_event_loop (e=0x555555577790) at
src/libsystemd/sd-event/sd-event.c:2352
#8 0x0000555555558639 in main (argc=<optimized out>, argv=<optimized out>) at
src/timesync/timesyncd.c:143
The manager_set_server_address sets m->current_server_name to NULL.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>