Bug 442813 - Crash upon closing knights
Summary: Crash upon closing knights
Status: RESOLVED DUPLICATE of bug 429654
Alias: None
Product: knights
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.6.21081
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-22 17:38 UTC by C
Modified: 2022-04-15 08:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C 2021-09-22 17:38:02 UTC
Application: knights (2.6.21081)

Qt Version: 5.15.3
Frameworks Version: 5.87.0
Operating System: Linux 5.11.0-36-generic x86_64
Windowing System: X11
Distribution: KDE neon Testing Edition
DrKonqi: 5.22.90 [CoredumpBackend]

-- Information about the crash:
- Custom settings of the application:

GNUchess selected as chess engine

Made one move, GNEchess made a move, closed the app and was informed that it crashed.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Knights (knights), signal: Aborted

[New LWP 1803]
[New LWP 1797]
[New LWP 1804]
[New LWP 1805]
[New LWP 1800]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/games/knights --icon knights -qwindowtitle Knights'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50
[Current thread is 1 (Thread 0x7fa58e294700 (LWP 1803))]
__preamble__
[Current thread is 1 (Thread 0x7fa58e294700 (LWP 1803))]

Thread 5 (Thread 0x7fa58f949700 (LWP 1800)):
#0  0x00007fa596086aff in __GI___poll (fds=0x7fa58001aec0, nfds=4, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa59405336e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa5940534a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa5967a35d2 in QEventDispatcherGlib::processEvents (this=0x7fa580000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#4  0x00007fa59674787b in QEventLoop::exec (this=this@entry=0x7fa58f948bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fa596561292 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fa59777ef4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fa59656242c in QThreadPrivate::start (arg=0x7fa597802d80) at thread/qthread_unix.cpp:329
#8  0x00007fa594c6f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fa596093293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fa58d06b700 (LWP 1805)):
#0  futex_abstimed_wait_cancelable (private=0, abstime=0x0, clockid=0, expected=0, futex_word=0x5587ef4640b0) at ../sysdeps/nptl/futex-internal.h:320
#1  do_futex_wait (sem=sem@entry=0x5587ef4640b0, abstime=0x0, clockid=0) at sem_waitcommon.c:112
#2  0x00007fa594c794e8 in __new_sem_wait_slow (sem=0x5587ef4640b0, abstime=0x0, clockid=0) at sem_waitcommon.c:184
#3  0x00007fa595ec7fe9 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#4  0x00007fa595e8d2dd in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#5  0x00007fa595ec7b57 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#6  0x00007fa594c6f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fa596093293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fa58da93700 (LWP 1804)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fa58400bd3c) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5587ef462a60, cond=0x7fa58400bd10) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7fa58400bd10, mutex=0x5587ef462a60) at pthread_cond_wait.c:638
#3  0x00007fa58e59087c in pa_threaded_mainloop_wait () from /lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007fa595ec1496 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#5  0x00007fa595ec7b57 in ?? () from /lib/x86_64-linux-gnu/libopenal.so.1
#6  0x00007fa594c6f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fa596093293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa5913d59c0 (LWP 1797)):
[KCrash Handler]
#4  0x00007fa53a7f761b in QtPrivate::indexOf<QTextToSpeechEngineSpeechd*, QTextToSpeechEngineSpeechd*> (from=0, u=@0x7ffd38fcb810: 0x5587f0cac4f0, list=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:119
#5  QList<QTextToSpeechEngineSpeechd*>::indexOf (from=0, t=@0x7ffd38fcb810: 0x5587f0cac4f0, this=0x7fa53a7fc028 <(anonymous namespace)::Q_QGS_backends::innerFunction()::holder>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:1026
#6  QList<QTextToSpeechEngineSpeechd*>::removeAll (this=this@entry=0x7fa53a7fc028 <(anonymous namespace)::Q_QGS_backends::innerFunction()::holder>, _t=@0x7ffd38fcb810: 0x5587f0cac4f0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:936
#7  0x00007fa53a7f224b in QTextToSpeechEngineSpeechd::~QTextToSpeechEngineSpeechd (this=0x5587f0cac4f0, __in_chrg=<optimized out>) at qtexttospeech_speechd.cpp:52
#8  0x00007fa53a7f3a3d in QTextToSpeechEngineSpeechd::~QTextToSpeechEngineSpeechd (this=0x5587f0cac4f0, __in_chrg=<optimized out>) at qtexttospeech_speechd.cpp:73
#9  0x00007fa597bdddea in QTextToSpeechPrivate::~QTextToSpeechPrivate (this=0x5587f0a416c0, __in_chrg=<optimized out>) at qtexttospeech.cpp:88
#10 0x00007fa597bdde4d in QTextToSpeechPrivate::~QTextToSpeechPrivate (this=0x5587f0a416c0, __in_chrg=<optimized out>) at qtexttospeech.cpp:85
#11 0x00007fa59677de0e in QScopedPointerDeleter<QObjectData>::cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:52
#12 QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::~QScopedPointer (this=0x5587f0d763e8, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:107
#13 QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:972
#14 0x00007fa597be317b in QTextToSpeech::~QTextToSpeech (this=0x5587f0d763e0, __in_chrg=<optimized out>) at .moc/../qtexttospeech.h:54
#15 QTextToSpeech::~QTextToSpeech (this=0x5587f0d763e0, __in_chrg=<optimized out>) at .moc/../qtexttospeech.h:54
#16 0x00007fa59677339e in QObjectPrivate::deleteChildren (this=0x5587ef42cc10) at kernel/qobject.cpp:2104
#17 0x00007fa59677ddc6 in QObject::~QObject (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#18 0x00005587eec0fced in (anonymous namespace)::Q_QGS_instance::Holder::~Holder (this=<optimized out>, __in_chrg=<optimized out>) at ./src/gamemanager.cpp:139
#19 0x00007fa595fbaa27 in __run_exit_handlers (status=0, listp=0x7fa59615c718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#20 0x00007fa595fbabe0 in __GI_exit (status=<optimized out>) at exit.c:139
#21 0x00007fa595f980ba in __libc_start_main (main=0x5587eebc5620 <main(int, char**)>, argc=5, argv=0x7ffd38fcbb68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd38fcbb58) at ../csu/libc-start.c:342
#22 0x00005587eebc5c3e in _start ()

