Bug 111383 - kmail crashes while inserting files
Summary: kmail crashes while inserting files
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.8.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 23:21 UTC by Rafael J. Wysocki
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael J. Wysocki 2005-08-23 23:21:33 UTC
Version:           1.8.2 (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
Compiler:           x86-64
OS:                Linux

When I select "Insert file" from the composer's File menu, choose a file to insert and press OK, kmail will crash in a couple of seconds.  Strangely enough, this does not happen if the file is selected from the recent files list.

This is 100% reproducible on my box (Asus L5D, x86-64 system).
Comment 1 Thiago Macieira 2005-08-24 05:44:30 UTC
Can you paste the backtrace?
Comment 2 Rafael J. Wysocki 2005-08-24 09:38:20 UTC
No I cannot, sorry.  I can only say that it was killed with signal 6 ("double free or corruption" detected by glibc).

First, I do not know how to obtain a useful backtrace from the SuSE binary I use.

Second, I have worked the problem around by removing the [Composer] section from the kmailrc and relacing it with a generic one.  Unfortunately I did not save the offending one (it was late etc. ;-)).  I will if I have this problem again.
Comment 3 Rafael J. Wysocki 2005-10-01 12:10:17 UTC
OK, it happened again and this time I saved the offending [Composer] section, which follows (up to formatting issues perhaps).  After replacing it with a generic one the problem has gone.

[Composer]
attachment-keywords=attachment,attached
autoSpellChecking=false
confirm-before-send=false
crypto-encrypt-to-self=true
crypto-show-encryption-result=true
crypto-show-keys-for-approval=true
current-transport=SiSK
force-reply-charset=false
headers=300
outlook-compatible-attachments=false
pref-charsets=iso-8859-2,us-ascii,iso-8859-1,locale,utf-8
previous-fcc=.181738254.directory/.INBOX.directory/.SiSK.directory/sent
previous-identity=930236673
recent-encodings=utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8,utf-8
recent-urls=file:///home/rafael/early-exception.log,file:///home/rafael/init-and-zap-low-address-mappings-debug.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git7/patches/swsusp-x86_64-fix.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git7/patches/swsusp-x86_64-fix.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git7/patches/init-and-zap-low-address-mappings-debug.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git6/patches/swsusp-x86_64-fix.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git6/patches/swsusp-x86_64-fix.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git6/patches/swsusp-x86_64-fix.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git6/patches/swsusp-x86_64-fix.patch,file:///home/rafael/swsusp-avoid-too-many-pbes.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git3/patches/swsusp-fix-swap.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git3/patches/swsusp-fix-read_pagedir.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git3/patches/swsusp-fix-data_free.patch,file:///home/rafael/src/git/linux-2.6.14-rc2-git3/patches/swsusp-x86_64-fix.patch,file:///home/rafael/dmesg.log,file:///home/rafael/src/rc/linux-2.6.14-rc2/patches/swsusp-nr_copy_pages_check-fix.patch,file:///home/rafael/swusp-nr_copy_pages_check-fix.patch,file:///home/rafael/src/rc/linux-2.6.14-rc2/patches/swsusp-x86_64-fix.patch,file:///home/rafael/piny.txt,file:///home/rafael/swsusp-x86_64-fix.patch,file:///home/rafael/lspci,file:///home/rafael/interrupts,file:///home/rafael/src/rc/linux-2.6.13-rc4/patches/resume-reverse.patch,file:///home/rafael/profile.log,file:///home/rafael/profile1.log,file:///home/rafael/profile.log,file:///home/rafael/Documents/2.6.13-rc6-mm2-up-hang.log,file:///home/rafael/Documents/2.6.13-rc6-mm2-up-hang.log,file:///home/rafael/Documents/2.6.13-rc6-mm2-up-hang.log,file:///home/rjw/kis-2005/kis.toc,file:///home/rjw/forward
showForgottenAttachmentWarning=false
transport-history=
word-wrap=false
Comment 4 Rafael J. Wysocki 2005-11-04 12:09:19 UTC
I've had this problem once again recently, with KDE 3.4.2.  A working temporary fix was to empty the lists for "recent-urls=" and "recent-encodings=".
Comment 5 Allen Winter 2006-01-11 19:32:52 UTC
SVN commit 497015 by winterz:

Fix crash during a "insert file" in the composer.
Patch provided by Goffredo Baroncelli and approved by Don.
Thank you Goffredo!

BUGS: 111383, 108063, 111713

CCMAIL: kreijack@alice.it


 M  +1 -1      kmcomposewin.cpp  


--- branches/KDE/3.5/kdepim/kmail/kmcomposewin.cpp #497014:497015
@@ -2662,7 +2662,7 @@
     while (urls.count() > mMaxRecentFiles)
       urls.erase( urls.fromLast() );
     while (encodings.count() > mMaxRecentFiles)
-      urls.erase( encodings.fromLast() );
+      encodings.erase( encodings.fromLast() );
     // sanity check
     if (urls.count() != encodings.count()) {
       urls.clear();