How to debug *** stack smashing detected ***: terminated
Unsolved
General and Desktop
-
Hi My Qt application encountered this error after running for a long time (probably a couple of hours):
*** stack smashing detected ***: terminated
I know there must be some stack overflow issues but I'm not sure how to debug it.
The debug mode in QCreator shows the following log but I cannot figure out where it it exactly causing the problem. Anyone help me? Thanks in advance.
1 __GI_raise raise.c 50 0x7ffff643000b 2 __GI_abort abort.c 79 0x7ffff640f859 3 __libc_message libc_fatal.c 155 0x7ffff647a26e 4 __GI___fortify_fail fortify_fail.c 26 0x7ffff651caba 5 __stack_chk_fail stack_chk_fail.c 24 0x7ffff651ca86 6 ?? 0x7ffff6a72c00 7 QCoreApplication::postEvent(QObject *, QEvent *, int) 0x555556b53cef 8 QWidgetRepaintManager::sendUpdateRequest(QWidget *, QWidgetRepaintManager::UpdateTime) [clone .part.0] 0x55555662bd42 9 void QWidgetRepaintManager::markDirty<QRect>(QRect const&, QWidget *, QWidgetRepaintManager::UpdateTime, QWidgetRepaintManager::BufferState) 0x55555662c020 10 void QWidgetPrivate::update<QRect>(QRect) 0x5555563c5608 11 QLabelPrivate::_q_movieUpdated(QRect const&) 0x5555564710f1 12 QLabel::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *) 0x555556471307 13 void doActivate<false>(QObject *, int, void * *) 0x555556b73575 14 QMoviePrivate::_q_loadNextFrame(bool) 0x55555673b166 15 QMovie::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *) 0x55555673b666 16 void doActivate<false>(QObject *, int, void * *) 0x555556b73575 17 QTimer::timerEvent(QTimerEvent *) 0x555556b7cc66 18 QObject::event(QEvent *) 0x555556b70a75 19 QApplicationPrivate::notify_helper(QObject *, QEvent *) 0x5555563a1f43 20 QApplication::notify(QObject *, QEvent *) 0x5555563ab510 21 QCoreApplication::sendEvent(QObject *, QEvent *) 0x555556b50a98 22 QTimerInfoList::activateTimers() 0x555556b96354 23 timerSourceDispatch(_GSource *, int ( *)(void *), void *) 0x555556b9673c 24 g_main_context_dispatch 0x7ffff6a2a17d 25 ?? 0x7ffff6a2a400 26 g_main_context_iteration 0x7ffff6a2a4a3 27 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 0x555556b96b32 28 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) 0x555556b4f416 29 QCoreApplication::exec() 0x555556b5734a 30 main main.cpp 46 0x55555568cbff
-
@dalishi said in How to debug *** stack smashing detected ***: terminated:
void doActivate<false>(QObject *, int, void * *)
What is it doing?