I often get crashes when using internal solver. I switched to using ASTAP, and that problem went away. But I wanted to try to narrow down the cause of the crash. When I built kstars, I specifed -DCMAKE_BUILD_TYPE=Debug but that didn't seem to help much with stack traces. Here's my stack trace when it crashed.
(gdb) bt
#0 0xb03bef24 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0xb03aa230 in __GI_abort () at abort.c:79
#2 0xb03fa51c in __libc_message (action=action@entry=(do_abort | do_backtrace), fmt=<optimized out>;) at ../sysdeps/posix/libc_fatal.c:181
#3 0xb03fa568 in __GI___libc_fatal (message=0xb04c0320 "Fatal error: glibc detected an invalid stdio handle\n") at ../sysdeps/posix/libc_fatal.c:191
#4 0xb03fae7c in _IO_vtable_check () at vtables.c:72
#5 0xb03fe90c in IO_validate_vtable (vtable=0x1cf6b00b) at libioP.h:838
#6 0xb03fe90c in __GI___overflow (f=<optimized out>, ch=<optimized out>;) at genops.c:203
#7 0xb229774c in error_reportv () at /usr/local/lib/libstellarsolver.so.1
#8 0xb2297698 in error_report () at /usr/local/lib/libstellarsolver.so.1
#9 0xb2297540 in report_errno () at /usr/local/lib/libstellarsolver.so.1
#10 0xb227957c in read_chunk () at /usr/local/lib/libstellarsolver.so.1
#11 0xb22796fc in fitsbin_read () at /usr/local/lib/libstellarsolver.so.1
#12 0xb225971c in my_open () at /usr/local/lib/libstellarsolver.so.1
#13 0xb2259864 in quadfile_open_fits () at /usr/local/lib/libstellarsolver.so.1
#14 0xb2251fb4 in index_reload () at /usr/local/lib/libstellarsolver.so.1
#15 0xb2251cf8 in index_load () at /usr/local/lib/libstellarsolver.so.1
#16 0xb2230ce4 in engine_add_index () at /usr/local/lib/libstellarsolver.so.1
#17 0xb2230834 in engine_autoindex_search_paths () at /usr/local/lib/libstellarsolver.so.1
#18 0xb21eaf00 in InternalSextractorSolver::runInternalSolver()() at /usr/local/lib/libstellarsolver.so.1
#19 0xb21e6760 in InternalSextractorSolver::run()() at /usr/local/lib/libstellarsolver.so.1
#20 0xb0d46b58 in () at /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5
#21 0xb1af6494 in start_thread (arg=0x908fe0a0) at pthread_create.c:486
#22 0xb046a578 in () at ../sysdeps/unix/sysv/linux/arm/clone.S:73(gdb)
As you can see, it doesn't look like there's much debug info for libstellarsolver.so. Are there different options for building that I should be using to get debug info?