[Bug 207435] New: kontact crash on exit in KABC::AddressBook::findByUid

Paul Fee pfee at talk21.com
Tue Sep 15 10:33:25 BST 2009


https://bugs.kde.org/show_bug.cgi?id=207435

           Summary: kontact crash on exit in KABC::AddressBook::findByUid
           Product: kontact
           Version: unspecified
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: pfee at talk21.com


Application that crashed: kontact
Version of the application: 4.3.1
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.28-15-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
I noticed that kontact was using a lot of memory.

"top" showed it's VIRT memory as 1035m and RES as 105m.  I'm not sure if that's
usual or not, but decided to restart kontact to free up some memory.

I quit kontact, the window disappeared, but the process was still visible in
"top", using a lot of CPU, so I presume it had cleanup tasks to do before
exiting completely.

After a delay, perhaps 30 seconds, kontact crashed.

The stack trace shows:
KABC::AddressBook::findByUid (this=0x0, uid=@0x7fffaa7aa950)

I presume "this=0x0" is a sign that a NULL pointer to a KABC::AddressBook has
been dereferenced by way of calling the findByUid() method.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 0 (LWP 6081)]

Thread 3 (Thread 0x7fd3794e3950 (LWP 4410)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217
#1  0x00007fd375088f91 in metronom_sync_loop (this=0x793ea30) at metronom.c:870
#2  0x00007fd3992723ba in start_thread (arg=<value optimized out>) at
pthread_create.c:297
#3  0x00007fd39c169fcd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd36eb94950 (LWP 4412)):
#0  IA__g_main_context_query (context=0x7838c30, max_priority=2147483647,
timeout=0x7fd36eb93f00, fds=0x1, n_fds=-1676180016) at
/build/buildd/glib2.0-2.20.1/glib/gmain.c:2235
#1  0x00007fd39643c627 in g_main_context_iterate (context=0x7838c30, block=1,
dispatch=1, self=<value optimized out>) at
/build/buildd/glib2.0-2.20.1/glib/gmain.c:2430
#2  0x00007fd39643ca7c in IA__g_main_context_iteration (context=0x7838c30,
may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#3  0x00007fd39cd11aae in QEventDispatcherGlib::processEvents (this=0x7838110,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329
#4  0x00007fd39cce6f42 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = 1857634256}) at kernel/qeventloop.cpp:149
#5  0x00007fd39cce7314 in QEventLoop::exec (this=0x7fd36eb94010, flags={i =
1857634336}) at kernel/qeventloop.cpp:201
#6  0x00007fd39cbfbdc8 in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:487
#7  0x00007fd37493262c in Phonon::Xine::XineThread::run (this=0x2c29ad0) at
/build/buildd/phonon-4.3.1/xine/xinethread.cpp:143
#8  0x00007fd39cbfed35 in QThreadPrivate::start (arg=0x2c29ad0) at
thread/qthread_unix.cpp:188
#9  0x00007fd3992723ba in start_thread (arg=<value optimized out>) at
pthread_create.c:297
#10 0x00007fd39c169fcd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd3a2765750 (LWP 6081)):
[KCrash Handler]
#5  KABC::AddressBook::findByUid (this=0x0, uid=@0x7fffaa7aa950) at
/build/buildd/kdepimlibs-4.3.1/kabc/addressbook.cpp:617
#6  0x00007fd38bfca075 in KABCore::setContactSelected (this=0x786afc0,
uid=@0x7fffaa7aa950) at /build/buildd/kdepim-4.3.1/kaddressbook/kabcore.cpp:331
#7  0x00007fd38bfd0a8e in KABCore::qt_metacall (this=0x786afc0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaa7aa7c0)
    at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/kabcore.moc:182
