×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

[SOLVED] - Segfault w/ latest kstars-bleeding & local build

  • Posts: 152
  • Thank you received: 20
I've been getting a segfault with the latest kstars-bleeding install on a Bionic system (Mint). I'm getting the same result when building/installing locally, which is my normal method of installation. I tried reverting to a known-good commit but have been unable to find one that works. Backtrace below from running kstars-bleeding installed today:

<code>
Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
0x00005555559a0291 in Ekos::FilterManager::initFilterProperties (this=this@entry=0x555559d9c220) at ./kstars/ekos/auxiliary/filtermanager.cpp:259
#0 0x00005555559a0291 in Ekos::FilterManager::initFilterProperties() (this=this@entry=0x555559d9c220) at ./kstars/ekos/auxiliary/filtermanager.cpp:259
#1 0x00005555559a04b0 in Ekos::FilterManager::initFilterProperties() (this=0x555559d9c220) at ./kstars/ekos/auxiliary/filtermanager.cpp:231
#2 0x00005555559a04b0 in Ekos::FilterManager::setCurrentFilterWheel(ISD::GDInterface*) (this=0x555559d9c220, filter=0x55555dd91590) at ./kstars/ekos/auxiliary/filtermanager.cpp:232
#3 0x00005555559b895a in Ekos::Capture::checkFilter(int) (this=this@entry=0x55555d642be0, filterNum=, filterNum@entry=1) at ./kstars/ekos/capture/capture.cpp:1439
#4 0x00005555559cc326 in Ekos::Capture::addFilter(ISD::GDInterface*) (this=0x55555d642be0, newFilter=0x55555dd91590) at ./kstars/ekos/capture/capture.cpp:475
#5 0x0000555555961a81 in Ekos::Manager::setFilter(ISD::GDInterface*) (this=0x555559405f90, filterDevice=<optimized out>) at ./kstars/ekos/manager.cpp:1519
#6 0x00007ffff23ec66f in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7 0x0000555555862712 in INDIListener::newFilter(ISD::GDInterface*) (this=this@entry=0x555559f4b000, _t1=) at ./obj-x86_64-linux-gnu/kstars/KStarsLib_autogen/FRI4DANIHA/moc_indilistener.cpp:415
#8 0x00005555558f199f in INDIListener::registerProperty(INDI::Property*) (this=0x555559f4b000, prop=0x7fffa000ee20) at ./kstars/indi/indilistener.cpp:280
#9 0x00007ffff23ed0c2 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff384283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff384a104 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff23bd8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007ffff23c004d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff2417263 in () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007fffed380417 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007fffed380650 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007fffed3806dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff241688f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007ffff23bb90a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff23c49b4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x000055555562fe53 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./kstars/main.cpp:348
</code>

Not sure how current this build is. It looks like it may have been something fixed since.

I'm not sure how to approach this. It's possible that something became corrupted on the system, but what? Any help is warmly welcome.

Greg
Last edit: 3 years 6 months ago by Greg.
3 years 6 months ago #61766

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 20
This is a backtrace from a build of the latest in git. Seems to be different than the one above.
#0  0x00007fffefd61811 in __strlen_avx2 ()
    at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1  0x00007ffff2263d0d in QString::compare_helper(QChar const*, int, char const*, int, Qt::CaseSensitivity) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00005555558d8709 in QString::operator==(char const*) const (s=0x1f00000000 <error: Cannot access memory at address 0x1f00000000>, this=<optimized out>)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1185
#3  0x00005555558d8709 in INDIListener::registerProperty(INDI::Property*) (this=0x555559f3b710, prop=0x7fffa0050230)
    at /home/schwim/src/kstars/kstars/indi/indilistener.cpp:242
#4  0x00007ffff23ed0c2 in QObject::event(QEvent*) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff384283c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007ffff384a104 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007ffff23bd8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffff23c004d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ffff2417263 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fffed380417 in g_main_context_dispatch ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#11 0x00007fffed380650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007fffed3806dc in g_main_context_iteration ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff241688f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff23bb90a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff23c49b4 in QCoreApplication::exec() ()
    at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x000055555562f42b in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /home/schwim/src/kstars/kstars/main.cpp:348
 
 
3 years 6 months ago #61767

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 20
Looks to be possibly related to indiserver. If I run indiserver outside of ekos there is no crash. Testing further.
3 years 6 months ago #61774

Please Log in or Create an account to join the conversation.

is INDI also latest?
3 years 6 months ago #61780

Please Log in or Create an account to join the conversation.

  • Posts: 152
  • Thank you received: 20
INDI was a bit behind so after I got things working externally I pulled an rebuilt it. Had a full imaging session go smoothly last night. All is working now. Thanks!
Last edit: 3 years 6 months ago by Greg.
3 years 6 months ago #61796

Please Log in or Create an account to join the conversation.

Time to create page: 0.298 seconds