[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Kontact crash
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2005-10-10 21:18:28
Message-ID: 200510102318.31793 () erwin ! ingo-kloecker ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 10 October 2005 20:40, Craig Howard wrote:
> Kontact is crashing on me again.  It seems to crash doing the GPGme
> check. Below is console output and backtrace.  I'm running svn trunk
> on a debian gcc4 system.  Note that I have set GLIBCXX_FORCE_NEW=1,
> but it no longer fixes the problem.
>
> I had just attached a file to a new message and was about to click
> send.
>
> ; echo $GLIBCXX_FORCE_NEW
> 1
> ; kontact
> [snip]
> io (KDirWatch): Added Dir /home/craig/work/Iams/cia/err [KDirWatch-2]
> kio (KDirWatch):  Setup FAM (Req 12) for
> /home/craig/work/Iams/cia/err kio (KDirListerCache): [void
> KDirListerCache::slotEntries(KIO::Job*, const KIO::UDSEntryList&)]
> new entries for file:///home/craig/work/Iams/cia/err kio
> (KDirListerCache): [void KDirListerCache::slotResult(KIO::Job*)]
> finished listing file:///home/craig/work/Iams/cia/err
> kio (KDirLister): [virtual void KDirLister::stop()]
> kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)]
> lister: 0x8558a38
> kio (KIOJob): kio_uiserver registered
> kio (KDirLister): -KDirLister
> kio (KDirLister): [virtual void KDirLister::stop()]
> kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)]
> lister: 0x8558a38
> kio (KDirListerCache): [void
> KDirListerCache::forgetDirs(KDirLister*)] 0x8558a38
> kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*,
> const KURL&, bool)] 0x8558a38 _url:
> file:///home/craig/work/Iams/cia/err kio (KDirListerCache): [void
> KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)]
> 0x8558a38 item moved into cache:
> file:///home/craig/work/Iams/cia/err
> kmail: CharFreq returned 1/0.38292 and I chose base64
> kmail: autodetected cte: base64
> kontact: WARNING: KMMessagePart::setCharset(): trying to set a
> charset for a non-textual mimetype.
> kontact: Fix this caller:
> kontact:
> ====================================================================
> kontact: [
> 0:
> /home/craig/local/kde/root/lib/libkdecore.so.4(_Z11kdBacktracei+0x36)
> [0xb6dcdffc]
> 1:
> /home/craig/local/kde/root/lib/libkmailprivate.so(_ZN13KMMessagePart1
>0setCharsetERK8QCString+0x3e) [0xb5721ed6]
> 2:
> /home/craig/local/kde/root/lib/libkmailprivate.so(_ZN12KMComposeWin20
>slotAttachFileResultEPN3KIO3JobE+0xaef) [0xb56e32d5]
> 3:
> /home/craig/local/kde/root/lib/libkmailprivate.so(_ZN12KMComposeWin9q
>t_invokeEiP8QUObject+0x783) [0xb56e3e83]
> 4:
> /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3(_ZN7QObject15acti
>vate_signalEP15QConnectionListP8QUObject+0x197) [0xb6826837]
> ]
> kontact:
> kontact:
> ====================================================================
> kontact: WARNING: KMMessagePart::setCharset(): trying to set a
> charset for a non-textual mimetype.
> kontact: Fix this caller:
> kontact:
> ====================================================================
> kontact: [
> 0:
> /home/craig/local/kde/root/lib/libkdecore.so.4(_Z11kdBacktracei+0x36)
> [0xb6dcdffc]
> 1:
> /home/craig/local/kde/root/lib/libkmailprivate.so(_ZN13KMMessagePart1
>0setCharsetERK8QCString+0x3e) [0xb5721ed6]
> 2:
> /home/craig/local/kde/root/lib/libkmailprivate.so(_ZN12KMComposeWin20
>slotAttachFileResultEPN3KIO3JobE+0xd9e) [0xb56e3584]
> 3:
> /home/craig/local/kde/root/lib/libkmailprivate.so(_ZN12KMComposeWin9q
>t_invokeEiP8QUObject+0x783) [0xb56e3e83]
> 4:
> /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3(_ZN7QObject15acti
>vate_signalEP15QConnectionListP8QUObject+0x197) [0xb6826837]
> ]
> kontact:
> kontact:
> ====================================================================
> kmail: [virtual void KMComposeWin::autoSaveMessage()]
> kmail: [virtual void KMComposeWin::autoSaveMessage()] autosaving
> message kmail: entering KMComposeWin::applyChanges
> kmail: KMAIL_DEBUG_COMPOSER_CRYPTO = FALSE
> kabc: StdAddressBook::self()
> *** KMail got signal 11 (Crashing)
> kmail: [virtual void KMComposeWin::autoSaveMessage()]
> KCrash: crashing... crashRecursionCounter = 2
> KCrash: Application Name = kontact path = <unknown> pid = 11738
>
>
> Backtrace:
> Using host libthread_db library
> "/lib/tls/i686/cmov/libthread_db.so.1". `system-supplied DSO at
> 0xffffe000' has disappeared; keeping its symbols. [Thread debugging
> using libthread_db enabled]
> [New Thread -1240197440 (LWP 11738)]
> [KCrash handler]
> #4  0xb58c6889 in __gnu_cxx::__mt_alloc<GpgME::Key,
> __gnu_cxx::__common_pool_policy<__gnu_cxx::__pool, true> >::allocate
> (this=0xbfa60040, __n=0)
>     at mt_allocator.h:685
> #5  0xb58c694c in std::_Vector_base<GpgME::Key,
> std::allocator<GpgME::Key>::_M_allocate (this=0xbfa60040, __n=0) at
> stl_vector.h:117 
> #6  0xb58c6988 in _Vector_base (this=0xbfa60040, __n=0,
> __a=@0xbfa5ff76) at stl_vector.h:103
> #7  0xb58c71f7 in vector (this=0xbfa60040, __x=@0xbfa5ffc4) at
> stl_vector.h:234
> #8  0xb58d491b in Item (this=0xbfa6003c, a=@0x899cdb0, k=@0xbfa5ffc4,
>     p=Kleo::UnknownPreference) at keyapprovaldialog.h:65
> #9  0xb58d49cb in Item (this=0xbfa6003c, a=@0x899cdb0,
>     e=Kleo::UnknownPreference, s=Kleo::UnknownSigningPreference,
>     f=Kleo::AutoFormat) at keyresolver.h:150
> #10 0xb58cd360 in Kleo::KeyResolver::getEncryptionItems
> (this=0x8a32df8, addresses=@0xbfa6016c)
>     at /home/craig/local/kde/src/kdepim/kmail/keyresolver.cpp:698
> #11 0xb58cd45b in Kleo::KeyResolver::setPrimaryRecipients
> (this=0x8a32df8, addresses=@0xbfa6016c)
>     at /home/craig/local/kde/src/kdepim/kmail/keyresolver.cpp:681
> #12 0xb58be76a in MessageComposer::adjustCryptFlags (this=0x8a95680)
>     at /home/craig/local/kde/src/kdepim/kmail/messagecomposer.cpp:670
> #13 0xb58c619e in MessageComposerJob::adjustCryptFlags
> (this=0x8a28ea0) at
> /home/craig/local/kde/src/kdepim/kmail/messagecomposer.cpp:244 #14
> 0xb58c61c1 in AdjustCryptFlagsJob::execute (this=0x8a28ea0) at
> /home/craig/local/kde/src/kdepim/kmail/messagecomposer.cpp:274 #15
> 0xb58c0335 in MessageComposer::slotDoNextJob (this=0x8a95680) at
> /home/craig/local/kde/src/kdepim/kmail/messagecomposer.cpp:374 #16
> 0xb58c038d in MessageComposer::qt_invoke (this=0x8a95680, _id=2,
> _o=0xbfa60264) at messagecomposer.moc:95
> #17 0xb6826837 in QObject::activate_signal ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #18 0xb6b47d1a in QSignal::signal ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #19 0xb68417fc in QSignal::activate ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #20 0xb6848aac in QSingleShotTimer::event ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #21 0xb67c9b35 in QApplication::internalNotify ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #22 0xb67ca4b2 in QApplication::notify ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #23 0xb6dbfdfe in KApplication::notify (this=0xbfa60e48,
> receiver=0x819f350, event=0xbfa60554)
>     at /home/craig/local/kde/src/kdelibs/kdecore/kapplication.cpp:550
> #24 0xb67be989 in QEventLoop::activateTimers ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #25 0xb6779732 in QEventLoop::processEvents ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #26 0xb67df752 in QEventLoop::enterLoop ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #27 0xb67c959f in QApplication::enter_loop ()
>    from /home/craig/local/kde/src/qt-copy/lib/libqt-mt.so.3
> #28 0xb56decde in KMComposeWin::autoSaveMessage (this=0x809cc30)
>     at /home/craig/local/kde/src/kdepim/kmail/kmcomposewin.cpp:689

The crash seems to have occurred during autosaving. The corresponding 
code that leads to the crash is in kmail/keyresolver.h:
      Item( const QString & a,
	    EncryptionPreference e, SigningPreference s,
	    CryptoMessageFormat f )
	: KeyApprovalDialog::Item( a, std::vector<GpgME::Key>(), e ),
	  signPref( s ), format( f ), needKeys( true ) {}

I have no idea why this could lead to a crash. Marc? Maybe a compiler 
bug? Which exact version of gcc are you using?

Regards,
Ingo

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic