Bug 142305 - KMail segfaults on startup.
Summary: KMail segfaults on startup.
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 02:22 UTC by Vic Fryzel
Modified: 2007-02-28 21:24 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 Vic Fryzel 2007-02-28 02:22:09 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          g++ (GCC) 4.1.2 (Gentoo 4.1.2) CFLAGS="-march=k8 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" MAKEOPTS="-j3"
OS:                Linux

When trying to start KMail compiled from a fresh SVN update (~8:10pm EST), KMail segfaults and crashes on startup, just after beginning to display the KMail window.

Debug output:
kdedev@localhost ~/src/KDE/kdepim $ gdb kmail
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/kdedev/kde/bin/kmail
[Thread debugging using libthread_db enabled]
[New Thread 47835086807680 (LWP 1777)]
kmail: KMKernel::KMKernel
kdecore (KConfigSkeleton): Creating KConfigSkeleton (0x5b9ab0 )
kdecore (KConfigSkeleton): KConfigSkeleton::readConfig()
libkdenetwork: creating new pgp object
libkdenetwork: Kpgp: gpg found
kmail: No Qt-native utf-7 codec found; registering QUtf7Codec from libkdenetwork
kmail: [void KMKernel::init()] foldersPath (from config): '/home/kdedev/.kde4/share/apps/kmail/mail'
kmail: pPopFilter set
kmail: instantating KPIM::IdentityManager
kmail: Identity::readConfig(): UOID = 263779114 for identity named "Default"
kio (KSycoca): Trying to open ksycoca from /home/kdedev/.kde4/cache-localhost/ksycoca4
kio (KTrader): query for serviceType PhononBackend : returning 1 offers
kdecore (KLibLoader): WARNING: KLibrary: QLibrary::resolve_sys: Symbol "qt_plugin_instance" undefined in /home/kdedev/kde/lib/kde4/phonon_fake.so (/home/kdedev/kde/lib/kde4/phonon_fake.so: undefined symbol: qt_plugin_instance)
kdecore (KLibLoader): className=QObject metaObject->className()=Phonon::Fake::Backend
kdecore (KLibLoader): className=QObject metaObject->className()=QObject
kdecore (KLibLoader): create - 3
phonon (core): using backend: Fake
Object::connect: No such signal Phonon::Fake::Backend::objectDescriptionChanged(ObjectDescriptionType)
Object::connect: No such signal Phonon::Fake::AudioOutput::audioDeviceFailed()
kio (KTrader): WARNING: KServiceTypeTrader: serviceType DCOP/InstantMessenger not found
kio (KTrader): WARNING: KServiceTypeTrader: serviceType DCOP/InstantMessenger not found
kmail: KMailApplication::newInstance()
kmail: KMKernel::openReader called
QSplitter::panner 1
    QSplitter::panner 2
    QSplitterHandle::qt_splithandle_
QSplitter::panner 2
QSplitter::panner 2

Program exited normally.
(gdb) QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::begin: Widget painting can only begin as a result of a paintEvent
*** KMail got signal 11 (Crashing)
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmail path = <unknown> pid = 1793
Warning: connect() failed: : Connection refused
KCrash cannot reach kdeinit, launching directly.
Comment 1 Thomas McGuire 2007-02-28 12:21:29 UTC
Can you please provide a backtrace?
Are you using trunk or the 3.5 branch?
Comment 2 Vic Fryzel 2007-02-28 13:07:16 UTC
Yep sorry, I meant to initially.  And I'm using trunk (I thought I selected that in the wizard).  Here it is:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47337357070976 (LWP 16429)]
[KCrash handler]
#4  0x00002b0d94808885 in raise () from /lib64/libc.so.6
#5  0x00002b0d94809b3e in abort () from /lib64/libc.so.6
#6  0x00002b0d94843a6f in ?? () from /lib64/libc.so.6
#7  0x00002b0d955c35e9 in dbus_error_free (error=0x50b888) at dbus-errors.c:194
#8  0x00002b0d8def3cea in QDBusConnectionPrivate::handleError (this=0x50b870)
    at qdbusintegrator.cpp:755
#9  0x00002b0d8def6b90 in QDBusConnectionPrivate::sendWithReply (
    this=0x50b870, message=@0x7fff1d952c80, sendMode=1, timeout=-1)
    at qdbusintegrator.cpp:1415
#10 0x00002b0d8def766b in QDBusConnectionPrivate::getNameOwner (this=0x50b870,
    serviceName=@0x878de8) at qdbusintegrator.cpp:1616
#11 0x00002b0d8df00d58 in QDBusAbstractInterfacePrivate (this=0x878d80,
    serv=@0x7fff1d952ec0, p=@0x7fff1d952eb0, iface=@0x7fff1d952e20,
    con=@0x7fff1d952ea0, isDynamic=false) at qdbusabstractinterface.cpp:63
#12 0x00002b0d8df00ed2 in QDBusAbstractInterface (this=0x880038,
    service=@0x7fff1d952ec0, path=@0x7fff1d952eb0,
    interface=0x2b0d8f144740 "org.kde.KIO.UIServer", con=@0x7fff1d952ea0,
    parent=0x0) at qdbusabstractinterface.cpp:180
#13 0x00002b0d8f075458 in OrgKdeKIOUIServerInterface (this=0x880038,
    service=@0x7fff1d952ec0, path=@0x7fff1d952eb0, connection=@0x7fff1d952ea0,
    parent=0x0) at /home/kdedev/build/KDE/kdelibs/kio/kio/uiserveriface.cpp:19
#14 0x00002b0d8f02f8f1 in Private (this=0x880020)
    at /home/kdedev/src/KDE/kdelibs/kio/kio/jobuidelegate.cpp:45
#15 0x00002b0d8f02e693 in JobUiDelegate (this=0x82f4c0, showProgressInfo=false)
    at /home/kdedev/src/KDE/kdelibs/kio/kio/jobuidelegate.cpp:54
#16 0x00002b0d8f0270e3 in Job (this=0x891370, showProgressInfo=false)
    at /home/kdedev/src/KDE/kdelibs/kio/kio/job.cpp:100
#17 0x00002b0d8f027f02 in SimpleJob (this=0x891370, url=@0x7fff1d9530d0,
    command=67, packedArgs=@0x7fff1d953040, showProgressInfo=false)
    at /home/kdedev/src/KDE/kdelibs/kio/kio/job.cpp:300
#18 0x00002b0d8f028cbe in TransferJob (this=0x891370, url=@0x7fff1d9530d0,
    command=67, packedArgs=@0x7fff1d953040, _staticData=@0x7fff1d953050,
    showProgressInfo=false) at /home/kdedev/src/KDE/kdelibs/kio/kio/job.cpp:792
#19 0x00002b0d8f029ae9 in KIO::get (url=@0x7fff1d9530d0, reload=false,
    showProgressInfo=false)
    at /home/kdedev/src/KDE/kdelibs/kio/kio/job.cpp:1100
#20 0x00002b0d903b6e83 in khtml::Loader::servePendingRequests (this=0x7354a0)
    at /home/kdedev/src/KDE/kdelibs/khtml/misc/loader.cpp:1230
#21 0x00002b0d903b8c9b in khtml::Loader::qt_metacall (this=0x7354a0,
    _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff1d9536b0)
    at /home/kdedev/build/KDE/kdelibs/khtml/loader.moc:128
#22 0x00002b0d8d36b6d1 in QMetaObject::activate (sender=0x7354e8,
    from_signal_index=4, to_signal_index=4, argv=0x0)
    at kernel/qobject.cpp:2937
#23 0x00002b0d8d36ba20 in QMetaObject::activate (sender=0x7354e8,
    m=0x2b0d8d50c880, local_signal_index=0, argv=0x0)
    at kernel/qobject.cpp:2983
#24 0x00002b0d8d38fcbc in QTimer::timeout (this=0x7354e8)
    at .moc/debug-shared/moc_qtimer.cpp:123
#25 0x00002b0d8d37660a in QTimer::timerEvent (this=0x7354e8, e=0x7fff1d953f60)
    at kernel/qtimer.cpp:238
#26 0x00002b0d8d36c118 in QObject::event (this=0x7354e8, e=0x7fff1d953f60)
    at kernel/qobject.cpp:995
#27 0x00002b0d8d79a503 in QApplicationPrivate::notify_helper (this=0x51db20,
    receiver=0x7354e8, e=0x7fff1d953f60) at kernel/qapplication.cpp:3434
#28 0x00002b0d8d79a885 in QApplication::notify (this=0x7fff1d9543e0,
    receiver=0x7354e8, e=0x7fff1d953f60) at kernel/qapplication.cpp:3009
#29 0x00002b0d90ca615a in KApplication::notify (this=0x7fff1d9543e0,
    receiver=0x7354e8, event=0x7fff1d953f60)
    at /home/kdedev/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:292
#30 0x00002b0d8d35d7d0 in QCoreApplication::sendEvent (receiver=0x7354e8,
    event=0x7fff1d953f60) at kernel/qcoreapplication.h:183
#31 0x00002b0d8d3822cd in timerSourceDispatch (source=0x51fd10)
    at kernel/qeventdispatcher_glib.cpp:189
#32 0x00002b0d94a47ffb in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#33 0x00002b0d94a4881c in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00002b0d94a48d2b in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#35 0x00002b0d8d381a90 in QEventDispatcherGlib::processEvents (this=0x51b920,
    flags=@0x7fff1d954130) at kernel/qeventdispatcher_glib.cpp:363
#36 0x00002b0d8d822097 in QGuiEventDispatcherGlib::processEvents (
    this=0x51b920, flags=@0x7fff1d954180)
    at kernel/qguieventdispatcher_glib.cpp:178
#37 0x00002b0d8d358f09 in QEventLoop::processEvents (this=0x7fff1d954230,
    flags=@0x7fff1d9541e0) at kernel/qeventloop.cpp:126
#38 0x00002b0d8d35905e in QEventLoop::exec (this=0x7fff1d954230,
    flags=@0x7fff1d954240) at kernel/qeventloop.cpp:168
#39 0x00002b0d8d35c084 in QCoreApplication::exec ()
    at kernel/qcoreapplication.cpp:727
#40 0x00002b0d8d79a0dc in QApplication::exec () at kernel/qapplication.cpp:2927
#41 0x0000000000402234 in main (argc=3, argv=0x7fff1d954528)
    at /home/kdedev/src/KDE/kdepim/kmail/main.cpp:114
Comment 3 Vic Fryzel 2007-02-28 13:08:27 UTC
I realize there's a bunch of DBus stuff in there, but I'm quite confident my DBus is setup correctly.  I followed the instructions on TechBase to the T.
Comment 4 Vic Fryzel 2007-02-28 21:24:30 UTC
I was unaware that SVN bugs are not supposed to be filed here.  I guess I'll mark this resolved for now;  see bug #142306 as a reference.