Bug 103732

Summary: KMail crash with ldapkio resource enabled
Product: [Applications] kmail Reporter: Michael Seiwert <michael.seiwert>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: sgh, tuju
Priority: NOR    
Version: 1.8   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: valgrind trace
kmail backtrace

Description Michael Seiwert 2005-04-12 16:42:34 UTC
Version:           1.8 (using KDE KDE 3.4.0)
Installed from:    Unspecified Linux
Compiler:          gcc-Version 3.3.1 (SuSE Linux) 
OS:                Linux

KMail crashes if I have ldapkio resource enabled. I can reproduce this crash if start up kmail, navigate through random imap folders and displaying random messages. After several operations it crashes. It seems not to crash if I stay in inbox. It doesn't seem to matter if the "From" is in ldap or not. Attached are the backtrace and valgrind trace.
Comment 1 Michael Seiwert 2005-04-12 16:43:48 UTC
Created attachment 10593 [details]
valgrind trace

produced with:
valgrind --tool=addrcheck --num-callers=50 kmail --nofork 2>&1 | tee log
Comment 2 Michael Seiwert 2005-04-12 16:45:34 UTC
Created attachment 10594 [details]
kmail backtrace

kdepim is compiled with --enable-debug=full
Comment 3 David Faure 2005-04-12 19:57:09 UTC
Very good valgrind log, thanks.

==14774==    by 0x39945849: KABC::ResourceLDAPKIO::enter_loop() (in /opt/kdehead/lib/libkabc_ldapkio.so.1.0.0)
WAHHH. Using enter_loop is a very very bad idea, in case anyone still had doubts about that.

If ldapkio's loading is async, kabc should load it async, instead of having to 
emulate sync from async using the very dangerous enter_loop.
Tobias, is this possible?
Comment 4 Søren Holm 2009-09-15 00:26:13 UTC
It this allso what happenens when kmail crashes when entering a recipient in a new email?
Comment 5 Telmo Xtra 2009-09-29 16:43:01 UTC
Hi!

I Have the same problem. Crashing of Kmail when adding a recipient to the TO: or CC: or BCC: fields, and during the LDAP lookup.

My Kmail version is 1.12.1 on KDE 4.3.1, and the previous version had'nt this problem....
Comment 6 Søren Holm 2009-12-07 21:10:57 UTC
For me it is fixed in 4.3.4
Comment 7 Søren Holm 2010-08-13 23:58:15 UTC
Please close this bug.
Comment 8 Myriam Schweingruber 2012-08-19 10:55:07 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding