First of all, big thank you to Richard and all the contributors for
making and maintaining this incredibly useful open source project!

I am having some problems on a network of about 50 devices trying to
sync via ptp4l. I figured it was worth building and deploying the
latest code to see if it might address the problems.

So this morning I downloaded and built the latest code from github and
found that phc2sys would occasionally segfault on startup, due to the
following:

phc2sys.c line 1481:
  config_set_string(cfg, "uds_address", uds_remotes[0]);

I fixed it as follows:

if (uds_remote_cnt>0)
  config_set_string(cfg, "uds_address", uds_remotes[0]);

This is the command line that would trigger the crash (only occasionally):

./phc2sys -c eno1 -s CLOCK_REALTIME -m -w

Running with valgrind caught the error every time.

Best,

Trey


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to