Bug 406638

Summary: Crash while running EKOS with simulated telescope and CCD
Product: [Applications] kstars Reporter: elladan
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.2.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: GDB debug info

Description elladan 2019-04-17 20:04:01 UTC
Created attachment 119470 [details]
GDB debug info

SUMMARY

I tried running a simulated observation using the version of kstars in the mutlaqja/ppa, and it crashed, possibly while mousing around the UI.

STEPS TO REPRODUCE

Honestly it crashes 100% of the time I've attempted to do this, but at different points each time.

1. Set up indi, including a simulated guide camera.
2. Start guiding in EKOS (or not).
3. Start an observation sequence (or not).

OBSERVED RESULT

Program terminated with signal SIGSEGV, Segmentation fault.
#0  bool FITSView::rescale<unsigned short>(FITSZoom)::{lambda()#1}::operator()() const (__closure=0x4b21d10)
    at ./kstars/fitsviewer/fitsview.cpp:603
603	./kstars/fitsviewer/fitsview.cpp: No such file or directory.

EXPECTED RESULT

No sequence of 1's and 0's should result in a segmentation fault.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 18.04.2 LTS on a Raspberry Pi 3
Kstars debian package: 6:3.2.0+201904141849~ubuntu18.04.1

ADDITIONAL INFORMATION

I have the core file if you'd like it.

(gdb) bt
#0  bool FITSView::rescale<unsigned short>(FITSZoom)::{lambda()#1}::operator()() const (__closure=0x4b21d10)
    at ./kstars/fitsviewer/fitsview.cpp:603
#1  QtConcurrent::StoredFunctorCall0<void, bool FITSView::rescale<unsigned short>(FITSZoom)::{lambda()#1}>::runFunctor() (this=0x4b21d00) at /usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/qtconcurrentstoredfunctioncall.h:70
#2  0x00633530 in QtConcurrent::RunFunctionTask<void>::run (this=0x4b21d00)
    at /usr/include/arm-linux-gnueabihf/qt5/QtConcurrent/qtconcurrentrunbase.h:136
#3  0x756923c0 in ?? () from /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5
#4  0x756943ce in ?? () from /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5
#5  0x7526e614 in start_thread (arg=0x7b05109d) at pthread_create.c:463
#6  0x74e607fc in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) info args
__closure = 0x4b21d10
(gdb) info locals
i = 1044
runningBuffer = 0x5a8fe308
scanLine = <optimized out>
buffer = 0x5a889008
this = 0x3c31390
bscale = 5.1254216397405914
j = 160
bzero = -1125.480092473646
buffer = <optimized out>
j = <optimized out>
this = <optimized out>
bscale = <optimized out>
bzero = <optimized out>
runningBuffer = <optimized out>
scanLine = <optimized out>
i = <optimized out>