Bug 261045 - I just was adding a language to parley (french) -> crash
Summary: I just was adding a language to parley (french) -> crash
Status: RESOLVED FIXED
Alias: None
Product: parley
Classification: Applications
Component: general (show other bugs)
Version: 0.9.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: parley bug tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 09:32 UTC by m.wege
Modified: 2011-10-21 16:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.43 KB, text/plain)
2011-06-11 09:46 UTC, nicholas.dewey1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m.wege 2010-12-23 09:32:55 UTC
Application: parley (0.9.4)
KDE Platform Version: 4.5.85 (4.6 Beta2)
Qt Version: 4.7.0
Operating System: Linux 2.6.37-7-generic-pae i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed: I just was adding a language to parley (french) -> crash I just was adding a language to parley (french) -> crash

-- Backtrace:
Application: Parley (parley), signal: Segmentation fault
[Current thread is 1 (Thread 0xb418a710 (LWP 6103))]

Thread 4 (Thread 0xb0b28b70 (LWP 6105)):
#0  0xb4d647a9 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0xb54dafa6 in pthread_mutex_unlock () from /lib/libc.so.6
#2  0xb4cb9b34 in g_main_context_check () from /lib/libglib-2.0.so.0
#3  0xb4cba45e in ?? () from /lib/libglib-2.0.so.0
#4  0xb4cba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb6f5559f in QEventDispatcherGlib::processEvents (this=0x88ab788, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0xb6f25609 in QEventLoop::processEvents (this=0xb0b28290, flags=) at kernel/qeventloop.cpp:149
#7  0xb6f25a8a in QEventLoop::exec (this=0xb0b28290, flags=...) at kernel/qeventloop.cpp:201
#8  0xb6e21b7e in QThread::exec (this=0x88acd48) at thread/qthread.cpp:490
#9  0xb6f0435b in QInotifyFileSystemWatcherEngine::run (this=0x88acd48) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6e24df9 in QThreadPrivate::start (arg=0x88acd48) at thread/qthread_unix.cpp:266
#11 0xb4d60cc9 in start_thread () from /lib/libpthread.so.0
#12 0xb54cd69e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb0327b70 (LWP 6106)):
#0  0xb6e05dd7 in __i686.get_pc_thunk.bx () from /usr/lib/libQtCore.so.4
#1  0xb6e80209 in QElapsedTimer::isMonotonic () at tools/qelapsedtimer_unix.cpp:70
#2  0xb6e804c9 in qt_gettime () at tools/qelapsedtimer_unix.cpp:124
#3  0xb6f576e5 in QTimerInfoList::updateCurrentTime (this=0x88bb7a4) at kernel/qeventdispatcher_unix.cpp:339
#4  0xb6f5772a in QTimerInfoList::timerWait (this=0x88bb7a4, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb6f557a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb03270dc) at kernel/qeventdispatcher_glib.cpp:136
#6  0xb6f5583d in timerSourcePrepare (source=0x1952, timeout=0x0) at kernel/qeventdispatcher_glib.cpp:169
#7  0xb4cb9e6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0xb4cba279 in ?? () from /lib/libglib-2.0.so.0
#9  0xb4cba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0xb6f5559f in QEventDispatcherGlib::processEvents (this=0x88bc008, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0xb6f25609 in QEventLoop::processEvents (this=0xb03272b0, flags=) at kernel/qeventloop.cpp:149
#12 0xb6f25a8a in QEventLoop::exec (this=0xb03272b0, flags=...) at kernel/qeventloop.cpp:201
#13 0xb6e21b7e in QThread::exec (this=0x88c4950) at thread/qthread.cpp:490
#14 0xb4511171 in Herqq::Upnp::HControlPointThread::run() () from /usr/lib/libHUpnp.so.0
#15 0xb6e24df9 in QThreadPrivate::start (arg=0x88c4950) at thread/qthread_unix.cpp:266
#16 0xb4d60cc9 in start_thread () from /lib/libpthread.so.0
#17 0xb54cd69e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xacfaeb70 (LWP 6119)):
#0  0xb4d647d4 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0xb54dafa6 in pthread_mutex_unlock () from /lib/libc.so.6
#2  0xb4cb9e58 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0xb4cba279 in ?? () from /lib/libglib-2.0.so.0
#4  0xb4cba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb6f5559f in QEventDispatcherGlib::processEvents (this=0x89f6308, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0xb6f25609 in QEventLoop::processEvents (this=0xacfae290, flags=) at kernel/qeventloop.cpp:149
#7  0xb6f25a8a in QEventLoop::exec (this=0xacfae290, flags=...) at kernel/qeventloop.cpp:201
#8  0xb6e21b7e in QThread::exec (this=0x8a27bb0) at thread/qthread.cpp:490
#9  0xb6f0435b in QInotifyFileSystemWatcherEngine::run (this=0x8a27bb0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6e24df9 in QThreadPrivate::start (arg=0x8a27bb0) at thread/qthread_unix.cpp:266
#11 0xb4d60cc9 in start_thread () from /lib/libpthread.so.0
#12 0xb54cd69e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb418a710 (LWP 6103)):
[KCrash Handler]
#7  QString (this=0x890000) at /usr/include/qt4/QtCore/qstring.h:727
#8  KEduVocIdentifier::locale (this=0x890000) at ../../../libkdeedu/keduvocdocument/keduvocidentifier.cpp:93
#9  0x0807049a in DocumentHelper::fetchGrammar (doc=0x8568bf0, languageIndex=2) at ../../../parley/src/parleydocument.cpp:63
#10 0x080e23b2 in LanguagePropertiesPage::downloadGrammar (this=0x9ea3948) at ../../../parley/src/settings/languagepropertiespage.cpp:102
#11 0x080e40eb in LanguagePropertiesPage::qt_metacall (this=0x9ea3948, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbff7ca58) at ./languagepropertiespage.moc:90
#12 0xb6f2c8ca in QMetaObject::metacall (object=0x9ea3948, cl=3042276288, idx=29, argv=0xbff7ca58) at kernel/qmetaobject.cpp:237
#13 0xb6f3f6ad in QMetaObject::activate (sender=0x9e7e8a0, m=0xb615a704, local_signal_index=2, argv=0xbff7c8ec) at kernel/qobject.cpp:3280
#14 0xb5f37019 in QAbstractButton::clicked (this=0x9e7e8a0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#15 0xb5bf6ff9 in QAbstractButtonPrivate::emitClicked (this=0x9ea6e98) at widgets/qabstractbutton.cpp:546
#16 0xb5bf86f4 in QAbstractButtonPrivate::click (this=0x9ea6e98) at widgets/qabstractbutton.cpp:539
#17 0xb5bf89ae in QAbstractButton::mouseReleaseEvent (this=0x9e7e8a0, e=0xbff7d1a0) at widgets/qabstractbutton.cpp:1121
#18 0xb5826e08 in QWidget::event (this=0x9e7e8a0, event=0xbff7d1a0) at kernel/qwidget.cpp:8187
#19 0xb5bf6e9e in QAbstractButton::event (this=0x9e7e8a0, e=0x890000) at widgets/qabstractbutton.cpp:1080
#20 0xb5ca4c22 in QPushButton::event (this=0x9e7e8a0, e=0xbff7d1a0) at widgets/qpushbutton.cpp:683
#21 0xb57c8fdc in QApplicationPrivate::notify_helper (this=0x8438418, receiver=0x9e7e8a0, e=0xbff7d1a0) at kernel/qapplication.cpp:4396
#22 0xb57cfc2e in QApplication::notify (this=0xbff7ecb0, receiver=0x9e7e8a0, e=0xbff7d1a0) at kernel/qapplication.cpp:3959
#23 0xb668e39a in KApplication::notify (this=0xbff7ecb0, receiver=0x9e7e8a0, event=0xbff7d1a0) at ../../kdeui/kernel/kapplication.cpp:311
#24 0xb6f26b3b in QCoreApplication::notifyInternal (this=0xbff7ecb0, receiver=0x9e7e8a0, event=0xbff7d1a0) at kernel/qcoreapplication.cpp:732
#25 0xb57ce094 in sendEvent (receiver=0x9e7e8a0, event=0xbff7d1a0, alienWidget=0x9e7e8a0, nativeWidget=0xbff7d9f0, buttonDown=0xb61633c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x9e7e8a0, event=0xbff7d1a0, alienWidget=0x9e7e8a0, nativeWidget=0xbff7d9f0, buttonDown=0xb61633c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#27 0xb585cd10 in QETWidget::translateMouseEvent (this=0xbff7d9f0, event=0xbff7d6bc) at kernel/qapplication_x11.cpp:4403
#28 0xb585c151 in QApplication::x11ProcessEvent (this=0xbff7ecb0, event=0xbff7d6bc) at kernel/qapplication_x11.cpp:3414
#29 0xb588b36a in x11EventSourceDispatch (s=0x843b770, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0xb4cb6855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#31 0xb4cba668 in ?? () from /lib/libglib-2.0.so.0
#32 0xb4cba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#33 0xb6f55565 in QEventDispatcherGlib::processEvents (this=0x84383f8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#34 0xb588abe5 in QGuiEventDispatcherGlib::processEvents (this=0x84383f8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0xb6f25609 in QEventLoop::processEvents (this=0xbff7d9b0, flags=) at kernel/qeventloop.cpp:149
#36 0xb6f25a8a in QEventLoop::exec (this=0xbff7d9b0, flags=...) at kernel/qeventloop.cpp:201
#37 0xb5d33873 in QDialog::exec (this=0xbff7d9f0) at dialogs/qdialog.cpp:552
#38 0x0806fc7c in ParleyDocument::languageProperties (this=0x856df50) at ../../../parley/src/parleydocument.cpp:403
#39 0x08073433 in ParleyDocument::qt_metacall (this=0x856df50, _c=QMetaObject::InvokeMetaMethod, _id=22, _a=0xbff7db58) at ./parleydocument.moc:119
#40 0xb6f2c8ca in QMetaObject::metacall (object=0x856df50, cl=3042276288, idx=22, argv=0xbff7db58) at kernel/qmetaobject.cpp:237
#41 0xb6f3f6ad in QMetaObject::activate (sender=0x9a67590, m=0xb6147370, local_signal_index=1, argv=0xbff7c8ec) at kernel/qobject.cpp:3280
#42 0xb57c0f99 in QAction::triggered (this=0x9a67590, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#43 0xb57c28dc in QAction::activate (this=0x9a67590, event=QAction::Trigger) at kernel/qaction.cpp:1256
#44 0xb5c8e7ef in QMenuPrivate::activateCausedStack (this=0x93c93b8, causedStack=..., action=0x9a67590, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#45 0xb5c94a4b in QMenuPrivate::activateAction (this=0x93c93b8, action=0x9a67590, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#46 0xb5c955e0 in QMenu::mouseReleaseEvent (this=0x85e5930, e=0xbff7e400) at widgets/qmenu.cpp:2301
#47 0xb677fc35 in KMenu::mouseReleaseEvent (this=0x85e5930, e=0xbff7e400) at ../../kdeui/widgets/kmenu.cpp:458
#48 0xb5826e08 in QWidget::event (this=0x85e5930, event=0xbff7e400) at kernel/qwidget.cpp:8187
#49 0xb5c9702f in QMenu::event (this=0x85e5930, e=0xbff7e400) at widgets/qmenu.cpp:2410
#50 0xb57c8fdc in QApplicationPrivate::notify_helper (this=0x8438418, receiver=0x85e5930, e=0xbff7e400) at kernel/qapplication.cpp:4396
#51 0xb57cfc2e in QApplication::notify (this=0xbff7ecb0, receiver=0x85e5930, e=0xbff7e400) at kernel/qapplication.cpp:3959
#52 0xb668e39a in KApplication::notify (this=0xbff7ecb0, receiver=0x85e5930, event=0xbff7e400) at ../../kdeui/kernel/kapplication.cpp:311
#53 0xb6f26b3b in QCoreApplication::notifyInternal (this=0xbff7ecb0, receiver=0x85e5930, event=0xbff7e400) at kernel/qcoreapplication.cpp:732
#54 0xb57ce094 in sendEvent (receiver=0x85e5930, event=0xbff7e400, alienWidget=0x0, nativeWidget=0x85e5930, buttonDown=0xb61633c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#55 QApplicationPrivate::sendMouseEvent (receiver=0x85e5930, event=0xbff7e400, alienWidget=0x0, nativeWidget=0x85e5930, buttonDown=0xb61633c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#56 0xb585d261 in QETWidget::translateMouseEvent (this=0x85e5930, event=0xbff7e91c) at kernel/qapplication_x11.cpp:4337
#57 0xb585c151 in QApplication::x11ProcessEvent (this=0xbff7ecb0, event=0xbff7e91c) at kernel/qapplication_x11.cpp:3414
#58 0xb588b36a in x11EventSourceDispatch (s=0x843b770, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#59 0xb4cb6855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#60 0xb4cba668 in ?? () from /lib/libglib-2.0.so.0
#61 0xb4cba848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#62 0xb6f55565 in QEventDispatcherGlib::processEvents (this=0x84383f8, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#63 0xb588abe5 in QGuiEventDispatcherGlib::processEvents (this=0x84383f8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#64 0xb6f25609 in QEventLoop::processEvents (this=0xbff7ec14, flags=) at kernel/qeventloop.cpp:149
#65 0xb6f25a8a in QEventLoop::exec (this=0xbff7ec14, flags=...) at kernel/qeventloop.cpp:201
#66 0xb6f2a00f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#67 0xb57c7e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#68 0x0806eb19 in main (argc=1, argv=0xbff7eec4) at ../../../parley/src/main.cpp:139

