Comment 6 for bug 1863590

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I added some
  read -p "Press enter to continue"
into the test to see if the chronyd processes exist in the real test before reaching some stage.

It starts/hangs/crashes inside this stage:
run_test || test_fail

Debugging into this function leads to start_client from clknetsim

It does all kind of stuff including LD_PRELOAD

LD_PRELOAD=/home/ubuntu/clknetsim-156b8e4f63fd8174104e3dd05bda19166b5ab0ac//clknetsim.so CLKNETSIM_NODE=1 CLKNETSIM_SOCKET=tmp/sock chronyd -d -f tmp/conf.1
cho LD_PRELOAD=/home/ubuntu/clknetsim-156b8e4f63fd8174104e3dd05bda19166b5ab0ac//clknetsim.so CLKNETSIM_NODE=2 CLKNETSIM_SOCKET=tmp/sock chronyd -d -f tmp/conf.2

Here I finally hit the early init fail:

$ export PATH="../../:$PATH"
LD_PRELOAD=/home/ubuntu/clknetsim-156b8e4f63fd8174104e3dd05bda19166b5ab0ac//clknetsim.so CLKNETSIM_NODE=1 CLKNETSIM_SOCKET=tmp/sock chronyd -d -f tmp/conf.1
chronyd: client.c:2162: syscall: Assertion `0' failed.
Aborted (core dumped)