Bug 182267 - crash when loading samurai savegame
Summary: crash when loading samurai savegame
Status: RESOLVED FIXED
Alias: None
Product: ksudoku
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR crash
Target Milestone: ---
Assignee: Johannes.Bergmeier
URL:
Keywords:
: 212428 249667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-29 10:09 UTC by Thomas Kamps
Modified: 2012-05-19 08:01 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.0 (KDE SC 4.8)
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kamps 2009-01-29 10:09:46 UTC
Version:            (using KDE 4.2.0)
Installed from:    SuSE RPMs

Start a Samurai Game
Save it and load it.
KSudoku crashes.

Backtrace:
Anwendung: KSudoku (ksudoku), Signal SIGSEGV
[Current thread is 1 (Thread 0xb4f3b730 (LWP 8034))]

Thread 1 (Thread 0xb4f3b730 (LWP 8034)):
[KCrash Handler]
#6  0x08076dc4 in _start ()
Comment 1 Dario Andres 2009-01-29 15:00:46 UTC
If you can reproduce the crash at will, may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace here?

I think you need to install the "kdegames-debuginfo" package

Thanks :)
Comment 2 Albert Astals Cid 2009-01-30 00:04:19 UTC
My bt

0x0000000000433cd8 in ksudoku::CellGraphicsItem::pos (this=0x0) at /home/kde42/kdegames/ksudoku/src/gui/views/view2d.cpp:51
51              QPoint pos() const { return m_pos; }
(gdb) bt
#0  0x0000000000433cd8 in ksudoku::CellGraphicsItem::pos (this=0x0) at /home/kde42/kdegames/ksudoku/src/gui/views/view2d.cpp:51
#1  0x00000000004310c6 in ksudoku::View2DScene::hover (this=0x1ba2c10, cell=0) at /home/kde42/kdegames/ksudoku/src/gui/views/view2d.cpp:443
#2  0x0000000000432e91 in ksudoku::View2DScene::init (this=0x1ba2c10, game=@0x1c08000) at /home/kde42/kdegames/ksudoku/src/gui/views/view2d.cpp:404
#3  0x000000000043307e in View2D (this=0x1ba3590, parent=0x0, game=@0x1c08000, gameActions=0x18d5fd0) at /home/kde42/kdegames/ksudoku/src/gui/views/view2d.cpp:611
#4  0x0000000000428c14 in ksudoku::KsView::createView (this=0x1c07ff0) at /home/kde42/kdegames/ksudoku/src/gui/views/ksview.cpp:66
#5  0x0000000000417ff2 in KSudoku::startGame (this=0x18d0d40, game=@0x7fff6f415d10) at /home/kde42/kdegames/ksudoku/src/gui/ksudoku.cpp:220
#6  0x00000000004182b6 in KSudoku::gameOpen (this=0x18d0d40) at /home/kde42/kdegames/ksudoku/src/gui/ksudoku.cpp:512
#7  0x000000000041a273 in KSudoku::qt_metacall (this=0x18d0d40, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff6f415e90)
    at /home/kde42/build-cmake/kdegames/ksudoku/src/gui/ksudoku.moc:114
#8  0x00007f38634927d6 in QMetaObject::activate (sender=0x190e340, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x0) at kernel/qobject.cpp:3022
#9  0x00007f386276f667 in QAction::triggered (this=0x0, _t1=false) at .moc/release-shared/moc_qaction.cpp:216
#10 0x00007f386276fe70 in QAction::activate (this=0x190e340, event=<value optimized out>) at kernel/qaction.cpp:1125
#11 0x00007f3862b0b3ea in QMenuPrivate::activateAction (this=0x194eed0, action=0x190e340, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1002
#12 0x00007f38643c4971 in KMenu::mouseReleaseEvent (this=0x19487c0, e=0x7fff6f416920) at /home/kde42/kdelibs/kdeui/widgets/kmenu.cpp:454
#13 0x00007f38627c3e70 in QWidget::event (this=0x19487c0, event=0x7fff6f416920) at kernel/qwidget.cpp:7163
#14 0x00007f3862b09161 in QMenu::event (this=0x19487c0, e=0x7fff6f416920) at widgets/qmenu.cpp:2265
#15 0x00007f3862775c0f in QApplicationPrivate::notify_helper (this=0x181ab00, receiver=0x19487c0, e=0x7fff6f416920) at kernel/qapplication.cpp:3803
#16 0x00007f3862777fc9 in QApplication::notify (this=0x7fff6f417600, receiver=0x19487c0, e=0x7fff6f416920) at kernel/qapplication.cpp:3528
#17 0x00007f38642f1070 in KApplication::notify (this=0x7fff6f417600, receiver=0x19487c0, event=0x7fff6f416920) at /home/kde42/kdelibs/kdeui/kernel/kapplication.cpp:307
#18 0x00007f386347e5f9 in QCoreApplication::notifyInternal (this=0x7fff6f417600, receiver=0x19487c0, event=0x7fff6f416920) at kernel/qcoreapplication.cpp:587
#19 0x00007f386277b465 in QApplicationPrivate::sendMouseEvent (receiver=0x19487c0, event=0x7fff6f416920, alienWidget=<value optimized out>, nativeWidget=0x19487c0,
    buttonDown=<value optimized out>, lastMouseReceiver=@0x7f3863113200) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#20 0x00007f38627dab5b in QETWidget::translateMouseEvent (this=0x19487c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:3976
#21 0x00007f38627d988b in QApplication::x11ProcessEvent (this=0x81, event=0x7fff6f417230) at kernel/qapplication_x11.cpp:3160
#22 0x00007f38627fea93 in x11EventSourceDispatch (s=0x1822270, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#23 0x00007f385f47ed3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007f385f48250d in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007f385f4826cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007f38634a785f in QEventDispatcherGlib::processEvents (this=0x181aa40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#27 0x00007f38627fe8cf in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#28 0x00007f386347da75 in QEventLoop::processEvents (this=<value optimized out>, flags=@0x7fff6f417530) at kernel/qeventloop.cpp:143
#29 0x00007f386347dbcb in QEventLoop::exec (this=0x7fff6f417570, flags=@0x7fff6f417580) at kernel/qeventloop.cpp:194
#30 0x00007f386347fc19 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#31 0x00000000004161e2 in main (argc=1, argv=0x7fff6f417998) at /home/kde42/kdegames/ksudoku/src/main.cpp:94
Comment 3 Thomas Kamps 2009-06-02 21:04:28 UTC
Here my Backtrace

Application: KSudoku (ksudoku), signal: Segmentation fault
[KCrash Handler]
#5  0x0000000000433ade in ksudoku::View2DScene::hover (this=0x1522e70, cell=0) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/gui/views/view2d.cpp:443
#6  0x0000000000434671 in ksudoku::View2DScene::init (this=0x1522e70, game=@0x14f4b20) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/gui/views/view2d.cpp:404
#7  0x00000000004348ce in View2D (this=0x14ee900, parent=<value optimized out>, game=@0x14f4b20, gameActions=0x1136dd0) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/gui/views/view2d.cpp:611
#8  0x00000000004297dc in ksudoku::KsView::createView (this=0x14f4b10) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/gui/views/ksview.cpp:61
#9  0x0000000000416719 in KSudoku::startGame (this=0x1144ce0, game=@0x7fff3e48e430) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/gui/ksudoku.cpp:220
#10 0x0000000000417597 in KSudoku::gameOpen (this=0x1144ce0) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/gui/ksudoku.cpp:512
#11 0x0000000000419f7d in KSudoku::qt_metacall (this=0x1144ce0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff3e48e5b0)
    at /usr/src/debug/kdegames-4.2.88svn973768/build/ksudoku/src/gui/ksudoku.moc:115
#12 0x00007f8c326012f2 in QMetaObject::activate (sender=0x11d5550, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x14612a0) at kernel/qobject.cpp:3112
#13 0x00007f8c31867bd7 in QAction::triggered (this=0x1522e70, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#14 0x00007f8c31869050 in QAction::activate (this=0x11d5550, event=<value optimized out>) at kernel/qaction.cpp:1160
#15 0x00007f8c31c5407d in QMenuPrivate::activateCausedStack (this=0x12a28c0, causedStack=@0x7fff3e48e6d0, action=0x11d5550, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967
#16 0x00007f8c31c5a07f in QMenuPrivate::activateAction (this=0x12a28c0, action=0x11d5550, action_e=QAction::Trigger, self=32) at widgets/qmenu.cpp:1060
#17 0x00007f8c334fab11 in KMenu::mouseReleaseEvent (this=0x11dc730, e=0x0) at /usr/src/debug/kdelibs-4.2.88svn973768/kdeui/widgets/kmenu.cpp:456
#18 0x00007f8c318beeef in QWidget::event (this=0x1522e70, event=0x7fff3e48f070) at kernel/qwidget.cpp:7548
#19 0x00007f8c31c5c90b in QMenu::event (this=0x11dc730, e=0x7fff3e48f070) at widgets/qmenu.cpp:2353
#20 0x00007f8c3186dbfd in QApplicationPrivate::notify_helper (this=0x1088650, receiver=0x11dc730, e=0x7fff3e48f070) at kernel/qapplication.cpp:4056
#21 0x00007f8c318765da in QApplication::notify (this=<value optimized out>, receiver=0x11dc730, e=0x7fff3e48f070) at kernel/qapplication.cpp:3758
#22 0x00007f8c3342824b in KApplication::notify (this=0x7fff3e490fd0, receiver=0x11dc730, event=0x7fff3e48f070) at /usr/src/debug/kdelibs-4.2.88svn973768/kdeui/kernel/kapplication.cpp:302
#23 0x00007f8c325ec4fc in QCoreApplication::notifyInternal (this=0x7fff3e490fd0, receiver=0x11dc730, event=0x7fff3e48f070) at kernel/qcoreapplication.cpp:610
#24 0x00007f8c31875828 in QApplicationPrivate::sendMouseEvent (receiver=0x11dc730, event=0x7fff3e48f070, alienWidget=0x0, nativeWidget=0x11dc730, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f8c32283f30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#25 0x00007f8c318df8e4 in QETWidget::translateMouseEvent (this=0x11dc730, event=<value optimized out>) at kernel/qapplication_x11.cpp:4349
#26 0x00007f8c318de763 in QApplication::x11ProcessEvent (this=0x7fff3e490fd0, event=0x7fff3e490c00) at kernel/qapplication_x11.cpp:3556
#27 0x00007f8c31905b2c in x11EventSourceDispatch (s=0x108bf80, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007f8c2e0c493a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f8c2e0c8040 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f8c2e0c81dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f8c326159bf in QEventDispatcherGlib::processEvents (this=0x10698d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#32 0x00007f8c3190527f in QGuiEventDispatcherGlib::processEvents (this=0x1522e70, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#33 0x00007f8c325ead72 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1044975344}) at kernel/qeventloop.cpp:149
#34 0x00007f8c325eb144 in QEventLoop::exec (this=0x7fff3e490f30, flags={i = 1044975424}) at kernel/qeventloop.cpp:201
#35 0x00007f8c325ed454 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#36 0x0000000000415d2c in main (argc=5, argv=0x7fff3e491368) at /usr/src/debug/kdegames-4.2.88svn973768/ksudoku/src/main.cpp:94
Comment 4 Thierry Chatelet 2009-07-12 19:13:18 UTC
I confirm, and I can reproduce it on Debian squeeze. Let me know if you need info from me.
Comment 5 Dario Andres 2009-10-31 02:30:51 UTC
From bug 212428:
--
Updated backtrace:

Application: KSudoku (ksudoku), signal: Segmentation fault
[KCrash Handler]
#6  ksudoku::CellGraphicsItem::pos (this=0x95cce28, cell=0) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/views/view2d.cpp:51
#7  ksudoku::View2DScene::hover (this=0x95cce28, cell=0) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/views/view2d.cpp:443
#8  0x08077fa2 in ksudoku::View2DScene::init (this=0x95cce28, game=...) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/views/view2d.cpp:404
#9  0x08078264 in View2D (this=0x9605ce8, parent=0x0, game=...,
gameActions=0x92b7058) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/views/view2d.cpp:611
#10 0x0806c835 in ksudoku::KsView::createView (this=0x9603d38) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/views/ksview.cpp:61
#11 0x08059c74 in KSudoku::startGame (this=0x92ac0a0, game=...) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/ksudoku.cpp:217
#12 0x0805abfd in KSudoku::gameOpen (this=0x92ac0a0) at
/tmp/buildd/kdegames-4.3.2/ksudoku/src/gui/ksudoku.cpp:509
#13 0x0805d39b in KSudoku::qt_metacall (this=0x92ac0a0,
_c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfd420fc) at
/tmp/buildd/kdegames-4.3.2/obj-i486-linux-gnu/ksudoku/src/gui/ksudoku.moc:111

---

Saved game testcase file: https://bugs.kde.org/attachment.cgi?id=37979
Comment 6 Dario Andres 2009-10-31 02:30:54 UTC
*** Bug 212428 has been marked as a duplicate of this bug. ***
Comment 7 Miriam 2010-03-12 01:45:23 UTC
I've got a similar bug with the Jigsaw-puzzle type.

I'm using Kubuntu 9.10 with KDE 4.3.5 and Ksudoku 0.5


Here my backtrace:

Application: KSudoku (ksudoku), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  0x000000000043404e in QVector<ksudoku::CellGraphicsItem*>::operator[] (this=0x33e1ae0, cell=0) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/views/view2d.cpp:443
#6  ksudoku::View2DScene::hover (this=0x33e1ae0, cell=0) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/views/view2d.cpp:443
#7  0x0000000000434b82 in ksudoku::View2DScene::init (this=0x33e1ae0, game=<value optimized out>) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/views/view2d.cpp:404
#8  0x0000000000434dca in View2D (this=0x3411ad0, parent=<value optimized out>, game=..., gameActions=0x2fb1b10) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/views/view2d.cpp:611
#9  0x000000000042995c in ksudoku::KsView::createView (this=0x2f3d9a0) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/views/ksview.cpp:61
#10 0x0000000000416596 in KSudoku::startGame (this=0x2fc7a50, game=...) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/ksudoku.cpp:217
#11 0x000000000041739f in KSudoku::gameOpen (this=0x2fc7a50) at /build/buildd/kdegames-4.3.5/ksudoku/src/gui/ksudoku.cpp:509
#12 0x000000000041a036 in KSudoku::qt_metacall (this=0x2fc7a50, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffa5961680)
    at /build/buildd/kdegames-4.3.5/obj-x86_64-linux-gnu/ksudoku/src/gui/ksudoku.moc:111
