ken@astro-vm:~$ gdb --eval-command="set follow-fork-mode child" --args indiserver -v indi_tcfs_focus GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from indiserver...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/indiserver -v indi_tcfs_focus [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 2017-10-31T10:32:49: startup: /usr/bin/indiserver -v indi_tcfs_focus 2017-10-31T10:32:49: Driver indi_tcfs_focus: pid=3544 rfd=3 wfd=6 efd=7 2017-10-31T10:32:49: listening to port 7624 on fd 4 [New process 3544] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". process 3544 is executing new program: /usr/bin/indi_tcfs_focus [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Thread 2.1 "indi_tcfs_focus" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff7fb0740 (LWP 3544)] 0x000055555555872b in TCFS::ISNewSwitch(char const*, char const*, ISState*, char**, int) () (gdb)