astroberry@astroberry:~ $ gdb -ex "set follow-fork-mode child" -ex run --args indiserver -v indi_toupcam_ccd GNU gdb (Raspbian 8.2.1-2) 8.2.1 Copyright (C) 2018 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 "arm-linux-gnueabihf". 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. Starting program: /usr/bin/indiserver -v indi_toupcam_ccd [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". 2021-03-03T11:45:59: startup: /usr/bin/indiserver -v indi_toupcam_ccd [Attaching after Thread 0x76ffa090 (LWP 1459) fork to child process 1463] [New inferior 2 (process 1463)] [Detaching after fork from parent process 1459] [Inferior 1 (process 1459) detached] 2021-03-03T11:45:59: Driver indi_toupcam_ccd: pid=1463 rfd=3 wfd=6 efd=7 2021-03-03T11:45:59: listening to port 7624 on fd 4 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". process 1463 is executing new program: /usr/bin/indi_toupcam_ccd [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". 2021-03-03T11:46:04: Client 0: new arrival from 127.0.0.1:48236 - welcome! [New Thread 0x748330c0 (LWP 1466)] [Thread 0x748330c0 (LWP 1466) exited] 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Telescope Simulator.TELESCOPE_INFO 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Telescope Simulator.GEOGRAPHIC_COORD 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Telescope Simulator.TELESCOPE_PIER_SIDE 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Rotator Simulator.ABS_ROTATOR_ANGLE 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Focuser Simulator.ABS_FOCUS_POSITION 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on Focuser Simulator.FOCUS_TEMPERATURE 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on CCD Simulator.FILTER_SLOT 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on CCD Simulator.FILTER_NAME 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on SQM.SKY_QUALITY 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on EQMod Mount.EQUATORIAL_EOD_COORD 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on EQMod Mount.TELESCOPE_INFO 2021-03-03T11:46:06: Driver indi_toupcam_ccd: snooping on EQMod Mount.GEOGRAPHIC_COORD Thread 2.1 "indi_toupcam_cc" received signal SIGPIPE, Broken pipe. [Switching to Thread 0x74834010 (LWP 1463)] __GI___libc_write (nbytes=22, buf=0x7effbb94, fd=2) at ../sysdeps/unix/sysv/linux/write.c:26 26 ../sysdeps/unix/sysv/linux/write.c: No such file or directory. (gdb) bt #0 __GI___libc_write (nbytes=22, buf=0x7effbb94, fd=2) at ../sysdeps/unix/sysv/linux/write.c:26 #1 __GI___libc_write (fd=2, buf=0x7effbb94, nbytes=22) at ../sysdeps/unix/sysv/linux/write.c:24 #2 0x75fdc7b8 in _IO_new_file_write (f=0x760bdcf0 <_IO_2_1_stderr_>, data=0x7effbb94, n=22) at fileops.c:1183 #3 0x75fdb960 in new_do_write (fp=fp@entry=0x760bdcf0 <_IO_2_1_stderr_>, data=data@entry=0x7effbb94 "indi_toupcam_ccd: EOF\n", to_do=to_do@entry=22) at libioP.h:839 #4 0x75fdcf14 in _IO_new_file_xsputn (n=22, data=, f=0x760bdcf0 <_IO_2_1_stderr_>) at fileops.c:1262 #5 _IO_new_file_xsputn (f=0x760bdcf0 <_IO_2_1_stderr_>, data=, n=22) at fileops.c:1204 #6 0x75fb6918 in buffered_vfprintf (s=s@entry=0x760bdcf0 <_IO_2_1_stderr_>, format=format@entry=0x76eeb098 "%s: EOF\n", args=...) at ../libio/libioP.h:839 #7 0x75fb4458 in _IO_vfprintf_internal ( s=s@entry=0x760bdcf0 <_IO_2_1_stderr_>, format=format@entry=0x76eeb098 "%s: EOF\n", ap=..., ap@entry=...) at vfprintf.c:1296 #8 0x76059f30 in ___fprintf_chk (fp=0x760bdcf0 <_IO_2_1_stderr_>, flag=1, format=0x76eeb098 "%s: EOF\n") at fprintf_chk.c:35 #9 0x76e54f48 in ?? () from /usr/lib/arm-linux-gnueabihf/libindidriver.so.1 --Type for more, q to quit, c to continue without paging--c Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb)