Bug 221748 - KPatience crashes with segfault [mem2chunk_check, free_check, free_array<MOVE>]
Summary: KPatience crashes with segfault [mem2chunk_check, free_check, free_array<MOVE>]
Status: RESOLVED DUPLICATE of bug 220166
Alias: None
Product: kpat
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 02:54 UTC by cristjs
Modified: 2010-01-08 14:37 UTC (History)
3 users (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 cristjs 2010-01-08 02:54:25 UTC
Application: kpat (3.3)
KDE Platform Version: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2))
Qt Version: 4.6.0
Operating System: Linux 2.6.31-17-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
Crashed with segfault when playing Klondike Solitaire. Is repeatable

The crash can be reproduced some of the times.

 -- Backtrace:
Application: KPatience (kpat), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7fc8a074a810 (LWP 2936))]

Thread 2 (Thread 0x7fc897ec8910 (LWP 3090)):
[KCrash Handler]
#5  mem2chunk_check (mem=0x3126ac0, magic_p=0x0) at hooks.c:166
#6  0x00007fc8a6269a20 in free_check (mem=0x3126ac0, caller=<value optimized out>) at hooks.c:279
#7  0x000000000043ec1d in free_array<MOVE> (this=0x2b87400, parent=0x7fc8974cf228) at /build/buildd/kdegames-4.3.85/kpat/patsolve/memory.h:80
#8  Solver::solve (this=0x2b87400, parent=0x7fc8974cf228) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:758
#9  0x000000000043eb4b in Solver::solve (this=0x2b87400, parent=0x7fc89743e628) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:746
#10 0x000000000043eb4b in Solver::solve (this=0x2b87400, parent=0x7fc8974420c8) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:746
#11 0x000000000043f5cb in Solver::doit (this=0x2b87400) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:658
#12 0x000000000043f627 in Solver::patsolve (this=0x2b87400, _max_positions=<value optimized out>) at /build/buildd/kdegames-4.3.85/kpat/patsolve/patsolve.cpp:951
#13 0x00000000004205c9 in SolverThread::run (this=0x2b81760) at /build/buildd/kdegames-4.3.85/kpat/dealer.cpp:169
#14 0x00007fc8a6fa16c5 in QThreadPrivate::start (arg=0x2b81760) at thread/qthread_unix.cpp:244
#15 0x00007fc8a6d12a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#16 0x00007fc8a62d17bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc8a074a810 (LWP 2936)):
#0  0x00007fc8a62c5373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc8a1eb229a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fc8a1eb27d7 in ?? () from /usr/lib/libxcb.so.1
#3  0x00007fc8a1eb2a85 in xcb_writev () from /usr/lib/libxcb.so.1
#4  0x00007fc8a57e7d4a in _XSend () from /usr/lib/libX11.so.6
#5  0x00007fc8a57e7e89 in _XReply () from /usr/lib/libX11.so.6
#6  0x00007fc8a57c47f5 in XGetImage () from /usr/lib/libX11.so.6
#7  0x00007fc8a7d7c9c3 in QX11PixmapData::toImage (this=0x2b94910) at image/qpixmap_x11.cpp:1475
#8  0x00007fc8a7d68bb0 in QPixmap::toImage (this=0x3126d90) at image/qpixmap.cpp:486
#9  0x00007fc8a7daea43 in QTexturedBrushData::image (this=<value optimized out>) at painting/qbrush.cpp:209
#10 QBrush::textureImage (this=<value optimized out>) at painting/qbrush.cpp:786
#11 0x00007fc8a7e57d8f in QSpanData::setup (this=0x31374a0, brush=..., alpha=<value optimized out>, compositionMode=<value optimized out>) at painting/qpaintengine_raster.cpp:5075
#12 0x00007fc8a7e58e2a in QRasterPaintEngine::updateBrush (this=0x31248e0, brush=...) at painting/qpaintengine_raster.cpp:870
#13 0x00007fc8a7e5911a in QRasterPaintEngine::ensureBrush (this=0x31248e0, path=..., brush=...) at painting/qpaintengine_raster_p.h:268
#14 QRasterPaintEngine::fill (this=0x31248e0, path=..., brush=...) at painting/qpaintengine_raster.cpp:1801
#15 0x00007fc8a7dd0765 in QPaintEngineEx::draw (this=0x7fffc86fc4a0, path=...) at painting/qpaintengineex.cpp:582
#16 0x00007fc8a7de058a in QPainterPrivate::draw_helper (this=0x3126160, originalPath=..., op=<value optimized out>) at painting/qpainter.cpp:458
#17 0x00007fc8a7de2b7c in QPainter::drawRects (this=<value optimized out>, rects=<value optimized out>, rectCount=1) at painting/qpainter.cpp:3471
#18 0x00007fc8a7de39c3 in QPainter::drawRect (this=0x7fffc86fe0c0, p=<value optimized out>, pm=...) at ../../include/QtGui/../../src/gui/painting/qpainter.h:622
#19 QPainter::drawPixmap (this=0x7fffc86fe0c0, p=<value optimized out>, pm=...) at painting/qpainter.cpp:5195
#20 0x00007fc8a825e6a4 in QGraphicsPixmapItem::paint (this=0x2b5c690, painter=0x7fffc86fe0c0, option=0x2b0a788, widget=<value optimized out>) at graphicsview/qgraphicsitem.cpp:9329
#21 0x00007fc8a82a28f1 in QGraphicsScenePrivate::draw (this=<value optimized out>, item=0x2b5c690, painter=0x7fffc86fe0c0, viewTransform=<value optimized out>, transformPtr=<value optimized out>, 
    exposedRegion=<value optimized out>, widget=0x27c3cd0, opacity=<value optimized out>, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true)
    at graphicsview/qgraphicsscene.cpp:4734
#22 0x00007fc8a82a310a in QGraphicsScenePrivate::drawSubtreeRecursive (this=<value optimized out>, item=0x2b5c690, painter=0x7fffc86fe0c0, viewTransform=0x7fffc86fdeb0, exposedRegion=0x27afef0, 
    widget=0x27c3cd0, parentOpacity=<value optimized out>, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4669
#23 0x00007fc8a82a382c in QGraphicsScenePrivate::drawItems (this=0x2b0a530, painter=0x7fffc86fe0c0, viewTransform=0x7fffc86fdeb0, exposedRegion=0x27afef0, widget=0x27c3cd0)
    at graphicsview/qgraphicsscene.cpp:4565
#24 0x00007fc8a82c2695 in QGraphicsView::paintEvent (this=0x27a9cf0, event=<value optimized out>) at graphicsview/qgraphicsview.cpp:3352
#25 0x00007fc8a7cdd175 in QWidget::event (this=0x27a9cf0, event=0x7fffc86fe960) at kernel/qwidget.cpp:8120
#26 0x00007fc8a8080e16 in QFrame::event (this=0x27a9cf0, e=0x7fffc86fe960) at widgets/qframe.cpp:557
#27 0x00007fc8a82bda0b in QGraphicsView::viewportEvent (this=0x27a9cf0, event=0x7fffc86fe960) at graphicsview/qgraphicsview.cpp:2747
#28 0x00007fc8a7094467 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x27c3cd0, event=0x7fffc86fe960) at kernel/qcoreapplication.cpp:819
#29 0x00007fc8a7c87e5c in QApplicationPrivate::notify_helper (this=0x26a4be0, receiver=0x27c3cd0, e=0x7fffc86fe960) at kernel/qapplication.cpp:4238
#30 0x00007fc8a7c8e48d in QApplication::notify (this=0x7fffc87005a0, receiver=0x27c3cd0, e=0x7fffc86fe960) at kernel/qapplication.cpp:4125
#31 0x00007fc8a9153856 in KApplication::notify (this=0x7fffc87005a0, receiver=0x27c3cd0, event=0x7fffc86fe960) at ../../kdeui/kernel/kapplication.cpp:302
#32 0x00007fc8a709504c in QCoreApplication::notifyInternal (this=0x7fffc87005a0, receiver=0x27c3cd0, event=0x7fffc86fe960) at kernel/qcoreapplication.cpp:704
#33 0x00007fc8a7ce572d in QCoreApplication::sendSpontaneousEvent (this=0x27c3de0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, 
    backingStore=0x280f900) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#34 QWidgetPrivate::drawWidget (this=0x27c3de0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x280f900)
    at kernel/qwidget.cpp:5322
