Bug 298066

Summary: Konquest crash when setting up game
Product: [Applications] konquest Reporter: flaran
Component: generalAssignee: Pierre Ducroquet <pinaraf>
Status: RESOLVED FIXED    
Severity: crash CC: kde-games-bugs, reeves.87
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.5
Sentry Crash Report:

Description flaran 2012-04-13 17:27:01 UTC
Application: konquest (2.1)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.3.1-3.fc16.i686 i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
In the "New" dialog, setting the game up.  As soon as I modified "production" under "Map", the segfault occured.

The crash can be reproduced every time.

-- Backtrace:
Application: Konquest (konquest), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#7  hasPlanet (this=<optimized out>) at /usr/src/debug/kdegames-4.8.1/konquest/sector.h:56
#8  NewGameDlg::slotNewProduction (this=0x8d20690, value=11) at /usr/src/debug/kdegames-4.8.1/konquest/dialogs/newgamedlg.cc:500
#9  0x4f1e3ea1 in QMetaObject::activate (sender=0x8ee8270, m=0x441f3530, local_signal_index=0, argv=0xbff18088) at kernel/qobject.cpp:3547
#10 0x43fabae6 in QSpinBox::valueChanged (this=0x8ee8270, _t1=11) at .moc/release-shared/moc_qspinbox.cpp:163
#11 0x43d4346b in QSpinBoxPrivate::emitSignals (this=0x8ee9bc8, ep=EmitIfChanged, old=...) at widgets/qspinbox.cpp:961
#12 0x43c9ef83 in QAbstractSpinBoxPrivate::setValue (this=0x8ee9bc8, val=..., ep=EmitIfChanged, doUpdate=true) at widgets/qabstractspinbox.cpp:1721
#13 0x43ca0148 in QAbstractSpinBox::stepBy (this=0x8ee8270, steps=1) at widgets/qabstractspinbox.cpp:623
#14 0x43c9dc3e in QAbstractSpinBoxPrivate::updateState (this=0x8ee9bc8, up=true, fromKeyboard=false) at widgets/qabstractspinbox.cpp:1613
#15 0x43c9dd58 in QAbstractSpinBox::mousePressEvent (this=0x8ee8270, event=0xbff18854) at widgets/qabstractspinbox.cpp:1327
#16 0x438c93ee in QWidget::event (this=0x8ee8270, event=0xbff18854) at kernel/qwidget.cpp:8357
#17 0x43c9c57c in QAbstractSpinBox::event (this=0x8ee8270, event=0xbff18854) at widgets/qabstractspinbox.cpp:757
#18 0x43d45ec9 in QSpinBox::event (this=0x8ee8270, event=0xbff18854) at widgets/qspinbox.cpp:1322
#19 0x4386e134 in notify_helper (e=0xbff18854, receiver=0x8ee8270, this=0x88ff5e0) at kernel/qapplication.cpp:4550
#20 QApplicationPrivate::notify_helper (this=0x88ff5e0, receiver=0x8ee8270, e=0xbff18854) at kernel/qapplication.cpp:4522
#21 0x438742ca in QApplication::notify (this=0x88ff5e0, receiver=0x8ee8270, e=0xbff18854) at kernel/qapplication.cpp:4093
#22 0x4176d122 in KApplication::notify (this=0xbff1a0c4, receiver=0x8ee8270, event=0xbff18854) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#23 0x4f1ce5fe in QCoreApplication::notifyInternal (this=0xbff1a0c4, receiver=0x8ee8270, event=0xbff18854) at kernel/qcoreapplication.cpp:876
#24 0x4386f106 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#25 QApplicationPrivate::sendMouseEvent (receiver=0x8ee8270, event=0xbff18854, alienWidget=0x8ee8270, nativeWidget=0x8d20690, buttonDown=0x441faed4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3161
#26 0x438f8e6c in QETWidget::translateMouseEvent (this=0x8d20690, event=0xbff18d0c) at kernel/qapplication_x11.cpp:4520
#27 0x438f7e4d in QApplication::x11ProcessEvent (this=0xbff1a0c4, event=0xbff18d0c) at kernel/qapplication_x11.cpp:3641
#28 0x43922e05 in x11EventSourceDispatch (s=0x8903340, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#29 0x4e77862f in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#30 0x4e778d70 in ?? () from /lib/libglib-2.0.so.0
#31 0x4e77901f in g_main_context_iteration () from /lib/libglib-2.0.so.0
#32 0x4f2012b8 in QEventDispatcherGlib::processEvents (this=0x88de548, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#33 0x43922a9b in QGuiEventDispatcherGlib::processEvents (this=0x88de548, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#34 0x4f1cd4ee in QEventLoop::processEvents (this=0xbff19010, flags=...) at kernel/qeventloop.cpp:149
#35 0x4f1cd799 in QEventLoop::exec (this=0xbff19010, flags=...) at kernel/qeventloop.cpp:204
#36 0x43dbe75a in QDialog::exec (this=0x8d20690) at dialogs/qdialog.cpp:552
#37 0x0805e26f in GameView::startNewGame (this=0x8cc35b0) at /usr/src/debug/kdegames-4.8.1/konquest/gameview.cc:452
#38 0x4f1e3ea1 in QMetaObject::activate (sender=0x8a0f040, m=0x441dd8d8, local_signal_index=1, argv=0xbff19168) at kernel/qobject.cpp:3547
#39 0x4386715e in QAction::triggered (this=0x8a0f040, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#40 0x438673fb in QAction::activate (this=0x8a0f040, event=QAction::Trigger) at kernel/qaction.cpp:1257
#41 0x43d72601 in trigger (this=<optimized out>) at ../../src/gui/kernel/qaction.h:218
#42 QToolButton::nextCheckState (this=0x8c205c8) at widgets/qtoolbutton.cpp:1144
#43 0x43c9831c in QAbstractButtonPrivate::click (this=0x8c560c0) at widgets/qabstractbutton.cpp:528
#44 0x43c98616 in QAbstractButton::mouseReleaseEvent (this=0x8c205c8, e=0xbff19864) at widgets/qabstractbutton.cpp:1121
#45 0x43d726ae in QToolButton::mouseReleaseEvent (this=0x8c205c8, e=0xbff19864) at widgets/qtoolbutton.cpp:718
#46 0x438c8f5d in QWidget::event (this=0x8c205c8, event=0xbff19864) at kernel/qwidget.cpp:8361
#47 0x43c97881 in QAbstractButton::event (this=0x8c205c8, e=0xbff19864) at widgets/qabstractbutton.cpp:1080
#48 0x43d73e1d in QToolButton::event (this=0x8c205c8, event=0xbff19864) at widgets/qtoolbutton.cpp:1160
#49 0x4386e134 in notify_helper (e=0xbff19864, receiver=0x8c205c8, this=0x88ff5e0) at kernel/qapplication.cpp:4550
#50 QApplicationPrivate::notify_helper (this=0x88ff5e0, receiver=0x8c205c8, e=0xbff19864) at kernel/qapplication.cpp:4522
#51 0x438742ca in QApplication::notify (this=0x88ff5e0, receiver=0x8c205c8, e=0xbff19864) at kernel/qapplication.cpp:4093
#52 0x4176d122 in KApplication::notify (this=0xbff1a0c4, receiver=0x8c205c8, event=0xbff19864) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:311
#53 0x4f1ce5fe in QCoreApplication::notifyInternal (this=0xbff1a0c4, receiver=0x8c205c8, event=0xbff19864) at kernel/qcoreapplication.cpp:876
#54 0x4386f106 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#55 QApplicationPrivate::sendMouseEvent (receiver=0x8c205c8, event=0xbff19864, alienWidget=0x8c205c8, nativeWidget=0x8a02078, buttonDown=0x441faed4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3161
#56 0x438f8e6c in QETWidget::translateMouseEvent (this=0x8a02078, event=0xbff19d1c) at kernel/qapplication_x11.cpp:4520
#57 0x438f7e4d in QApplication::x11ProcessEvent (this=0xbff1a0c4, event=0xbff19d1c) at kernel/qapplication_x11.cpp:3641
#58 0x43922e05 in x11EventSourceDispatch (s=0x8903340, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#59 0x4e77862f in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#60 0x4e778d70 in ?? () from /lib/libglib-2.0.so.0
#61 0x4e77901f in g_main_context_iteration () from /lib/libglib-2.0.so.0
#62 0x4f2012b8 in QEventDispatcherGlib::processEvents (this=0x88de548, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#63 0x43922a9b in QGuiEventDispatcherGlib::processEvents (this=0x88de548, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#64 0x4f1cd4ee in QEventLoop::processEvents (this=0xbff1a024, flags=...) at kernel/qeventloop.cpp:149
#65 0x4f1cd799 in QEventLoop::exec (this=0xbff1a024, flags=...) at kernel/qeventloop.cpp:204
#66 0x4f1d293b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#67 0x4386bf35 in QApplication::exec () at kernel/qapplication.cpp:3811
#68 0x08055efe in main (argc=1, argv=0xbff1a224) at /usr/src/debug/kdegames-4.8.1/konquest/Konquest.cc:58

