Bug 272689 - crash getting the dbus type
Summary: crash getting the dbus type
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 2.0.95
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 11:41 UTC by Jaime Torres
Modified: 2011-07-11 07:56 UTC (History)
0 users

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 Jaime Torres 2011-05-07 11:41:35 UTC
Application: kmail (2.0.95)
KDE Platform Version: 4.6.41 (4.7 >= 20110106) (Compiled from sources)
Qt Version: 4.7.1
Operating System: Linux 2.6.38.5optimum x86_64
Distribution: "openSUSE 12.1 Milestone 0 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

NOTE: Compiled with gcc 4.6.0

I just start kmail, the window body is painted and the crash is there.

I reported the bug to Qt people, 

http://bugreports.qt.nokia.com/browse/QTBUG-18986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

But when I try to make the simplest program to crash it:

  #include "imapsettings.h" // generated by qdbusxml2cpp
  QScopedPointer<OrgKdeAkonadiImapSettingsInterface> interface( 
  new OrgKdeAkonadiImapSettingsInterface( "org.freedesktop.Akonadi.Resource.kk",
                                         "/Settings", QDBusConnection::sessionBus() ) );
  
  if (interface->safety() == &hi ) ;

I get the following compiler error:
undefined reference to `OrgKdeAkonadiImapSettingsInterface::OrgKdeAkonadiImapSettingsInterface(QString const&, QString const&, QDBusConnection const&, QObject*)'

I've searched for OrgKdeAkonadiImapSettingsInterface constructor, and the only one I see is in imapsettings.h and is empty. 
From where does kmail get the OrgKdeAkonadiImapSettingsInterface constructor?

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7fd8f1898760 (LWP 9706))]

Thread 2 (Thread 0x7fd8d582b700 (LWP 9712)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd8e3a32cdf in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/qt4.5/lib/libQtWebKit.so.4
#2  0x00007fd8e3a322c8 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/qt4.5/lib/libQtWebKit.so.4
#3  0x00007fd8eb6b7a3f in start_thread (arg=0x7fd8d582b700) at pthread_create.c:297
#4  0x00007fd8eac9267d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd8f1898760 (LWP 9706)):
[KCrash Handler]
#6  0x00007fd8eabf1ab5 in raise () from /lib64/libc.so.6
#7  0x00007fd8eabf2fb6 in abort () from /lib64/libc.so.6
#8  0x00007fd8eb963b9e in qt_message_output (msgType=QtFatalMsg, buf=0x1150118 "ASSERT failure in QDBusPendingReply::argumentAt: \"Index out of bounds\", file /g/kdegit/qt-kde/src/dbus/qdbuspendingreply.cpp, line 268") at /g/kdegit/qt-kde/src/corelib/global/qglobal.cpp:2282
#9  0x00007fd8eb963d11 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fd8ebafc960 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fffddd62dc8) at /g/kdegit/qt-kde/src/corelib/global/qglobal.cpp:2328
#10 0x00007fd8eb9644a1 in qFatal (msg=0x7fd8ebafc960 "ASSERT failure in %s: \"%s\", file %s, line %d") at /g/kdegit/qt-kde/src/corelib/global/qglobal.cpp:2511
#11 0x00007fd8eb9637a3 in qt_assert_x (where=0x7fd8ebe7f7a4 "QDBusPendingReply::argumentAt", what=0x7fd8ebe7f790 "Index out of bounds", file=0x7fd8ebe7f760 "/g/kdegit/qt-kde/src/dbus/qdbuspendingreply.cpp", line=268) at /g/kdegit/qt-kde/src/corelib/global/qglobal.cpp:2035
#12 0x00007fd8ebe75006 in QDBusPendingReplyData::argumentAt (this=0x7fffddd632b0, index=0) at /g/kdegit/qt-kde/src/dbus/qdbuspendingreply.cpp:266
#13 0x00007fd8e4f072ad in QDBusPendingReply<QString, void, void, void, void, void, void, void>::argumentAt<0> (this=0x7fffddd632b0) at /usr/lib/qt4.5/include/QtDBus/qdbuspendingreply.h:176
#14 0x00007fd8e4f072e9 in QDBusPendingReply<QString, void, void, void, void, void, void, void>::operator QDBusPendingReplyTypes::Select<0, QString, void, void, void, void, void, void, void>::Type (this=<optimized out>) at /usr/lib/qt4.5/include/QtDBus/qdbuspendingreply.h:186
#15 0x00007fd8e4f065d1 in KSieveUi::Util::findSieveUrlForAccount (identifier=<optimized out>) at /g/kdegit/kdepim/libksieve/ksieveui/util.cpp:111
#16 0x00007fd8e4f09f2c in KSieveUi::Vacation::findURL (this=<optimized out>) at /g/kdegit/kdepim/libksieve/ksieveui/vacation.cpp:493
#17 0x00007fd8e4f0a094 in KSieveUi::Vacation::Vacation (this=0xe56dd0, parent=<optimized out>, checkOnly=true, name=0x0) at /g/kdegit/kdepim/libksieve/ksieveui/vacation.cpp:426
#18 0x00007fd8f062600e in KMMainWidget::slotCheckVacation (this=0xde2e20) at /g/kdegit/kdepim/kmail/kmmainwidget.cpp:2272
#19 0x00007fd8f063bf5d in KMMainWidget::qt_metacall (this=0xde2e20, _c=QMetaObject::InvokeMetaMethod, _id=67, _a=0xf91630) at /g/b45/kdepim/kmail/kmmainwidget.moc:409
#20 0x00007fd8eba85ed0 in QMetaObject::metacall (object=0xde2e20, cl=QMetaObject::InvokeMetaMethod, idx=94, argv=0xf91630) at /g/kdegit/qt-kde/src/corelib/kernel/qmetaobject.cpp:237
#21 0x00007fd8eba95122 in QMetaCallEvent::placeMetaCall (this=0xe22d50, object=0xde2e20) at /g/kdegit/qt-kde/src/corelib/kernel/qobject.cpp:534
#22 0x00007fd8eba963aa in QObject::event (this=0xde2e20, e=0xe22d50) at /g/kdegit/qt-kde/src/corelib/kernel/qobject.cpp:1219
#23 0x00007fd8ec934a79 in QWidget::event (this=0xde2e20, event=0xe22d50) at /g/kdegit/qt-kde/src/gui/kernel/qwidget.cpp:8659
#24 0x00007fd8ec8cde82 in QApplicationPrivate::notify_helper (this=0x9fc740, receiver=0xde2e20, e=0xe22d50) at /g/kdegit/qt-kde/src/gui/kernel/qapplication.cpp:4445
#25 0x00007fd8ec8cdb84 in QApplication::notify (this=0x7fffddd646f0, receiver=0xde2e20, e=0xe22d50) at /g/kdegit/qt-kde/src/gui/kernel/qapplication.cpp:4410
#26 0x00007fd8f128df2e in KApplication::notify (this=0x7fffddd646f0, receiver=0xde2e20, event=0xe22d50) at /g/kdegit/kdelibs/kdeui/kernel/kapplication.cpp:311
#27 0x00007fd8eba7deb2 in QCoreApplication::notifyInternal (this=0x7fffddd646f0, receiver=0xde2e20, event=0xe22d50) at /g/kdegit/qt-kde/src/corelib/kernel/qcoreapplication.cpp:720
#28 0x00007fd8ec8bebfb in QCoreApplication::sendEvent (receiver=0xde2e20, event=0xe22d50) at ../../include/QtCore/../../../../kdegit/qt-kde/src/corelib/kernel/qcoreapplication.h:215
#29 0x00007fd8eba7f0d3 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9b1760) at /g/kdegit/qt-kde/src/corelib/kernel/qcoreapplication.cpp:1373
#30 0x00007fd8eba7ecf5 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /g/kdegit/qt-kde/src/corelib/kernel/qcoreapplication.cpp:1266
#31 0x00007fd8ec997b11 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../kdegit/qt-kde/src/corelib/kernel/qcoreapplication.h:220
#32 0x00007fd8ebab5c3b in postEventSourceDispatch (s=0x9ff1d0) at /g/kdegit/qt-kde/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#33 0x00007fd8e0151b63 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#34 0x00007fd8e0152340 in ?? () from /lib64/libglib-2.0.so.0
#35 0x00007fd8e01525e0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#36 0x00007fd8ebab64e9 in QEventDispatcherGlib::processEvents (this=0x9b0e40, flags=...) at /g/kdegit/qt-kde/src/corelib/kernel/qeventdispatcher_glib.cpp:415
#37 0x00007fd8ec9a3c84 in QGuiEventDispatcherGlib::processEvents (this=0x9b0e40, flags=...) at /g/kdegit/qt-kde/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#38 0x00007fd8eba7ba84 in QEventLoop::processEvents (this=0x7fffddd645c0, flags=...) at /g/kdegit/qt-kde/src/corelib/kernel/qeventloop.cpp:149
#39 0x00007fd8eba7bbd7 in QEventLoop::exec (this=0x7fffddd645c0, flags=...) at /g/kdegit/qt-kde/src/corelib/kernel/qeventloop.cpp:201
#40 0x00007fd8eba7e59e in QCoreApplication::exec () at /g/kdegit/qt-kde/src/corelib/kernel/qcoreapplication.cpp:1009
#41 0x00007fd8ec8cb040 in QApplication::exec () at /g/kdegit/qt-kde/src/gui/kernel/qapplication.cpp:3719
#42 0x00000000004026b1 in main (argc=1, argv=0x7fffddd64888) at /g/kdegit/kdepim/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Jaime Torres 2011-07-11 07:56:53 UTC
Never happened again.