Bug 315912 - Crash when adding a backend entry but filling in nothing
Summary: Crash when adding a backend entry but filling in nothing
Status: RESOLVED FIXED
Alias: None
Product: knights
Classification: Applications
Component: general (show other bugs)
Version: 2.5.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Miha Čančula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 15:49 UTC by Joachim Mairböck
Modified: 2016-02-07 20:22 UTC (History)
1 user (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 Joachim Mairböck 2013-02-28 15:49:08 UTC
Application: knights (2.5.0)
KDE Platform Version: 4.10.00
Qt Version: 4.8.4
Operating System: Linux 3.4.28-2.20-desktop i686
Distribution: "openSUSE 12.2 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:
When adding a new chess backend but not filling in any information and pressing OK in the configure dialog.

-- Backtrace:
Application: Knights (knights), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xb1bc9740 (LWP 26259))]

Thread 2 (Thread 0xaed09b40 (LWP 26260)):
#0  0xb76fb424 in __kernel_vsyscall ()
#1  0xb571b1bb in read () from /lib/libc.so.6
#2  0xb2d80c7e in read (__nbytes=16, __buf=0xaed0905c, __fd=<optimized out>) at /usr/include/bits/unistd.h:45
#3  g_wakeup_acknowledge (wakeup=0x872e260) at gwakeup.c:212
#4  0xb2d41622 in g_main_context_check (context=context@entry=0xae4004e0, max_priority=2147483647, fds=fds@entry=0xae402278, n_fds=n_fds@entry=1) at gmain.c:2980
#5  0xb2d41a82 in g_main_context_iterate (context=context@entry=0xae4004e0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3143
#6  0xb2d41c51 in g_main_context_iteration (context=0xae4004e0, may_block=1) at gmain.c:3207
#7  0xb661664f in QEventDispatcherGlib::processEvents (this=0xae400468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#8  0xb65e312c in QEventLoop::processEvents (this=this@entry=0xaed09228, flags=...) at kernel/qeventloop.cpp:149
#9  0xb65e3421 in QEventLoop::exec (this=0xaed09228, flags=...) at kernel/qeventloop.cpp:204
#10 0xb64ceb3c in QThread::exec (this=0x8b48860) at thread/qthread.cpp:542
#11 0xb65c167d in QInotifyFileSystemWatcherEngine::run (this=0x8b48860) at io/qfilesystemwatcher_inotify.cpp:256
#12 0xb64d1f48 in QThreadPrivate::start (arg=0x8b48860) at thread/qthread_unix.cpp:338
#13 0xb5312e32 in start_thread () from /lib/libpthread.so.0
#14 0xb572c7ee in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb1bc9740 (LWP 26259)):
[KCrash Handler]
#7  text (this=0x0) at /usr/include/QtGui/qtablewidget.h:108
#8  Knights::EngineSettings::writeConfig (this=0x8db9280) at /usr/src/debug/knights-2.5.0/src/enginesettings.cpp:168
#9  0x0805d3ac in Knights::EngineSettings::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/knights-2.5.0/build/src/moc_enginesettings.cpp:57
#10 0xb65fc9b2 in QMetaObject::activate (sender=0x8d4cc68, m=0xb63ce388 <QDialog::staticMetaObject>, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3548
#11 0xb5f8f925 in QDialog::accepted (this=this@entry=0x8d4cc68) at .moc/release-shared/moc_qdialog.cpp:159
#12 0xb5f8fa08 in QDialog::done (this=0x8d4cc68, r=1) at dialogs/qdialog.cpp:599
#13 0xb5f8e23a in QDialog::accept (this=0x8d4cc68) at dialogs/qdialog.cpp:612
#14 0xb73c24cb in KDialog::slotButtonClicked (this=0x8d4cc68, button=4) at /usr/src/debug/kdelibs-4.10.0/kdeui/dialogs/kdialog.cpp:885
#15 0xb73c2a14 in qt_static_metacall (_a=0xbfc17b68, _id=33, _o=0x8d4cc68, _c=<optimized out>) at /usr/src/debug/kdelibs-4.10.0/build/kdeui/kdialog.moc:167
#16 KDialog::qt_static_metacall (_o=_o@entry=0x8d4cc68, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=33, _a=0xbfc17b68) at /usr/src/debug/kdelibs-4.10.0/build/kdeui/kdialog.moc:127
#17 0xb65fc9b2 in QMetaObject::activate (sender=0x8b55eb4, m=0xb674ddf8 <QSignalMapper::staticMetaObject>, local_signal_index=0, argv=0xbfc17b68) at kernel/qobject.cpp:3548
#18 0xb6601c55 in QSignalMapper::mapped (this=this@entry=0x8b55eb4, _t1=4) at .moc/release-shared/moc_qsignalmapper.cpp:115
#19 0xb6601e9d in QSignalMapper::map (this=this@entry=0x8b55eb4, sender=0x8da9358) at kernel/qsignalmapper.cpp:266
#20 0xb6601fae in QSignalMapper::map (this=this@entry=0x8b55eb4) at kernel/qsignalmapper.cpp:257
#21 0xb6602404 in qt_static_metacall (_a=0xbfc17cf8, _id=4, _o=0x8b55eb4, _c=<optimized out>) at .moc/release-shared/moc_qsignalmapper.cpp:64
#22 QSignalMapper::qt_static_metacall (_o=_o@entry=0x8b55eb4, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=4, _a=0xbfc17cf8) at .moc/release-shared/moc_qsignalmapper.cpp:54
#23 0xb65fc9b2 in QMetaObject::activate (sender=0x8da9358, m=0xb63d7888 <QAbstractButton::staticMetaObject>, local_signal_index=2, argv=0xbfc17cf8) at kernel/qobject.cpp:3548
#24 0xb6169cfd in QAbstractButton::clicked (this=0x8da9358, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:220
#25 0xb5e6dd5d in QAbstractButtonPrivate::emitClicked (this=this@entry=0x8da9440) at widgets/qabstractbutton.cpp:548
#26 0xb5e6e5ab in QAbstractButtonPrivate::click (this=this@entry=0x8da9440) at widgets/qabstractbutton.cpp:541
#27 0xb5e6e866 in QAbstractButton::mouseReleaseEvent (this=0x8da9358, e=0xbfc18414) at widgets/qabstractbutton.cpp:1123
#28 0xb5aa88c4 in QWidget::event (this=0x8da9358, event=0xbfc18414) at kernel/qwidget.cpp:8375
#29 0xb5e6dc22 in QAbstractButton::event (this=0x8da9358, e=0xbfc18414) at widgets/qabstractbutton.cpp:1082
#30 0xb5f0f828 in QPushButton::event (this=0x8da9358, e=0xbfc18414) at widgets/qpushbutton.cpp:683
#31 0xb5a4eb9c in QApplicationPrivate::notify_helper (this=0x872c360, receiver=0x8da9358, e=0xbfc18414) at kernel/qapplication.cpp:4562
#32 0xb5a54089 in QApplication::notify (this=0x872c360, receiver=0x8da9358, e=0xbfc18414) at kernel/qapplication.cpp:4105
#33 0xb7476b61 in KApplication::notify (this=0xbfc18c04, receiver=0x8da9358, event=0xbfc18414) at /usr/src/debug/kdelibs-4.10.0/kdeui/kernel/kapplication.cpp:311
#34 0xb65e465e in QCoreApplication::notifyInternal (this=0xbfc18c04, receiver=0x8da9358, event=0xbfc18414) at kernel/qcoreapplication.cpp:946
#35 0xb5a4f9ff in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#36 QApplicationPrivate::sendMouseEvent (receiver=0x8da9358, event=0xbfc18414, alienWidget=0x8da9358, nativeWidget=0x8d47af8, buttonDown=0xb63e0cb4 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#37 0xb5ad8145 in QETWidget::translateMouseEvent (this=0x8d47af8, event=0xbfc1883c) at kernel/qapplication_x11.cpp:4527
#38 0xb5ad6c09 in QApplication::x11ProcessEvent (this=0xbfc18c04, event=0xbfc1883c) at kernel/qapplication_x11.cpp:3650
#39 0xb5b008a4 in x11EventSourceDispatch (s=s@entry=0x8729da0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#40 0xb2d417d3 in g_main_dispatch (context=0x872d0b0, context@entry=0x872c740) at gmain.c:2539
#41 g_main_context_dispatch (context=context@entry=0x872d0b0) at gmain.c:3075
#42 0xb2d41b70 in g_main_context_iterate (context=context@entry=0x872d0b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3146
#43 0xb2d41c51 in g_main_context_iteration (context=0x872d0b0, may_block=1) at gmain.c:3207
#44 0xb6616631 in QEventDispatcherGlib::processEvents (this=0x870b998, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#45 0xb5b0048a in QGuiEventDispatcherGlib::processEvents (this=0x870b998, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0xb65e312c in QEventLoop::processEvents (this=this@entry=0xbfc18b38, flags=...) at kernel/qeventloop.cpp:149
#47 0xb65e3421 in QEventLoop::exec (this=0xbfc18b38, flags=...) at kernel/qeventloop.cpp:204
#48 0xb65e86da in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#49 0xb5a4ca14 in QApplication::exec () at kernel/qapplication.cpp:3823
#50 0x0805c42e in main (argc=5, argv=0xbfc18cd4) at /usr/src/debug/knights-2.5.0/src/main.cpp:79

Reported using DrKonqi
Comment 1 Alexander Semke 2016-02-07 20:22:13 UTC
Git commit c6dde843f14199c8339d31bc5f60496c611f6674 by Alexander Semke.
Committed on 07/02/2016 at 20:20.
Pushed by asemke into branch 'master'.

Don't allow to store engine settings with incomplete information

M  +22   -38   src/enginesettings.cpp
M  +7    -8    src/enginesettings.h
M  +1    -0    src/gamedialog.cpp

http://commits.kde.org/knights/c6dde843f14199c8339d31bc5f60496c611f6674