Reported using DrKonqi
Comment 1 nicholas.dewey1 2011-06-11 09:46:43 UTC
Created attachment 60881 [details]
New crash information added by DrKonqi

parley (0.9.4) on KDE Platform 4.5.5 (KDE 4.5.5) using Qt 4.7.0

- What I was doing when the application crashed:

I compliling a parley flash card set.  While trying to add a third language to the set, Parley crashed.

-- Backtrace (Reduced):
#7  0x00d927db in QString (this=0x45006e) at /usr/include/qt4/QtCore/qstring.h:727
#8  KEduVocIdentifier::locale (this=0x45006e) at ../../../libkdeedu/keduvocdocument/keduvocidentifier.cpp:93
#9  0x080701ba in DocumentHelper::fetchGrammar (doc=0x93a0a40, languageIndex=2) at ../../../parley/src/parleydocument.cpp:63
#10 0x080e0d82 in LanguagePropertiesPage::downloadGrammar (this=0x9350788) at ../../../parley/src/settings/languagepropertiespage.cpp:102
#11 0x080e2abb in LanguagePropertiesPage::qt_metacall (this=0x9350788, _c=QMetaObject::InvokeMetaMethod, _id=29, _a=0xbf960208) at ./languagepropertiespage.moc:90
Comment 2 Jeremy Whiting 2011-10-21 16:29:56 UTC
Git commit 039cf759699ce6c7a7ede85300f7801abacd73fb by Jeremy Whiting.
Committed on 21/10/2011 at 18:28.
Pushed by whiting into branch 'master'.

Make sure we have an identifier before trying to dereference it.
Fixes add language crash.
BUG: 261045

M  +4    -3    src/settings/languagepropertiespage.cpp

http://commits.kde.org/parley/039cf759699ce6c7a7ede85300f7801abacd73fb
Comment 3 Jeremy Whiting 2011-10-21 16:30:41 UTC
Git commit a11d3527e169fc57aa16077f65a6c75076980ced by Jeremy Whiting.
Committed on 21/10/2011 at 18:28.
Pushed by whiting into branch 'KDE/4.7'.

Make sure we have an identifier before trying to dereference it.
Fixes add language crash.
BUG: 261045
(cherry picked from commit 039cf759699ce6c7a7ede85300f7801abacd73fb)

M  +4    -3    src/settings/languagepropertiespage.cpp

http://commits.kde.org/parley/a11d3527e169fc57aa16077f65a6c75076980ced