Bug 309863 - just playing when crashes
Summary: just playing when crashes
Status: RESOLVED FIXED
Alias: None
Product: ksirk
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Gaël de Chalendar (aka Kleag)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-10 16:13 UTC by taopy
Modified: 2013-02-05 21:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description taopy 2012-11-10 16:13:52 UTC
Application: ksirk (4.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.3
Operating System: Linux 3.6.6-1.fc17.x86_64 x86_64
Distribution: "Fedora release 17 (Beefy Miracle)"

-- Information about the crash:
- What I was doing when the application crashed:

I was just playing it.Hmmmm...I'm trying to get the nation information.

-- Backtrace:
Application: KsirK (ksirk), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f2fc5d85880 (LWP 3157))]

Thread 7 (Thread 0x7f2fb68e1700 (LWP 3432)):
#0  0x000000380d20e0ad in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x000000380c682cdf in read (__nbytes=16, __buf=0x7f2fb68e0b10, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#2  g_wakeup_acknowledge (wakeup=0x1ba6030) at gwakeup.c:212
#3  0x000000380c647679 in g_main_context_check (context=context@entry=0x7f2fb0002660, max_priority=2147483647, fds=fds@entry=0x7f2fb0002430, n_fds=n_fds@entry=1) at gmain.c:2980
#4  0x000000380c647a92 in g_main_context_iterate (context=context@entry=0x7f2fb0002660, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3143
#5  0x000000380c647c14 in g_main_context_iteration (context=0x7f2fb0002660, may_block=1) at gmain.c:3207
#6  0x00000033c85a5ff6 in QEventDispatcherGlib::processEvents (this=0x7f2fb0000910, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00000033c8576cbf in QEventLoop::processEvents (this=this@entry=0x7f2fb68e0cd0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00000033c8576f48 in QEventLoop::exec (this=0x7f2fb68e0cd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00000033c84787e0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00000033c85574df in QInotifyFileSystemWatcherEngine::run (this=0x263ab90) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00000033c847b7bc in QThreadPrivate::start (arg=0x263ab90) at thread/qthread_unix.cpp:338
#12 0x000000380d207d14 in start_thread (arg=0x7f2fb68e1700) at pthread_create.c:309
#13 0x000000380caf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7f2facffb700 (LWP 6143)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x000000380c683bff in g_cond_wait (cond=0x7f2f94149b80, mutex=<optimized out>) at gthread-posix.c:746
#2  0x000000382b882f33 in ?? () from /lib64/libgstreamer-0.10.so.0
#3  0x000000380c66ac92 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:309
#4  0x000000380c66a495 in g_thread_proxy (data=0x7f2f98006ad0) at gthread.c:801
#5  0x000000380d207d14 in start_thread (arg=0x7f2facffb700) at pthread_create.c:309
#6  0x000000380caf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7f2fa2bbc700 (LWP 6144)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x000000380c683bff in g_cond_wait (cond=0x7f2f94165b60, mutex=<optimized out>) at gthread-posix.c:746
#2  0x000000382b882f33 in ?? () from /lib64/libgstreamer-0.10.so.0
#3  0x000000380c66ac92 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:309
#4  0x000000380c66a495 in g_thread_proxy (data=0x7f2f90003450) at gthread.c:801
#5  0x000000380d207d14 in start_thread (arg=0x7f2fa2bbc700) at pthread_create.c:309
#6  0x000000380caf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f2f8b1da700 (LWP 6145)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x000000380c683bff in g_cond_wait (cond=0x1971020, mutex=<optimized out>) at gthread-posix.c:746
#2  0x000000382d01e2ec in gst_base_sink_wait_preroll () from /lib64/libgstbase-0.10.so.0
#3  0x000000382e81f418 in ?? () from /lib64/libgstaudio-0.10.so.0
#4  0x000000382d020859 in ?? () from /lib64/libgstbase-0.10.so.0
#5  0x000000382d02225f in ?? () from /lib64/libgstbase-0.10.so.0
#6  0x000000382d022768 in ?? () from /lib64/libgstbase-0.10.so.0
#7  0x000000382d022aa3 in ?? () from /lib64/libgstbase-0.10.so.0
#8  0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#9  0x000000382d03053c in ?? () from /lib64/libgstbase-0.10.so.0
#10 0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#11 0x000000382d03053c in ?? () from /lib64/libgstbase-0.10.so.0
#12 0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#13 0x000000382d03053c in ?? () from /lib64/libgstbase-0.10.so.0
#14 0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#15 0x00007f2fb5a8fe46 in ?? () from /usr/lib64/gstreamer-0.10/libgstcoreelements.so
#16 0x000000382b882d64 in ?? () from /lib64/libgstreamer-0.10.so.0
#17 0x000000380c66ac92 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:309
#18 0x000000380c66a495 in g_thread_proxy (data=0x7f2f900035e0) at gthread.c:801
#19 0x000000380d207d14 in start_thread (arg=0x7f2f8b1da700) at pthread_create.c:309
#20 0x000000380caf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f2fa3bbe700 (LWP 6146)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x000000380c683bff in g_cond_wait (cond=0x1b85070, mutex=<optimized out>) at gthread-posix.c:746
#2  0x00007f2fb5a8ee75 in ?? () from /usr/lib64/gstreamer-0.10/libgstcoreelements.so
#3  0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#4  0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#5  0x00007f2fb5a9a630 in ?? () from /usr/lib64/gstreamer-0.10/libgstcoreelements.so
#6  0x00007f2fb5a9ab2f in ?? () from /usr/lib64/gstreamer-0.10/libgstcoreelements.so
#7  0x000000382b85cdc1 in gst_pad_push () from /lib64/libgstreamer-0.10.so.0
#8  0x00007f2fb5a8fe46 in ?? () from /usr/lib64/gstreamer-0.10/libgstcoreelements.so
#9  0x000000382b882d64 in ?? () from /lib64/libgstreamer-0.10.so.0
#10 0x000000380c66ac92 in g_thread_pool_thread_proxy (data=<optimized out>) at gthreadpool.c:309
#11 0x000000380c66a495 in g_thread_proxy (data=0x7f2f980068f0) at gthread.c:801
#12 0x000000380d207d14 in start_thread (arg=0x7f2fa3bbe700) at pthread_create.c:309
#13 0x000000380caf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f2fa33bd700 (LWP 6151)):
#0  0x000000380cae8bcf in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x000000382a030f4f in ?? () from /lib64/libpulse.so.0
#2  0x000000382a0224cc in pa_mainloop_poll () from /lib64/libpulse.so.0
#3  0x000000382a022b29 in pa_mainloop_iterate () from /lib64/libpulse.so.0
#4  0x000000382a022be0 in pa_mainloop_run () from /lib64/libpulse.so.0
#5  0x000000382a030eff in ?? () from /lib64/libpulse.so.0
#6  0x000000382a443343 in ?? () from /lib64/libpulsecommon-1.1.so
#7  0x000000380d207d14 in start_thread (arg=0x7f2fa33bd700) at pthread_create.c:309
#8  0x000000380caf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f2fc5d85880 (LWP 3157)):
[KCrash Handler]
#6  0x00000000004c6d5a in Ksirk::KRightDialog::displayFightResult (this=0x26632e0, A1=5, A2=4, A3=3, D1=2, D2=1, nbA=0, nbD=2, win=true) at /usr/src/debug/kdegames-4.9.2/ksirk/ksirk/krightdialog.cpp:421
#7  0x000000000042f685 in Ksirk::GameLogic::GameAutomaton::slotNetworkData (this=0x16b9cd0, msgid=<optimized out>, buffer=..., receiver=<optimized out>, sender=<optimized out>) at /usr/src/debug/kdegames-4.9.2/ksirk/ksirk/GameLogic/gameautomaton.cpp:2509
#8  0x00000033c858e71f in QMetaObject::activate (sender=0x16b9cd0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc0109ea0) at kernel/qobject.cpp:3547
#9  0x00000033cf84a643 in KGame::signalNetworkData (this=this@entry=0x16b9cd0, _t1=_t1@entry=309, _t2=..., _t3=_t3@entry=0, _t4=_t4@entry=1) at /usr/src/debug/kdegames-4.9.2/x86_64-redhat-linux-gnu/libkdegames/kgame.moc:205
#10 0x00000033cf8526ae in KGame::networkTransmission (this=0x16b9cd0, stream=..., msgid=565, receiver=0, sender=1) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kgame.cpp:1040
#11 0x00000033cf858d40 in KGameNetwork::receiveNetworkTransmission (this=0x16b9cd0, receiveBuffer=..., clientID=1) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kgamenetwork.cpp:505
#12 0x00000033cf8590ef in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdegames-4.9.2/x86_64-redhat-linux-gnu/libkdegames/kgamenetwork.moc:72
#13 KGameNetwork::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdegames-4.9.2/x86_64-redhat-linux-gnu/libkdegames/kgamenetwork.moc:61
#14 0x00000033c858e71f in QMetaObject::activate (sender=0x16c0f30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc010a1a0) at kernel/qobject.cpp:3547
#15 0x00000033cf85f1c3 in KMessageClient::broadcastReceived (this=this@entry=0x16c0f30, _t1=..., _t2=_t2@entry=1) at /usr/src/debug/kdegames-4.9.2/x86_64-redhat-linux-gnu/libkdegames/kmessageclient.moc:132
#16 0x00000033cf85ffd9 in processMessage (msg=..., this=0x16c0f30) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kmessageclient.cpp:226
#17 KMessageClient::processMessage (this=0x16c0f30, msg=...) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kmessageclient.cpp:203
#18 0x00000033cf85fb51 in KMessageClient::processIncomingMessage (this=0x16c0f30, msg=...) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kmessageclient.cpp:199
#19 0x00000033c858e71f in QMetaObject::activate (sender=0x16c0d30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc010a400) at kernel/qobject.cpp:3547
#20 0x00000033cf861ab2 in KMessageIO::received (this=<optimized out>, _t1=...) at /usr/src/debug/kdegames-4.9.2/x86_64-redhat-linux-gnu/libkdegames/kmessageio.moc:104
#21 0x00000033cf861ad3 in KMessageDirect::send (this=<optimized out>, msg=...) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kmessageio.cpp:214
#22 0x00000033cf864f8b in KMessageServer::broadcastMessage (this=0x16aafa0, msg=...) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kmessageserver.cpp:355
#23 0x00000033cf865965 in KMessageServer::processOneMessage (this=0x16aafa0) at /usr/src/debug/kdegames-4.9.2/libkdegames/libkdegamesprivate/kgame/kmessageserver.cpp:432
#24 0x00000033c858e71f in QMetaObject::activate (sender=0x16aaec0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#25 0x00000033c858c69c in QObject::event (this=0x16aaec0, e=<optimized out>) at kernel/qobject.cpp:1157
#26 0x00000033c9dca4ac in QApplicationPrivate::notify_helper (this=this@entry=0x1582400, receiver=receiver@entry=0x16aaec0, e=e@entry=0x7fffc010ad50) at kernel/qapplication.cpp:4557
#27 0x00000033c9dce92a in QApplication::notify (this=0x7fffc010b2a0, receiver=0x16aaec0, e=0x7fffc010ad50) at kernel/qapplication.cpp:4418
#28 0x00000033cb0468a6 in KApplication::notify (this=0x7fffc010b2a0, receiver=0x16aaec0, event=0x7fffc010ad50) at /usr/src/debug/kdelibs-4.9.2/kdeui/kernel/kapplication.cpp:311
#29 0x00000033c8577f6e in QCoreApplication::notifyInternal (this=0x7fffc010b2a0, receiver=0x16aaec0, event=0x7fffc010ad50) at kernel/qcoreapplication.cpp:915
#30 0x00000033c85a8842 in sendEvent (event=0x7fffc010ad50, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#31 QTimerInfoList::activateTimers (this=0x159a260) at kernel/qeventdispatcher_unix.cpp:611
#32 0x00000033c85a5964 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#33 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#34 0x00000033c85a5981 in idleTimerSourceDispatch (source=source@entry=0x159a2b0) at kernel/qeventdispatcher_glib.cpp:233
#35 0x000000380c647825 in g_main_dispatch (context=0x1599000) at gmain.c:2539
#36 g_main_context_dispatch (context=context@entry=0x1599000) at gmain.c:3075
#37 0x000000380c647b58 in g_main_context_iterate (context=context@entry=0x1599000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#38 0x000000380c647c14 in g_main_context_iteration (context=0x1599000, may_block=1) at gmain.c:3207
#39 0x00000033c85a5fd6 in QEventDispatcherGlib::processEvents (this=0x1543ce0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#40 0x00000033c9e6a48e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#41 0x00000033c8576cbf in QEventLoop::processEvents (this=this@entry=0x7fffc010afd0, flags=...) at kernel/qeventloop.cpp:149
#42 0x00000033c8576f48 in QEventLoop::exec (this=0x7fffc010afd0, flags=...) at kernel/qeventloop.cpp:204
#43 0x00000033c857bd38 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#44 0x0000000000421b18 in main (argc=5, argv=0x7fffc010b3f8) at /usr/src/debug/kdegames-4.9.2/ksirk/ksirk/main.cpp:75

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-02-05 21:15:24 UTC
Git commit c550e6fdb99c3322ec8ae468c88bbc4648b70cf7 by Albert Astals Cid, on behalf of Nemanja Hirsl.
Committed on 05/02/2013 at 22:14.
Pushed by aacid into branch 'KDE/4.10'.

Fix bug 309863

The crash occurs when AI is playing or Auto attack is going on and user wants to see country details from context menu. Both country and fight details are shown in the right dialog interfering with each other. Some safety code is added to prevent new crashes.
The complete solution is to disable detailed country view from the context menu when AI is playing or Auto Attack is under way. This separates appearing of two views at the same time in the right dialog.
REVIEW: 108068
FIXED-IN: 4.10.1

M  +9    -1    ksirk/decoratedgameframe.cpp
M  +17   -5    ksirk/krightdialog.cpp

http://commits.kde.org/ksirk/c550e6fdb99c3322ec8ae468c88bbc4648b70cf7