Bug 180288 - crash during kontact startup
Summary: crash during kontact startup
Status: RESOLVED NOT A BUG
Alias: None
Product: kontact
Classification: Applications
Component: special dates (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 179940 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-10 20:43 UTC by Artur Souza (MoRpHeUz)
Modified: 2010-09-20 19:58 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur Souza (MoRpHeUz) 2009-01-10 20:43:46 UTC
Version:            (using Devel)
Compiler:          gcc (GCC) 4.2.4 
OS:                Linux
Installed from:    Compiled sources

Kontact does not start, receiving a seg fault during startup. bt below:


Application: Kontact (kontact), signal SIGSEGV
0xb55c641b in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0xb45f56d0 (LWP 2430)):
[KCrash Handler]
#5  0xb70c6e2e in KCal::CalendarResources::resourceManager (this=0x0) at /usr/local/kde4/src/KDE/kdepimlibs/kcal/calendarresources.cpp:302
#6  0xb16e5b40 in SDSummaryWidget::usingBirthdayResource (this=0x888c4d8) at /usr/local/kde4/src/KDE/kdepim/kontact/plugins/specialdates/sdsummarywidget.cpp:649
#7  0xb16e6e33 in SDSummaryWidget::updateView (this=0x888c4d8) at /usr/local/kde4/src/KDE/kdepim/kontact/plugins/specialdates/sdsummarywidget.cpp:259
#8  0xb16e928b in SDSummaryWidget::qt_metacall (this=0x888c4d8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa2813c)
    at /usr/local/kde4/build/KDE/kdepim/kontact/plugins/specialdates/sdsummarywidget.moc:72
#9  0xb6534300 in QMetaObject::activate (sender=0x8857d18, from_signal_index=4, to_signal_index=4, argv=0xbfa2813c) at kernel/qobject.cpp:3022
#10 0xb6534874 in QMetaObject::activate (sender=0x8857d18, m=0xb7010500, local_signal_index=0, argv=0xbfa2813c) at kernel/qobject.cpp:3092
#11 0xb6fbdf17 in KABC::AddressBook::addressBookChanged (this=0x8857d18, _t1=0x8857d18) at /usr/local/kde4/build/KDE/kdepimlibs/kabc/addressbook.moc:103
#12 0xb6fbdff5 in KABC::AddressBook::resourceLoadingFinished (this=0x8857d18, resource=0x8a18868) at /usr/local/kde4/src/KDE/kdepimlibs/kabc/addressbook.cpp:935
#13 0xb6fbe10b in KABC::AddressBook::qt_metacall (this=0x8857d18, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfa2826c) at /usr/local/kde4/build/KDE/kdepimlibs/kabc/addressbook.moc:89
#14 0xb6534300 in QMetaObject::activate (sender=0x8a18868, from_signal_index=4, to_signal_index=4, argv=0xbfa2826c) at kernel/qobject.cpp:3022
#15 0xb6534874 in QMetaObject::activate (sender=0x8a18868, m=0xb7010d50, local_signal_index=0, argv=0xbfa2826c) at kernel/qobject.cpp:3092
#16 0xb6fe0551 in KABC::Resource::loadingFinished (this=0x8a18868, _t1=0x8a18868) at /usr/local/kde4/build/KDE/kdepimlibs/kabc/resource.moc:88
#17 0xb172ffb7 in KABC::ResourceFile::emitLoadingFinished (this=0x8a18868) at /usr/local/kde4/src/KDE/kdepimlibs/kabc/plugins/file/resourcefile.cpp:286
#18 0xb1730024 in KABC::ResourceFile::qt_metacall (this=0x8a18868, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa28324)
    at /usr/local/kde4/build/KDE/kdepimlibs/kabc/plugins/file/resourcefile.moc:69