#13 0x00007fe290a0dddc in QMetaObject::activate (sender=0x2fff8c0, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3113
#14 0x00007fe28fe9b0a7 in QAction::triggered (this=0x33e1ae0, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#15 0x00007fe28fe9c4ef in QAction::activate (this=0x2fff8c0, event=<value optimized out>) at kernel/qaction.cpp:1160
#16 0x00007fe28fe9efa7 in QAction::event (this=0x33e1ae0, e=<value optimized out>) at kernel/qaction.cpp:1079
#17 0x00007fe29179723d in KAction::event (this=0x33e1ae0, event=0x7fffa5961b80) at ../../kdeui/actions/kaction.cpp:88
#18 0x00007fe28fea0efc in QApplicationPrivate::notify_helper (this=0x2eb8360, receiver=0x2fff8c0, e=0x7fffa5961b80) at kernel/qapplication.cpp:4056
#19 0x00007fe28fea81ce in QApplication::notify (this=0x7fffa59641d0, receiver=0x2fff8c0, e=0x7fffa5961b80) at kernel/qapplication.cpp:4021
#20 0x00007fe291868f46 in KApplication::notify (this=0x7fffa59641d0, receiver=0x2fff8c0, event=0x7fffa5961b80) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x00007fe2909f8c2c in QCoreApplication::notifyInternal (this=0x7fffa59641d0, receiver=0x2fff8c0, event=0x7fffa5961b80) at kernel/qcoreapplication.cpp:610
#22 0x00007fe28fed5666 in QCoreApplication::sendEvent (this=<value optimized out>, e=0x7fffa5962010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#23 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fffa5962010) at kernel/qshortcutmap.cpp:884
#24 0x00007fe28fed74f7 in QShortcutMap::tryShortcutEvent (this=0x2eb8478, o=<value optimized out>, e=0x7fffa5962010) at kernel/qshortcutmap.cpp:369
#25 0x00007fe28fea8e6e in QApplication::notify (this=0x7fffa59641d0, receiver=0x3089ec0, e=0x7fffa5962010) at kernel/qapplication.cpp:3645
#26 0x00007fe291868f46 in KApplication::notify (this=0x7fffa59641d0, receiver=0x3089ec0, event=0x7fffa5962010) at ../../kdeui/kernel/kapplication.cpp:302
#27 0x00007fe2909f8c2c in QCoreApplication::notifyInternal (this=0x7fffa59641d0, receiver=0x3089ec0, event=0x7fffa5962010) at kernel/qcoreapplication.cpp:610
#28 0x00007fe28ff31dfa in QKeyMapper::sendKeyEvent (keyWidget=0x3089ec0, grab=<value optimized out>, type=QEvent::KeyPress, code=79, modifiers=<value optimized out>, text=..., autorepeat=false, 
    count=1, nativeScanCode=32, nativeVirtualKey=111, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1861
#29 0x00007fe28ff34370 in QKeyMapperPrivate::translateKeyEvent (this=0x2f044b0, keyWidget=0x3089ec0, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1831
#30 0x00007fe28ff0c493 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffa5963df0) at kernel/qapplication_x11.cpp:3443
#31 0x00007fe28ff35d0c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x00007fe28c0a7bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#33 0x00007fe28c0ab598 in ?? () from /lib/libglib-2.0.so.0
#34 0x00007fe28c0ab6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#35 0x00007fe290a211a6 in QEventDispatcherGlib::processEvents (this=0x2ea4c80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#36 0x00007fe28ff354be in QGuiEventDispatcherGlib::processEvents (this=0x33e1ae0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#37 0x00007fe2909f7532 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#38 0x00007fe2909f7904 in QEventLoop::exec (this=0x7fffa5964120, flags=) at kernel/qeventloop.cpp:201
#39 0x00007fe2909f9ab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#40 0x0000000000415b8f in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kdegames-4.3.5/ksudoku/src/main.cpp:94
Comment 8 Christoph Feck 2010-10-12 03:11:23 UTC
*** Bug 249667 has been marked as a duplicate of this bug. ***
Comment 9 Vitor Boschi da Silva 2012-04-30 17:14:38 UTC
Doesn't happen on version 4.8.2. Since the last comment is a few years old, I think this report should be closed.
Comment 10 Ian Wadham 2012-05-19 08:01:22 UTC
This was indeed resolved in KDE 4.8.