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)
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- 156b8e4f63fd817 4104e3dd05bda19 166b5ab0ac/ /clknetsim. so CLKNETSIM_NODE=1 CLKNETSIM_ SOCKET= tmp/sock chronyd -d -f tmp/conf.1 /home/ubuntu/ clknetsim- 156b8e4f63fd817 4104e3dd05bda19 166b5ab0ac/ /clknetsim. so CLKNETSIM_NODE=2 CLKNETSIM_ SOCKET= tmp/sock chronyd -d -f tmp/conf.2
cho LD_PRELOAD=
Here I finally hit the early init fail:
$ export PATH="../../:$PATH" /home/ubuntu/ clknetsim- 156b8e4f63fd817 4104e3dd05bda19 166b5ab0ac/ /clknetsim. so CLKNETSIM_NODE=1 CLKNETSIM_ SOCKET= tmp/sock chronyd -d -f tmp/conf.1
LD_PRELOAD=
chronyd: client.c:2162: syscall: Assertion `0' failed.
Aborted (core dumped)