Bug 64889 - kmail crashes sending mail to distribution lists
Summary: kmail crashes sending mail to distribution lists
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-25 03:08 UTC by Ricardo Ferreira
Modified: 2009-08-05 15:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Kmail backtrace (3.40 KB, text/plain)
2003-09-25 15:43 UTC, Ricardo Ferreira
Details
Kmail backtrace (libs, base, pim with debug info) (3.84 KB, text/plain)
2003-09-27 16:46 UTC, Ricardo Ferreira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Ferreira 2003-09-25 03:08:37 UTC
Version:           1.5.9 (using KDE 3.1.92 (alpha2, CVS >= 20030921), Gentoo)
Compiler:          gcc version 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)
OS:          Linux (i686) release 2.4.22

Kmail crashes whenever i attempt to send a mail to a distribution list defined in kaddressbook. If i enter the same contacts individually, theres no crash.

This is using HEAD from about 2 days ago.
Comment 1 Thiago Macieira 2003-09-25 04:16:29 UTC
Please fetch us the backtrace for this crash, with debugging symbols if possible. (you're building from 
sources, so it's a matter of running adddebug and rebuilding) 
Comment 2 Stephan Kulow 2003-09-25 09:25:48 UTC
Reported in IRC: 
 
<mkoebele>    from /opt/kde3/lib/libkdecore.so.4 
<mkoebele> #2  0x414011ec in __pthread_sighandler () from /lib/libpthread.so.0 
<mkoebele> #3  <signal handler called> 
<mkoebele> #4  0x401798e6 in KABC::DistributionList::emails() const () 
<mkoebele>    from /opt/kde3/lib/libkabc.so.1 
<mkoebele> #5  0x429c3521 in KabcBridge::expandDistributionList(QString const&) () 
<mkoebele>    from /opt/kde3/lib/kde3/libkmailpart.so.1 
<mkoebele> #6  0x4287d841 in KMMessage::expandAliases(QString const&) () 
<mkoebele>    from /opt/kde3/lib/kde3/libkmailpart.so.1 
<mkoebele> #7  0x4292f1ad in KMComposeWin::doSend(int, bool) () 
<mkoebele>    from /opt/kde3/lib/kde3/libkmailpart.so.1 
<mkoebele> #8  0x429302ee in KMComposeWin::slotSendNow() () 
<mkoebele>    from /opt/kde3/lib/kde3/libkmailpart.so.1 
<mkoebele> #9  0x429095ad in KMComposeWin::qt_invoke(int, QUObject*) () 
<mkoebele>    from /opt/kde3/lib/kde3/libkmailpart.so.1 
Comment 3 Tobias Koenig 2003-09-25 13:07:16 UTC
Hi Ricardo, 
 
could you test it please with CVS HEAD again? 
There was a fix commited yesterday, maybe it fixes your problem too. 
 
Ciao, 
Tobias 
Comment 4 Ricardo Ferreira 2003-09-25 15:42:02 UTC
Tobias: No, i recompiled kmail and it still crashes. 
 
The backtrace follows. 
Comment 5 Ricardo Ferreira 2003-09-25 15:43:11 UTC
Created attachment 2574 [details]
Kmail backtrace
Comment 6 Tobias Koenig 2003-09-26 17:45:55 UTC
Hi Ricardo, 
 
could you please recompile also kdelibs with debug information? 
 
Ciao, 
Tobias 
Comment 7 Ricardo Ferreira 2003-09-27 16:46:08 UTC
Created attachment 2594 [details]
Kmail backtrace (libs, base, pim with debug info)

I'm not really compiling from source. I'm using gentoos kdecvs ebuilds but i
changed the kde.eclass to run adddebug -r -n after configure so i should have
kdelibs+kdebase+kdepim compiled with debug info now.
Comment 8 Tobias Koenig 2003-09-28 03:09:21 UTC
Hi Ricardo,

how uptodate is the gentoo kde-cvs version?

Ciao,
Tobias
Comment 9 Ricardo Ferreira 2003-09-28 03:21:42 UTC
As up to date the CVS HEAD is :) 
It goes and checks out the source before building. 
Comment 10 Tobias Koenig 2003-09-29 16:03:52 UTC
Subject: kdepim/kmail

CVS commit by tokoe: 

You have to pass the correct name to the distribution list manager, otherwise
he will return a null-pointer ;)
This fixes bug #64889
CCMAIL:64889-done@bugs.kde.org


  M +1 -1      kmaddrbook.cpp   1.73


--- kdepim/kmail/kmaddrbook.cpp  #1.72:1.73
@@ -118,5 +118,5 @@ QString KabcBridge::expandDistributionLi
         it != listNames.end(); ++it) {
     if ( (*it).lower() == lowerListName ) {
-      QStringList addressList = manager.list( lowerListName )->emails();
+      QStringList addressList = manager.list( listName )->emails();
       return addressList.join( ", " );
     }


Comment 11 Tobias Koenig 2009-08-05 15:59:38 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.