Failed to bind console to 'unxs:@murphy-console' => crash #7
Description
I compiled afd08b5 with:
./configure --prefix=/data/runtests/install/host/murphy --enable-gpl --enable-libdbus --enable-console --with-resources --disable-websockets
When I run it now with (or without valgrind):
valgrind murphyd -d -v -f -c /home/nightly/testing/murphy.conf
it fails:
E: Failed to bind console to 'unxs:@murphy-console'.
E: Failed to start plugin console (console).
E: resource-native: can't bind to address unxs:@murphy-resource-native
_select_audio_owner: $audio_playback_owner
update(audio_owner)
E: Failed to bind console to 'unxs:@murphy-console'.
E: Failed to start plugin console (console).
Graph edges:
0 1
$audio_playback_owne: 0 1
_select_audio_owner: 0 0
Graph edges:
0 1 2
$audio_playback_owne: 0 1 0
_select_audio_owner: 0 0 1
autoupdate: 0 0 0
==6788== Invalid read of size 8
==6788== at 0x7CF3D0A: closed_evt (plugin-resource-native.c:796)
==6788== by 0x63B8669: strm_recv_cb (stream-transport.c:434)
==6788== by 0x63A46C9: dispatch_poll_events (mainloop.c:1948)
==6788== by 0x63A4C06: mrp_mainloop_dispatch (mainloop.c:2023)
==6788== by 0x63A4C6C: mrp_mainloop_iterate (mainloop.c:2037)
==6788== by 0x63A4CA5: mrp_mainloop_run (mainloop.c:2044)
==6788== by 0x405800: run_mainloop (daemon.c:241)
==6788== by 0x405990: main (daemon.c:292)
==6788== Address 0x687072756d000001 is not stack'd, malloc'd or (recently) free'd
==6788==
==6788==
==6788== Process terminating with default action of signal 11 (SIGSEGV)
==6788== General Protection Fault
==6788== at 0x7CF3D0A: closed_evt (plugin-resource-native.c:796)
==6788== by 0x63B8669: strm_recv_cb (stream-transport.c:434)
==6788== by 0x63A46C9: dispatch_poll_events (mainloop.c:1948)
==6788== by 0x63A4C06: mrp_mainloop_dispatch (mainloop.c:2023)
==6788== by 0x63A4C6C: mrp_mainloop_iterate (mainloop.c:2037)
==6788== by 0x63A4CA5: mrp_mainloop_run (mainloop.c:2044)
==6788== by 0x405800: run_mainloop (daemon.c:241)
==6788== by 0x405990: main (daemon.c:292)
It shouldn't crash in case of a setup problem.
Of course, it also shouldn't fail to set up the plugins in the first place.