#19 0xb6534300 in QMetaObject::activate (sender=0x8897aa8, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3022
#20 0xb6534874 in QMetaObject::activate (sender=0x8897aa8, m=0xb6633e04, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3092
#21 0xb653eebf in QSingleShotTimer::timeout (this=0x8897aa8) at .moc/debug-shared/qtimer.moc:74
#22 0xb653efd8 in QSingleShotTimer::timerEvent (this=0x8897aa8) at kernel/qtimer.cpp:294
#23 0xb6531ecd in QObject::event (this=0x8897aa8, e=0xbfa28884) at kernel/qobject.cpp:1111
#24 0xb58d57b8 in QApplicationPrivate::notify_helper (this=0x807f070, receiver=0x8897aa8, e=0xbfa28884) at kernel/qapplication.cpp:3803
#25 0xb58d5acd in QApplication::notify (this=0xbfa2ac54, receiver=0x8897aa8, e=0xbfa28884) at kernel/qapplication.cpp:3393
#26 0xb6ad3d13 in KApplication::notify (this=0xbfa2ac54, receiver=0x8897aa8, event=0xbfa28884) at /usr/local/kde4/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#27 0xb651c01a in QCoreApplication::notifyInternal (this=0xbfa2ac54, receiver=0x8897aa8, event=0xbfa28884) at kernel/qcoreapplication.cpp:587
#28 0xb71c9234 in QCoreApplication::sendEvent (receiver=0x8897aa8, event=0xbfa28884) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#29 0xb6554d5d in QTimerInfoList::activateTimers (this=0x8081bfc) at kernel/qeventdispatcher_unix.cpp:557
#30 0xb655239e in timerSourceDispatch (source=0x8081bc8) at kernel/qeventdispatcher_glib.cpp:160
#31 0xb4d09146 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb4d0c4f3 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0x08081098 in ?? ()
#34 0x00000000 in ?? ()
Comment 1 Dario Andres 2009-01-11 01:04:14 UTC
*** Bug 179940 has been marked as a duplicate of this bug. ***
Comment 2 rhein 2009-02-19 16:03:55 UTC
Application : Kontact (kontact), signal SIGABRT

Thread 1 (Thread 0xb4c716c0 (LWP 5983)):
[KCrash Handler]
#6  0xb7f49430 in __kernel_vsyscall ()
#7  0xb6adc8a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6ade268 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb764f795 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb764f872 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb764f915 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0xb63e94be in KDBusServiceStarter::KDBusServiceStarter () from /usr/lib/libkio.so.5
#13 0xb7f0888c in Kontact::MainWindow::MainWindow () from /usr/lib/libkontactprivate.so.4
#14 0x0804ab7e in _start ()
Comment 3 Jeremy Cribb 2009-03-10 14:34:00 UTC
same here... backtrace below

Application: Kontact (kontact), signal SIGABRT
0x00007f32750a16e1 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7f327b3fc6f0 (LWP 20159)):
[KCrash Handler]
#5  0x00007f327502c015 in raise () from /lib/libc.so.6
#6  0x00007f327502db83 in abort () from /lib/libc.so.6
#7  0x00007f3275024d89 in __assert_fail () from /lib/libc.so.6
#8  0x00007f32629548a4 in KMKernel::self () from /usr/lib/libkmailprivate.so.4
#9  0x00007f3262a1ce1e in kmcrashHandler () from /usr/lib/libkmailprivate.so.4
#10 0x00007f3277b86641 in KCrash::defaultCrashHandler (sig=11) at /build/buildd/kde4libs-4.2.1a/kdeui/util/kcrash.cpp:224
#11 <signal handler called>
#12 0x0000000000000000 in ?? ()
#13 0x00007f3277b29226 in KUniqueApplicationAdaptor::newInstance (this=0x1355d20, asn_id=<value optimized out>, args=@0x33b1f10)
    at /build/buildd/kde4libs-4.2.1a/kdeui/kernel/kuniqueapplication_p.h:77
#14 0x00007f3277b275f2 in KUniqueApplicationAdaptor::qt_metacall (this=0x1355d20, _c=QMetaObject::InvokeMetaMethod, _id=1997792592, _a=0x7fff8344cb40)
    at /build/buildd/kde4libs-4.2.1a/obj-x86_64-linux-gnu/kdeui/kuniqueapplication_p.moc:74
