In article <0273857b-9ab1-4aaf-9529-c9b7eb932...@w39g2000prb.googlegroups.com>,
 dhavey <dha...@gmail.com> writes:
>I ran the code in gdb and this is the stack trace.  At refclock_nmea.c:
>178 this code causes the crash
>nmea_port = atoi(strtok(NULL,":"));
>
>I am not really sure of why strtok is used on a NULL string.  I assume
>strtok return a NULL based on the trace, and then atoi calls strtool
>which leads to a crash.  Possibly, this is a libc64 bug, as I would
>expect atoi to detect a null string and not to crash.

You are off in the pile of code that's trying to get NMEA info
over the net from a deamon.  That happend when it can't open
/dev/gps0.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.

_______________________________________________
questions mailing list
questions@lists.ntp.org
https://lists.ntp.org/mailman/listinfo/questions

Reply via email to