Thread 1 (Thread 0x7fa58e294700 (LWP 1803)):
[KCrash Handler]
#3  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#4  0x00007fa595f96859 in __GI_abort () at abort.c:79
#5  0x00007fa58e505119 in pa_fdsem_post () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#6  0x00007fa58e51d457 in pa_srbchannel_write () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#7  0x00007fa58e51b6a5 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#8  0x00007fa58e51c71a in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#9  0x00007fa58e51caea in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#10 0x00007fa58e51d37a in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#11 0x00007fa58e581ba3 in pa_mainloop_dispatch () from /lib/x86_64-linux-gnu/libpulse.so.0
#12 0x00007fa58e581ed2 in pa_mainloop_iterate () from /lib/x86_64-linux-gnu/libpulse.so.0
#13 0x00007fa58e581f70 in pa_mainloop_run () from /lib/x86_64-linux-gnu/libpulse.so.0
#14 0x00007fa58e59011d in ?? () from /lib/x86_64-linux-gnu/libpulse.so.0
#15 0x00007fa58e52c72c in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-13.99.so
#16 0x00007fa594c6f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#17 0x00007fa596093293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Reported using DrKonqi
Comment 1 Alexander Semke 2022-04-15 08:44:12 UTC
This crash is happening in QTextToSpeech and it's not something that can be addressed in knights. Updating to a newer version of this library might help. In knights we're going to provide an option to disable the voice. This option makes sense in general anyway and was already requested in BUG: 429654. Once the voice is disabled this crash won't happen anymore. So, we'll address this in  BUG: 429654.

*** This bug has been marked as a duplicate of bug 429654 ***