Reported using DrKonqi
Comment 1 Albert Astals Cid 2012-07-12 17:40:26 UTC
SVN commit 1305493 by aacid:

Disable KillPercentageSB and ProductionSB if there is no selected map

Based in a patch by Michael Reeves <reeves.87@gmail.com> in svn reviewboard 7006
Related: bug 297748
FIXED-IN: 4.8.5


 M  +4 -2      newgamedlg.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1305493
Comment 2 Albert Astals Cid 2012-07-12 17:41:50 UTC
SVN commit 1305494 by aacid:

backport r1305493 | aacid | 2012-07-12 19:40:19 +0200 (Thu, 12 Jul 2012) | 7 lines

Disable KillPercentageSB and ProductionSB if there is no selected map

Based in a patch by Michael Reeves <reeves.87@gmail.com> in svn reviewboard 7006
Related: bug 297748
FIXED-IN: 4.8.5


 M  +4 -2      newgamedlg.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1305494
Comment 3 Albert Astals Cid 2012-07-12 17:45:45 UTC
SVN commit 1305495 by aacid:

backport r1305493 | aacid | 2012-07-12 19:40:19 +0200 (Thu, 12 Jul 2012) | 7 lines

Disable KillPercentageSB and ProductionSB if there is no selected map

Based in a patch by Michael Reeves <reeves.87@gmail.com> in svn reviewboard 7006
Related: bug 297748
FIXED-IN: 4.8.5


 M  +4 -2      newgamedlg.cc  


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