#15 0x00007f3275f77ea3 in ?? () from /usr/lib/libQtDBus.so.4
#16 0x00007f3275f791b0 in ?? () from /usr/lib/libQtDBus.so.4
#17 0x00007f3275f79791 in ?? () from /usr/lib/libQtDBus.so.4
#18 0x00007f3275f79aa8 in ?? () from /usr/lib/libQtDBus.so.4
#19 0x00007f3275c78da5 in QObject::event () from /usr/lib/libQtCore.so.4
#20 0x00007f32767f534a in QApplication::event () from /usr/lib/libQtGui.so.4
#21 0x00007f32767efc3d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#22 0x00007f32767f79ba in QApplication::notify () from /usr/lib/libQtGui.so.4
#23 0x00007f3275c69d61 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#24 0x00007f3275c6a9fa in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#25 0x00007f3275c924d3 in ?? () from /usr/lib/libQtCore.so.4
#26 0x00007f326f9cad3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00007f326f9ce50d in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x00007f326f9ce6cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0x00007f3275c9215f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#30 0x00007f3276881a6f in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f3275c68682 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#32 0x00007f3275c6880d in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#33 0x00007f325dc78c5d in KABC::ResourceLDAPKIO::Private::enter_loop (this=0x2074210) at /build/buildd/kdepimlibs-4.2.1/kabc/plugins/ldapkio/resourceldapkio.cpp:154
#34 0x00007f325dc7a6c4 in KABC::ResourceLDAPKIO::save (this=0x206fb40, ticket=<value optimized out>) at /build/buildd/kdepimlibs-4.2.1/kabc/plugins/ldapkio/resourceldapkio.cpp:815
#35 0x00007f32790ebcee in KABC::AddressBook::save (this=<value optimized out>, ticket=0x208df60) at /build/buildd/kdepimlibs-4.2.1/kabc/addressbook.cpp:383
#36 0x00007f32791155c5 in KABC::StdAddressBook::Private::saveAll (this=0x20701d0) at /build/buildd/kdepimlibs-4.2.1/kabc/stdaddressbook.cpp:203
#37 0x00007f3279115819 in ~StdAddressBook (this=0x2061cf0) at /build/buildd/kdepimlibs-4.2.1/kabc/stdaddressbook.cpp:138
#38 0x00007f3279114aa6 in deleteGlobalStdAddressBook () at /build/buildd/kdepimlibs-4.2.1/kabc/stdaddressbook.cpp:59
#39 0x00007f3275c6a315 in qt_call_post_routines () from /usr/lib/libQtCore.so.4
#40 0x00007f32767f9388 in QApplication::~QApplication () from /usr/lib/libQtGui.so.4
#41 0x0000000000404aa1 in _start ()
Comment 4 Santiago J. Flores 2009-04-29 18:56:57 UTC
I'm not sure if this bug is similar to mine. Kontact starts duplicated at the beginning of the session and it crashes with SIGABRT when I try to close one of them:

Aplicación: Kontact (kontact), señal SIGABRT
[Current thread is 0 (LWP 14821)]

