Core was generated by `gpsd /dev/ttyS11 -n -F /var/run/gpsd.sock'. Program terminated with signal 11, Segmentation fault. #0 0x10003118 in detach_client (sub=0x100e9758) at gpsd.c:586 586 FD_CLR(sub->fd, &all_fds); (gdb) where #0 0x10003118 in detach_client (sub=0x100e9758) at gpsd.c:586 #1 0x100091b4 in main (argc=5, argv=0xbfe38e34) at gpsd.c:2338 (gdb) p sub->fd $1 = -1 (gdb)