#8  0x00007fd39ccfdea2 in QMetaObject::activate (sender=0x383bff0,
from_signal_index=<value optimized out>, to_signal_index=27,
argv=0x7fffaa7aa7c0) at kernel/qobject.cpp:3113
#9  0x00007fd38bfef192 in ViewManager::selected (this=0x7fffaa7aa640,
_t1=<value optimized out>) at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/viewmanager.moc:136
#10 0x00007fd38bff4a81 in ViewManager::qt_metacall (this=0x383bff0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaa7aa900)
    at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/viewmanager.moc:102
#11 0x00007fd39ccfdea2 in QMetaObject::activate (sender=0x46d0350,
from_signal_index=<value optimized out>, to_signal_index=28,
argv=0x7fffaa7aa7c0) at kernel/qobject.cpp:3113
#12 0x00007fd38bfd25b5 in KAddressBookView::selected (this=0x7fffaa7aa640,
_t1=<value optimized out>) at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/kaddressbookview.moc:125
#13 0x00007fd376b96a21 in KAddressBookTableView::addresseeSelected
(this=0x46d0350) at
/build/buildd/kdepim-4.3.1/kaddressbook/views/kaddressbooktableview.cpp:318
#14 0x00007fd376b975c8 in KAddressBookTableView::qt_metacall (this=0x46d0350,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaa7aaa40)
    at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/views/kaddressbooktableview.moc:75
#15 0x00007fd39ccfdea2 in QMetaObject::activate (sender=0x46d1040,
from_signal_index=<value optimized out>, to_signal_index=50,
argv=0x7fffaa7aa7c0) at kernel/qobject.cpp:3113
#16 0x00007fd3a0af7400 in Q3ListView::setSelected (this=0x46d1040,
item=0xa8e33e0, selected=true) at itemviews/q3listview.cpp:5194
#17 0x00007fd376b9660f in KAddressBookTableView::setSelected (this=0x46d0350,
uid=@0x381d6c8, selected=true) at
/build/buildd/kdepim-4.3.1/kaddressbook/views/kaddressbooktableview.cpp:286
#18 0x00007fd38bfd2fd9 in KAddressBookView::updateView (this=0x46d0350) at
/build/buildd/kdepim-4.3.1/kaddressbook/kaddressbookview.cpp:190
#19 0x00007fd38bfd3510 in KAddressBookView::qt_metacall (this=0x46d0350,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaa7aacb0)
    at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/kaddressbookview.moc:107
#20 0x00007fd376b97525 in KAddressBookTableView::qt_metacall
(this=0x7fffaa7aa640, _c=QMetaObject::InvokeMetaMethod, _id=-1434801840,
_a=0x7fffaa7aa7c0)
    at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/views/kaddressbooktableview.moc:69
#21 0x00007fd39ccfdea2 in QMetaObject::activate (sender=0x31556e0,
from_signal_index=<value optimized out>, to_signal_index=4,
argv=0x7fffaa7aa7c0) at kernel/qobject.cpp:3113
#22 0x00007fd38c002796 in KAB::SearchManager::search (this=0x31556e0,
pattern=@0x3155710, fields=@0x3155718, type=KAB::SearchManager::Contains)
    at /build/buildd/kdepim-4.3.1/kaddressbook/searchmanager.cpp:262
#23 0x00007fd38bfc7532 in KABCore::addressBookChanged (this=0x786afc0) at
/build/buildd/kdepim-4.3.1/kaddressbook/kabcore.cpp:1078
#24 0x00007fd38bfd05a5 in KABCore::qt_metacall (this=0x786afc0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffaa7aafb0)
    at