Thread 4 (Thread 0xaccd6b90 (LWP 14897)):
#0  0xb8082430 in __kernel_vsyscall ()
#1  0xb59dd7b1 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb5cb1380 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb5bdf96e in ?? () from /usr/lib/libQtCore.so.4
#4  0xb51d64ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb59e549e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xac4d5b90 (LWP 14900)):
#0  0xb8082430 in __kernel_vsyscall ()
#1  0xb51da412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb59f4344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb5be098c in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5bd5e76 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5bdf96e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb51d64ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb59e549e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xabca9b90 (LWP 14901)):
#0  0xb8082430 in __kernel_vsyscall ()
#1  0xb51da412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb59f4344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb5be098c in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5bd5e76 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb5bdf96e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb51d64ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb59e549e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb48f0700 (LWP 14821)):
[KCrash Handler]
#6  0xb8082430 in __kernel_vsyscall ()
#7  0xb592c6d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb592e098 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb59255ce in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0xb103e13c in KMKernel::self () from /usr/lib/libkmailprivate.so.4
#11 0xb111638c in kmcrashHandler () from /usr/lib/libkmailprivate.so.4
#12 0xb6e3a17a in KCrash::defaultCrashHandler () from /usr/lib/libkdeui.so.5
#13 <signal handler called>
#14 0xb8082430 in __kernel_vsyscall ()
#15 0xb592c6d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#16 0xb592e098 in abort () from /lib/tls/i686/cmov/libc.so.6
#17 0xb59255ce in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#18 0xb103e13c in KMKernel::self () from /usr/lib/libkmailprivate.so.4
#19 0xb1128df7 in KMMainWidget::initializeFilterActions () from /usr/lib/libkmailprivate.so.4
#20 0xb159b9d6 in ?? () from /usr/lib/kde4/kmailpart.so
#21 0xb71fedc4 in KParts::Part::customEvent () from /usr/lib/libkparts.so.4
#22 0xb5ce43ff in QObject::event () from /usr/lib/libQtCore.so.4
#23 0xb61a4f2c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#24 0xb61ad22e in QApplication::notify () from /usr/lib/libQtGui.so.4
#25 0xb6dc994d in KApplication::notify () from /usr/lib/libkdeui.so.5
#26 0xb5cd3a3b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#27 0xb720aaba in KParts::MainWindow::createGUI () from /usr/lib/libkparts.so.4
#28 0xb793f7d5 in Kontact::MainWindow::~MainWindow () from /usr/lib/libkontactprivate.so.4
#29 0x0804c0ae in _start ()
Comment 5 Dario Andres 2009-05-19 18:41:52 UTC
@rhein: your crash is probably related to bug 175144.
@Santiago J. Flores: your crash is probably related to bug 185544.
Both and Jeremy Cribb: If you can reproduce the crash at will (or you experience this regularly), may you read http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports and post a complete backtrace in a NEW REPORT? Thanks!!
Comment 6 Dario Andres 2009-09-28 01:23:15 UTC
@Artur: is this still happening with an updated KDE ? Thanks
Comment 7 Nicolas L. 2009-12-11 18:40:56 UTC
i don't reproduce but i thins can still happen as mCalendar is used w/o being tested.

is this patch ok to be commited ?Index: kontact/plugins/specialdates/sdsummarywidget.cpp
===================================================================
--- kontact/plugins/specialdates/sdsummarywidget.cpp    (revision 1061413)
+++ kontact/plugins/specialdates/sdsummarywidget.cpp    (working copy)
 -681,14 +681,15 @@
 ResourceCalendar *SDSummaryWidget::usingBirthdayResource()
 {
   ResourceCalendar *resource = 0;
-
-  CalendarResourceManager *manager = mCalendar->resourceManager();
-  if ( !manager->isEmpty() ) {
-    CalendarResourceManager::Iterator it;
-    for ( it = manager->begin(); it != manager->end(); ++it ) {
-      if ( (*it)->type() == QLatin1String( "birthdays" ) ) {
-        resource = (*it);
-        break;
+  if ( mCalendar ) {
+    CalendarResourceManager *manager = mCalendar->resourceManager();
+    if ( !manager->isEmpty() ) {
+      CalendarResourceManager::Iterator it;
+      for ( it = manager->begin(); it != manager->end(); ++it ) {
+        if ( (*it)->type() == QLatin1String( "birthdays" ) ) {
+          resource = (*it);
+          break;
+        }
       }
     }
   }
Comment 8 Nicolas L. 2009-12-12 15:19:15 UTC
forget the previous patch it is wrong
Comment 9 Dario Andres 2009-12-14 15:29:26 UTC
Waiting for Artur feedback
Comment 10 Christophe Marin 2010-09-19 20:59:13 UTC
No feedback. Closing.
Comment 11 Artur Souza (MoRpHeUz) 2010-09-20 19:58:39 UTC
Sorry for not giving any info back. For some reason I was not in CC: list.
It's not happening anymore, so yep: we should close it. Sorry.

Cheers,