Bug 468227 - CPU vs CPU game crash
Summary: CPU vs CPU game crash
Status: RESOLVED DUPLICATE of bug 449639
Alias: None
Product: knights
Classification: Applications
Component: general (show other bugs)
Version: 2.6.22123
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-04-07 04:07 UTC by Ken Rushia
Modified: 2023-04-11 11:56 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Rushia 2023-04-07 04:07:05 UTC
Application: knights (2.6.22123)
 (Compiled from sources)
Qt Version: 5.15.8
Frameworks Version: 5.102.0
Operating System: Linux 5.15.16-gentoo-dist x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
Crash at some point when watching a game with Stockfish vs Stockfish...

The crash can be reproduced every time.

-- Backtrace:
Application: Knights (knights), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#6  std::__atomic_base<int>::operator++ (this=0xc08e59623ff792c4) at /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/atomic_base.h:384
#7  QAtomicOps<int>::ref<int> (_q_value=<error reading variable: Cannot access memory at address 0xc08e59623ff792c4>) at /usr/include/qt5/QtCore/qatomic_cxx11.h:283
#8  QBasicAtomicInteger<int>::ref (this=0xc08e59623ff792c4) at /usr/include/qt5/QtCore/qbasicatomic.h:118
#9  QSharedDataPointer<Knights::MovePrivate>::QSharedDataPointer (o=..., this=0x7ffc5b4edfb8) at /usr/include/qt5/QtCore/qshareddata.h:96
#10 Knights::Move::Move (this=this@entry=0x7ffc5b4edfb0, other=...) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/core/move.cpp:104
#11 0x0000558982e00303 in QtPrivate::indexOf<Knights::Move, Knights::Move> (from=0, u=..., list=...) at /usr/include/qt5/QtCore/qlist.h:1042
#12 QList<Knights::Move>::indexOf (from=0, t=..., this=0x7ffc5b4ee088) at /usr/include/qt5/QtCore/qlist.h:1026
#13 QList<Knights::Move>::removeOne (_t=..., this=0x7ffc5b4ee088) at /usr/include/qt5/QtCore/qlist.h:962
#14 Knights::ChessRules::legalMoves (this=0x55898550bf90, pos=...) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/rules/chessrules.cpp:163
#15 0x0000558982dfc8df in Knights::ChessRules::changeNotation (this=<optimized out>, move=0x7ffc5b4ee2b0, notation=<optimized out>, color=Knights::White) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/rules/chessrules.cpp:584
#16 0x0000558982e018a0 in Knights::ChessRules::checkSpecialFlags (this=0x55898550bf90, move=0x7ffc5b4ee2b0, color=Knights::White) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/rules/chessrules.cpp:285
#17 0x0000558982dfc321 in Knights::ChessRules::changeNotation (this=<optimized out>, move=<optimized out>, notation=<optimized out>, color=<optimized out>) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/rules/chessrules.cpp:631
#18 0x0000558982e02167 in Knights::ChessRules::checkSpecialFlags (this=0x55898550bf90, move=0x7ffc5b4ee400, color=Knights::White) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/rules/chessrules.cpp:280
#19 0x0000558982e14faa in Knights::Manager::processMove (this=0x558982e48580 <(anonymous namespace)::Q_QGS_instance::innerFunction()::holder>, move=...) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/gamemanager.cpp:736
#20 0x00007fded3efa602 in QtPrivate::QSlotObjectBase::call (a=0x7ffc5b4ee520, r=0x558982e48580 <(anonymous namespace)::Q_QGS_instance::innerFunction()::holder>, this=0x5589853bd410) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#21 doActivate<false> (sender=0x558985105020, signal_index=3, argv=0x7ffc5b4ee520) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3923
#22 0x00007fded3ef44ff in QMetaObject::activate (sender=sender@entry=0x558985105020, m=m@entry=0x558982e46020 <Knights::Protocol::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc5b4ee520) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3983
#23 0x0000558982dd8c5e in Knights::Protocol::pieceMoved (this=this@entry=0x558985105020, _t1=...) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3_build/src/knights_autogen/I75TQUSI5N/moc_protocol.cpp:374
#24 0x0000558982dee121 in Knights::UciProtocol::parseLine (this=0x558985105020, line=...) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/proto/uciprotocol.cpp:61
#25 0x0000558982de22f8 in Knights::TextProtocol::readFromDevice (this=0x558985105020) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/proto/textprotocol.cpp:48
#26 0x00007fded3efa602 in QtPrivate::QSlotObjectBase::call (a=0x7ffc5b4ee6c0, r=0x558985105020, this=0x558985503bf0) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#27 doActivate<false> (sender=0x7fdec80093d0, signal_index=3, argv=0x7ffc5b4ee6c0) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3923
#28 0x00007fded3ef44ff in QMetaObject::activate (sender=sender@entry=0x7fdec80093d0, m=m@entry=0x7fded4192980 <QIODevice::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3983
#29 0x00007fded3e1d770 in QIODevice::readyRead (this=this@entry=0x7fdec80093d0) at .moc/moc_qiodevice.cpp:190
#30 0x00007fded3e57397 in QProcessPrivate::tryReadFromChannel (this=0x55898548cf00, channel=0x55898548d010) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/io/qprocess.cpp:1068
#31 0x00007fded3e57748 in QProcessPrivate::_q_canReadStandardOutput (this=<optimized out>) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/io/qprocess.cpp:1084
#32 QProcess::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc5b4ee880) at .moc/moc_qprocess.cpp:208
#33 0x00007fded3efa650 in doActivate<false> (sender=0x5589851f2df0, signal_index=3, argv=0x7ffc5b4ee880) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3935
#34 0x00007fded3ef44ff in QMetaObject::activate (sender=sender@entry=0x5589851f2df0, m=m@entry=0x7fded41961c0 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc5b4ee880) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qobject.cpp:3983
#35 0x00007fded3efda16 in QSocketNotifier::activated (this=this@entry=0x5589851f2df0, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#36 0x00007fded3efe1bb in QSocketNotifier::event (this=0x5589851f2df0, e=0x7ffc5b4ee980) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qsocketnotifier.cpp:302
#37 0x00007fded49833af in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5589851f2df0, e=0x7ffc5b4ee980) at /usr/src/debug/dev-qt/qtwidgets-5.15.8-r2/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:3640
#38 0x00007fded3ec84c0 in QCoreApplication::notifyInternal2 (receiver=0x5589851f2df0, event=0x7ffc5b4ee980) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qcoreapplication.cpp:1064
#39 0x00007fded3f1868e in socketNotifierSourceDispatch (source=0x5589848f94a0) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qeventdispatcher_glib.cpp:107
#40 0x00007fded169b700 in g_main_dispatch (context=0x7fdec8005010) at ../glib-2.74.6/glib/gmain.c:3454
#41 g_main_context_dispatch (context=context@entry=0x7fdec8005010) at ../glib-2.74.6/glib/gmain.c:4172
#42 0x00007fded169b990 in g_main_context_iterate (context=context@entry=0x7fdec8005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.74.6/glib/gmain.c:4248
#43 0x00007fded169ba1c in g_main_context_iteration (context=0x7fdec8005010, may_block=1) at ../glib-2.74.6/glib/gmain.c:4313
#44 0x00007fded3f17cd4 in QEventDispatcherGlib::processEvents (this=0x5589848fa590, flags=...) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#45 0x00007fded3ec6fd3 in QEventLoop::exec (this=this@entry=0x7ffc5b4eeb90, flags=..., flags@entry=...) at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/global/qflags.h:69
#46 0x00007fded3ecf0c5 in QCoreApplication::exec () at /usr/src/debug/dev-qt/qtcore-5.15.8-r3/qtbase-everywhere-src-5.15.8/include/QtCore/../../src/corelib/global/qflags.h:121
#47 0x00007fded42b1c4c in QGuiApplication::exec () at /usr/src/debug/dev-qt/qtgui-5.15.8-r3/qtbase-everywhere-src-5.15.8/src/gui/kernel/qguiapplication.cpp:1870
#48 0x00007fded4983325 in QApplication::exec () at /usr/src/debug/dev-qt/qtwidgets-5.15.8-r2/qtbase-everywhere-src-5.15.8/src/widgets/kernel/qapplication.cpp:2832
#49 0x0000558982dd818a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-apps/knights-22.12.3/knights-22.12.3/src/main.cpp:94
[Inferior 1 (process 31588) detached]

Reported using DrKonqi
Comment 1 Ben Bonacci 2023-04-11 11:56:21 UTC
*** This bug has been marked as a duplicate of bug 449639 ***