#35 0x00007fc8a7e9be76 in QWidgetBackingStore::sync (this=0x280f900) at painting/qbackingstore.cpp:1281
#36 0x00007fc8a7cd6b60 in QWidgetPrivate::syncBackingStore (this=0x2796850) at kernel/qwidget.cpp:1662
#37 0x00007fc8a7cdd885 in QWidget::event (this=0x2796490, event=0x3125fa0) at kernel/qwidget.cpp:8266
#38 0x00007fc8a809bc9b in QMainWindow::event (this=0x2796490, event=0x3125fa0) at widgets/qmainwindow.cpp:1434
#39 0x00007fc8a926a823 in KXmlGuiWindow::event (this=0x7fffc86fc4a0, ev=0x1) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:131
#40 0x00007fc8a7c87e8c in QApplicationPrivate::notify_helper (this=0x26a4be0, receiver=0x2796490, e=0x3125fa0) at kernel/qapplication.cpp:4242
#41 0x00007fc8a7c8e48d in QApplication::notify (this=0x7fffc87005a0, receiver=0x2796490, e=0x3125fa0) at kernel/qapplication.cpp:4125
#42 0x00007fc8a9153856 in KApplication::notify (this=0x7fffc87005a0, receiver=0x2796490, event=0x3125fa0) at ../../kdeui/kernel/kapplication.cpp:302
#43 0x00007fc8a709504c in QCoreApplication::notifyInternal (this=0x7fffc87005a0, receiver=0x2796490, event=0x3125fa0) at kernel/qcoreapplication.cpp:704
#44 0x00007fc8a70977c7 in QCoreApplication::sendEvent (receiver=0x2796490, event_type=<value optimized out>, data=0x266e270) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#45 QCoreApplicationPrivate::sendPostedEvents (receiver=0x2796490, event_type=<value optimized out>, data=0x266e270) at kernel/qcoreapplication.cpp:1345
#46 0x00007fc8a82aa3da in QGraphicsViewPrivate::dispatchPendingUpdateRequests (this=0x2b0a530) at ../../include/QtGui/private/../../../src/gui/graphicsview/qgraphicsview_p.h:178
#47 QGraphicsScenePrivate::_q_processDirtyItems (this=0x2b0a530) at graphicsview/qgraphicsscene.cpp:487
#48 0x00007fc8a82aa962 in QGraphicsScene::qt_metacall (this=0x2a81990, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x3125e20) at .moc/release-shared/moc_qgraphicsscene.cpp:130
#49 0x000000000042a015 in DealerScene::qt_metacall (this=0x7fffc86fc4a0, _c=QMetaObject::ReadProperty, _id=-1, _a=0xffffffffffffffff)
    at /build/buildd/kdegames-4.3.85/obj-x86_64-linux-gnu/kpat/dealer.moc:105
#50 0x0000000000451655 in Klondike::qt_metacall (this=0x7fffc86fc4a0, _c=QMetaObject::ReadProperty, _id=-1, _a=0xffffffffffffffff)
    at /build/buildd/kdegames-4.3.85/obj-x86_64-linux-gnu/kpat/klondike.moc:68
#51 0x00007fc8a70a4d19 in QObject::event (this=0x2a81990, e=0x3125b70) at kernel/qobject.cpp:1260
#52 0x00007fc8a82a6970 in QGraphicsScene::event (this=0x2a81990, event=0x3125b70) at graphicsview/qgraphicsscene.cpp:3450
#53 0x00007fc8a7c87e8c in QApplicationPrivate::notify_helper (this=0x26a4be0, receiver=0x2a81990, e=0x3125b70) at kernel/qapplication.cpp:4242
#54 0x00007fc8a7c8e48d in QApplication::notify (this=0x7fffc87005a0, receiver=0x2a81990, e=0x3125b70) at kernel/qapplication.cpp:4125
#55 0x00007fc8a9153856 in KApplication::notify (this=0x7fffc87005a0, receiver=0x2a81990, event=0x3125b70) at ../../kdeui/kernel/kapplication.cpp:302
#56 0x00007fc8a709504c in QCoreApplication::notifyInternal (this=0x7fffc87005a0, receiver=0x2a81990, event=0x3125b70) at kernel/qcoreapplication.cpp:704
#57 0x00007fc8a70977c7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x266e270) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#58 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x266e270) at kernel/qcoreapplication.cpp:1345
#59 0x00007fc8a70beae3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#60 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#61 0x00007fc8a3757bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#62 0x00007fc8a375b598 in ?? () from /lib/libglib-2.0.so.0
#63 0x00007fc8a375b6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#64 0x00007fc8a70be623 in QEventDispatcherGlib::processEvents (this=0x266d890, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#65 0x00007fc8a7d362fe in QGuiEventDispatcherGlib::processEvents (this=0x7fffc86fc4a0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#66 0x00007fc8a7093972 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#67 0x00007fc8a7093d4c in QEventLoop::exec (this=0x7fffc8700400, flags=) at kernel/qeventloop.cpp:201
#68 0x00007fc8a7097a8b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#69 0x0000000000416f1c in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kdegames-4.3.85/kpat/main.cpp:314

Possible duplicates by query: bug 220166.

Reported using DrKonqi
Comment 1 Dario Andres 2010-01-08 13:33:52 UTC
Indeed, this looks related to bug 220166. - Could you try the steps mentioned at bug 220166 comment 4 ?
Thanks
Comment 2 Parker Coates 2010-01-08 14:37:04 UTC

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