/build/buildd/kdepim-4.3.1/obj-x86_64-linux-gnu/kaddressbook/kabcore.moc:242
#25 0x00007fd39ccfdea2 in QMetaObject::activate (sender=0x4266a50,
from_signal_index=<value optimized out>, to_signal_index=4,
argv=0x7fffaa7aa7c0) at kernel/qobject.cpp:3113
#26 0x00007fd39ccf8263 in QObject::event (this=0x4266a50, e=0x0) at
kernel/qobject.cpp:1075
#27 0x00007fd39d868f4d in QApplicationPrivate::notify_helper (this=0x129f4a0,
receiver=0x4266a50, e=0x7fffaa7ab660) at kernel/qapplication.cpp:4056
#28 0x00007fd39d87118a in QApplication::notify (this=0x7fffaa7ac9b0,
receiver=0x4266a50, e=0x7fffaa7ab660) at kernel/qapplication.cpp:4021
#29 0x00007fd39ec6ddeb in KApplication::notify (this=0x7fffaa7ac9b0,
receiver=0x4266a50, event=0x7fffaa7ab660) at
/build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302
#30 0x00007fd39cce86ac in QCoreApplication::notifyInternal
(this=0x7fffaa7ac9b0, receiver=0x4266a50, event=0x7fffaa7ab660) at
kernel/qcoreapplication.cpp:610
#31 0x00007fd39cd15516 in QTimerInfoList::activateTimers (this=0x12936c0) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#32 0x00007fd39cd11b2d in timerSourceDispatch (source=<value optimized out>) at
kernel/qeventdispatcher_glib.cpp:165
#33 0x00007fd39643920a in IA__g_main_context_dispatch (context=0x1291e20) at
/build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#34 0x00007fd39643c8e0 in g_main_context_iterate (context=0x1291e20, block=1,
dispatch=1, self=<value optimized out>) at
/build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#35 0x00007fd39643ca7c in IA__g_main_context_iteration (context=0x1291e20,
may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#36 0x00007fd39cd11a8f in QEventDispatcherGlib::processEvents (this=0x12680a0,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#37 0x00007fd39d901bdf in QGuiEventDispatcherGlib::processEvents
(this=0x7fffaa7aa640, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:202
#38 0x00007fd39cce6f42 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = -1434797872}) at kernel/qeventloop.cpp:149
#39 0x00007fd39cce7314 in QEventLoop::exec (this=0x7fffaa7ab910, flags={i =
-1434797792}) at kernel/qeventloop.cpp:201
#40 0x00007fd37a378a9d in KABC::ResourceLDAPKIO::Private::enter_loop
(this=0x3080c40) at
/build/buildd/kdepimlibs-4.3.1/kabc/plugins/ldapkio/resourceldapkio.cpp:155
#41 0x00007fd37a37a4c4 in KABC::ResourceLDAPKIO::save (this=0x29911f0,
ticket=<value optimized out>) at
/build/buildd/kdepimlibs-4.3.1/kabc/plugins/ldapkio/resourceldapkio.cpp:833
#42 0x00007fd3a0459a9a in KABC::AddressBook::save (this=<value optimized out>,
ticket=0x8c95170) at /build/buildd/kdepimlibs-4.3.1/kabc/addressbook.cpp:390
#43 0x00007fd3a04871d5 in KABC::StdAddressBook::Private::saveAll
(this=0x29c8740) at /build/buildd/kdepimlibs-4.3.1/kabc/stdaddressbook.cpp:204
#44 0x00007fd3a0487429 in ~StdAddressBook (this=0x2b72a30) at
/build/buildd/kdepimlibs-4.3.1/kabc/stdaddressbook.cpp:138
#45 0x00007fd3a04866e6 in KABC::StdAddressBook::close () at
/build/buildd/kdepimlibs-4.3.1/kabc/stdaddressbook.cpp:227
#46 0x00007fd38bfc6630 in ~KABCore (this=0x786afc0) at
/build/buildd/kdepim-4.3.1/kaddressbook/kabcore.cpp:203
#47 0x00007fd39ccf6ec1 in QObjectPrivate::deleteChildren (this=0x2d5bf80) at
kernel/qobject.cpp:1847
#48 0x00007fd39d8b51a2 in ~QWidget (this=0x3caa860) at kernel/qwidget.cpp:1367
#49 0x00007fd39f54309b in ~Part (this=0x41323e0, __vtt_parm=0x7fd3775c3510) at
/build/buildd/kde4libs-4.3.1/kparts/part.cpp:208
#50 0x00007fd3773c066b in ~KAddressbookPart (this=0x41323e0) at
/build/buildd/kdepim-4.3.1/kaddressbook/kaddressbook_part.cpp:87
#51 0x00007fd3a150012e in ~Plugin (this=0x1771850, __vtt_parm=0x0) at
/build/buildd/kdepim-4.3.1/kontactinterfaces/plugin.cpp:86
#52 0x00007fd38a7ccd45 in ~KAddressbookPlugin (this=0x7fffaa7aa640) at
/build/buildd/kdepim-4.3.1/kontact/plugins/kaddressbook/kaddressbook_plugin.cpp:82
#53 0x00007fd3a172158e in ~MainWindow (this=0x13a7f20) at
/build/buildd/kdepim-4.3.1/kontact/src/mainwindow.cpp:274
#54 0x00007fd39ccf85f5 in QObject::event (this=0x13a7f20, e=0x0) at
kernel/qobject.cpp:1094
#55 0x00007fd39d8b98ed in QWidget::event (this=0x13a7f20, event=0x6818be0) at
kernel/qwidget.cpp:7946
#56 0x00007fd39dc4789b in QMainWindow::event (this=0x13a7f20, event=0x6818be0)
at widgets/qmainwindow.cpp:1399
#57 0x00007fd39ed7adf8 in KXmlGuiWindow::event (this=0x7fffaa7aa640, ev=0x0) at
/build/buildd/kde4libs-4.3.1/kdeui/xmlgui/kxmlguiwindow.cpp:131
#58 0x00007fd39d868f4d in QApplicationPrivate::notify_helper (this=0x129f4a0,
receiver=0x13a7f20, e=0x6818be0) at kernel/qapplication.cpp:4056
#59 0x00007fd39d87118a in QApplication::notify (this=0x7fffaa7ac9b0,
receiver=0x13a7f20, e=0x6818be0) at kernel/qapplication.cpp:4021
#60 0x00007fd39ec6ddeb in KApplication::notify (this=0x7fffaa7ac9b0,
receiver=0x13a7f20, event=0x6818be0) at
/build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302
#61 0x00007fd39cce86ac in QCoreApplication::notifyInternal
(this=0x7fffaa7ac9b0, receiver=0x13a7f20, event=0x6818be0) at
kernel/qcoreapplication.cpp:610
#62 0x00007fd39cce931a in QCoreApplicationPrivate::sendPostedEvents
(receiver=0x0, event_type=0, data=0x1268850) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#63 0x00007fd39cd11e03 in postEventSourceDispatch (s=<value optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#64 0x00007fd39643920a in IA__g_main_context_dispatch (context=0x1291e20) at
/build/buildd/glib2.0-2.20.1/glib/gmain.c:1814
#65 0x00007fd39643c8e0 in g_main_context_iterate (context=0x1291e20, block=1,
dispatch=1, self=<value optimized out>) at
/build/buildd/glib2.0-2.20.1/glib/gmain.c:2448
#66 0x00007fd39643ca7c in IA__g_main_context_iteration (context=0x1291e20,
may_block=1) at /build/buildd/glib2.0-2.20.1/glib/gmain.c:2511
#67 0x00007fd39cd11a8f in QEventDispatcherGlib::processEvents (this=0x12680a0,
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#68 0x00007fd39d901bdf in QGuiEventDispatcherGlib::processEvents
(this=0x7fffaa7aa640, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:202
#69 0x00007fd39cce6f42 in QEventLoop::processEvents (this=<value optimized
out>, flags={i = -1434793776}) at kernel/qeventloop.cpp:149
#70 0x00007fd39cce7314 in QEventLoop::exec (this=0x7fffaa7ac910, flags={i =
-1434793696}) at kernel/qeventloop.cpp:201
#71 0x00007fd39cce95e4 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:888
#72 0x0000000000404945 in main (argc=1, argv=0x7fffaa7ad098) at
/build/buildd/kdepim-4.3.1/kontact/src/main.cpp:218

This bug may be a duplicate of or related to bug 199186

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list