Here is my gdb output, it's libcfitsio who is crashing:
astro@astro-MacBookPro:~$ gdb --args kstars
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
gnu.org/licenses/gpl.html>
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:
<
www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<
www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kstars...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kstars
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe2b84700 (LWP 13085)]
[New Thread 0x7fffd4223700 (LWP 13086)]
[New Thread 0x7fffd3a22700 (LWP 13087)]
[New Thread 0x7fffd15ae700 (LWP 13093)]
[New Thread 0x7fffc3fff700 (LWP 13094)]
[New Thread 0x7fffc3fff700 (LWP 13095)]
[Thread 0x7fffc3fff700 (LWP 13094) exited]
[Thread 0x7fffc3fff700 (LWP 13095) exited]
[New Thread 0x7fffc3fff700 (LWP 13101)]
[Thread 0x7fffd4223700 (LWP 13086) exited]
[Thread 0x7fffd3a22700 (LWP 13087) exited]
Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
0x00007ffff54883f4 in ffclos () from /usr/lib/x86_64-linux-gnu/libcfitsio.so.2