Bug 176318 - "hint" shortcut sometimes crashes KPatience
Summary: "hint" shortcut sometimes crashes KPatience
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: 3.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
: 181582 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-28 09:56 UTC by pantsgolem
Modified: 2009-01-22 15:05 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 pantsgolem 2008-11-28 09:56:30 UTC
Using KDE 4.1.3 + Qt 4.4.3 RPMs on openSUSE 11.0

It doesn't seem to matter which game I'm playing.  I can't find any particular pattern to when it crashes, so in order to reproduce you just have to start a game, and hit "H" after each move you make until it does crash.

Application: KPatience (kpat), signal SIGSEGV
[?1034h[Thread debugging using libthread_db enabled]
[New Thread 0x7fbe1ba43740 (LWP 10192)]
[KCrash handler]
#5  Card::setHighlighted (this=0x0, flag=true)
    at /usr/src/debug/kdegames-4.1.3/kpat/card.cpp:338
#6  0x000000000041bb49 in DealerScene::mark (this=0xe94dc0, c=0x0)
    at /usr/src/debug/kdegames-4.1.3/kpat/dealer.cpp:676
#7  0x000000000041c4da in DealerScene::hint (this=0xe94dc0)
    at /usr/src/debug/kdegames-4.1.3/kpat/dealer.cpp:490
#8  0x0000000000427538 in PatienceView::qt_metacall (this=0x81dc50, 
    _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff23ba66a0)
    at /usr/src/debug/kdegames-4.1.3/build/kpat/view.moc:75
#9  0x00007fbe199c1284 in QMetaObject::activate (sender=0xe2b0a0, 
    from_signal_index=<value optimized out>, to_signal_index=6, argv=0xeaf1d0)
    at kernel/qobject.cpp:3031
#10 0x00007fbe15e274f7 in QAction::triggered (this=0x0, _t1=false)
    at .moc/release-shared/moc_qaction.cpp:216
#11 0x00007fbe15e27cc0 in QAction::activate (this=0xe2b0a0, 
    event=<value optimized out>) at kernel/qaction.cpp:1125
#12 0x00007fbe15e2b267 in QAction::event (this=0x0, e=<value optimized out>)
    at kernel/qaction.cpp:1044
#13 0x00007fbe15e841c3 in QWidgetAction::event (this=0xe2b0a0, 
    event=0x7fff23ba6bc0) at kernel/qwidgetaction.cpp:230
#14 0x00007fbe15e2d17d in QApplicationPrivate::notify_helper (this=0x78c550, 
    receiver=0xe2b0a0, e=0x7fff23ba6bc0) at kernel/qapplication.cpp:3803
#15 0x00007fbe15e34f2a in QApplication::notify (this=0x7fff23ba81e0, 
    receiver=0xe2b0a0, e=0x7fff23ba6bc0) at kernel/qapplication.cpp:3768
#16 0x00007fbe1ac33d9b in KApplication::notify (this=0x7fff23ba81e0, 
    receiver=0xe2b0a0, event=0x7fff23ba6bc0)
    at /usr/src/debug/kdelibs-4.1.3/kdeui/kernel/kapplication.cpp:311
#17 0x00007fbe199ace81 in QCoreApplication::notifyInternal (
    this=0x7fff23ba81e0, receiver=0xe2b0a0, event=0x7fff23ba6bc0)
    at kernel/qcoreapplication.cpp:587
#18 0x00007fbe15e6280d in QShortcutMap::dispatchEvent (
    this=<value optimized out>, e=0x7fff23ba70c0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#19 0x00007fbe15e6413c in QShortcutMap::tryShortcutEvent (this=0x78c660, 
    w=<value optimized out>, e=0x7fff23ba70c0) at kernel/qshortcutmap.cpp:362
#20 0x00007fbe15e35f52 in QApplication::notify (this=<value optimized out>, 
    receiver=0x81dc50, e=0x7fff23ba70c0) at kernel/qapplication.cpp:3430
#21 0x00007fbe1ac33d9b in KApplication::notify (this=0x7fff23ba81e0, 
    receiver=0x81dc50, event=0x7fff23ba70c0)
    at /usr/src/debug/kdelibs-4.1.3/kdeui/kernel/kapplication.cpp:311
#22 0x00007fbe199ace81 in QCoreApplication::notifyInternal (
    this=0x7fff23ba81e0, receiver=0x81dc50, event=0x7fff23ba70c0)
    at kernel/qcoreapplication.cpp:587
#23 0x00007fbe15eba834 in QKeyMapper::sendKeyEvent (keyWidget=0x81dc50, 
    grab=<value optimized out>, type=QEvent::KeyPress, code=72, modifiers=
      {i = 599421680}, text=@0x7fff23ba72e0, autorepeat=<value optimized out>, 
    count=1, nativeScanCode=43, nativeVirtualKey=104, nativeModifiers=16)
    at kernel/qkeymapper_x11.cpp:1655
#24 0x00007fbe15ebcb24 in QKeyMapperPrivate::translateKeyEvent (this=0x7c9540, 
    keyWidget=0x81dc50, event=0x7fff23ba7df0, grab=true)
    at kernel/qkeymapper_x11.cpp:1626
#25 0x00007fbe15e97a00 in QApplication::x11ProcessEvent (this=0x7fff23ba81e0, 
    event=0x7fff23ba7df0) at kernel/qapplication_x11.cpp:3051
#26 0x00007fbe15ebe55c in x11EventSourceDispatch (s=0x78fd90, callback=0, 
    user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#27 0x00007fbe138d5a2b in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
#28 0x00007fbe138d920d in g_main_context_iterate ()
   from /usr/lib64/libglib-2.0.so.0
#29 0x00007fbe138d93cb in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
#30 0x00007fbe199d53af in QEventDispatcherGlib::processEvents (this=0x78c730, 
    flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#31 0x00007fbe15ebdccf in QGuiEventDispatcherGlib::processEvents (this=0x0, 
    flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#32 0x00007fbe199ab782 in QEventLoop::processEvents (
    this=<value optimized out>, flags={i = 599425248})
    at kernel/qeventloop.cpp:143
#33 0x00007fbe199ab90d in QEventLoop::exec (this=0x7fff23ba8120, flags=
      {i = 599425328}) at kernel/qeventloop.cpp:194
#34 0x00007fbe199addfd in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:845
#35 0x000000000041384c in main (argc=3, argv=0x7fff23ba89c8)
    at /usr/src/debug/kdegames-4.1.3/kpat/main.cpp:179
#0  0x00007fbe15266261 in nanosleep () from /lib64/libc.so.6
Comment 1 Stephan Kulow 2008-12-27 16:30:41 UTC
I managed to reproduce it with klondike. The bug seems to be a race between cards moving and being hinted
Comment 2 Stephan Kulow 2008-12-27 20:18:06 UTC
the crash is half way reproducible - unless I try with valgrind. So I guess it's simply the fact that you press hint while cards are still moving.
Comment 3 Stephan Kulow 2008-12-27 21:36:15 UTC
SVN commit 902261 by coolo:

avoid concurrency between undo, autodrop and hint
I'm unable to reproduce the crash after this
BUG: 176318 


 M  +45 -20    dealer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=902261
Comment 4 Stephan Kulow 2009-01-22 15:05:45 UTC
*** Bug 181582 has been marked as a duplicate of this bug. ***