Bug 178972 - kpat crashes during "demo" on "forty & eight" game
Summary: kpat crashes during "demo" on "forty & eight" game
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-28 17:01 UTC by FiNeX
Modified: 2009-01-06 09:37 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 FiNeX 2008-12-28 17:01:09 UTC
I've got a crash while the "demo" was running on "Forty & Eight" game. I'm using current trunk (r902024)

1) start kpat
2) select "forty & eights"
3) click to "demo"
4) wait for the crash.

This is the backtrace:

Application: KPatience (kpat), signal SIGABRT
0x00007ff76f80b001 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7ff77325e790 (LWP 5514)):
[KCrash Handler]
#5  0x00007ff76f79e0c5 in raise () from /lib/libc.so.6
#6  0x00007ff76f79f5e3 in abort () from /lib/libc.so.6
#7  0x00007ff76f7970e9 in __assert_fail () from /lib/libc.so.6
#8  0x0000000000425602 in DealerScene::demo (this=0x1966da0) at /home/test/KDE4/src/kdegames/kpat/dealer.cpp:1618
#9  0x0000000000429c32 in DealerScene::qt_metacall (this=0x1966da0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7b39e450)
    at /home/test/KDE4/src/build/kdegames/kpat/dealer.moc:147
#10 0x0000000000458ca5 in Fortyeight::qt_metacall (this=0x158a, _c=5514, _id=6, _a=0xffffffffffffffff) at /home/test/KDE4/src/build/kdegames/kpat/fortyeight.moc:106
#11 0x00007ff771506d00 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0x00007ff771502cb3 in QObject::event () from /usr/lib/libQtCore.so.4
#13 0x00007ff7703fc4dd in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#14 0x00007ff77040286a in QApplication::notify () from /usr/lib/libQtGui.so.4
#15 0x00007ff7723056bb in KApplication::notify (this=0x7fff7b39ee60, receiver=0x18fecc0, event=0x7fff7b39eaf0) at /home/test/KDE4/src/kdelibs/kdeui/kernel/kapplication.cpp:307
#16 0x00007ff7714f53d1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#17 0x00007ff77151ce56 in ?? () from /usr/lib/libQtCore.so.4
#18 0x00007ff77151993d in ?? () from /usr/lib/libQtCore.so.4
#19 0x00007ff76b70daa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x00007ff76b71121d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#21 0x00007ff76b7113db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0x00007ff77151989f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#23 0x00007ff77047cfff in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007ff7714f3d42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#25 0x00007ff7714f3ed5 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#26 0x00007ff7714f6025 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#27 0x0000000000414b99 in main (argc=1, argv=0x7fff7b39f648) at /home/test/KDE4/src/kdegames/kpat/main.cpp:180
Comment 1 Stephan Kulow 2009-01-03 09:06:31 UTC
I can reproduce it 1 out of 4 times with your revision.
Comment 2 Stephan Kulow 2009-01-03 09:43:35 UTC
I know where the problem is: the hinting suggests to move two cards through an empty pile. But the player (demo) has to move it one by one.
Comment 3 Stephan Kulow 2009-01-06 09:37:58 UTC
SVN commit 906421 by coolo:

avoid a mismatch between solver and game rules
BUG: 178972


 M  +2 -0      fortyeight.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=906421