Bug 131434 - SIGSEV when searching for duplicate messages
Summary: SIGSEV when searching for duplicate messages
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.9.3
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 160656 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-27 14:15 UTC by Wolfgang Denda
Modified: 2010-04-06 00:28 UTC (History)
3 users (show)

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 Wolfgang Denda 2006-07-27 14:15:49 UTC
Version:           1.9.3 (using KDE 3.5.3 Level "a" , unofficial build of SUSE )
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.11.4-21.8-default

Choosing Menu 'Folder' 'Delete duplicate messages' crashes KMail (IMAP, cyrus 2.2.12-5@i586 on localhost). The duplicates have empty bodies. When trying to save them (message in cyrus), KMail crashes again. I deleted it to local trash folder, then saving was possible. 

The crashmail example #1:
===
From XXXXX@freenet.de Sun Jul 31 22:23:33 2005
X-UID: 24414
X-Length: 3200
X-Flags: 33
From: Axel Lindlau <XXXXX@freenet.de>
Sender: Axel Lindlau <XXXXXfreenet.de>
Reply-To: <XXXXX@freenet.de>
To: <suse-linux@suse.com>
Subject: Re: SMS per Script vom Rechner schicken lassen
Message-ID: <200507312223.33503.XXXXX@freenet.de>
In-Reply-To: <200507311911.39312.suselst@gmx.de>
References: <200507311828.39724.suselst@gmx.de>
 <200507311904.33316.XXXXX@freenet.de> <200507311911.39312.suselst@gmx.de>
Date: Sun, 31 Jul 2005 22:23:33 +0200
Content-Type: text/plain
Status: RO
X-Status: OC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  
===

The crashmail example #2:
===
From XXXXX@gmx.de Sun Jul 31 22:25:41 2005
X-UID: 24432
X-Length: 2745
X-Flags: 33
From: Alexander Kiesl <XXXXX@gmx.de>
Sender: Alexander Kiesl <XXXXX@gmx.de>
Reply-To: Alexander Kiesl <XXXXX@gmx.de>
To: <suse-linux@suse.com>
Subject:
 =?iso-8859-1?Q?apt:_openldap2-client_package_will_alle_m=F6glichen_packag?=	=?iso-8859-1?Q?es_deinstallieren?=
Message-ID: <001f01c5960e$08a162b0$0302a8c0@AlexPC>
Date: Sun, 31 Jul 2005 22:25:41 +0200
Content-Type: text/plain
Status: RO
X-Status: OC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  
===

Same message, no crash, complete header, body shortened
===
From XXXXX@gmx.de Sun Jul 31 22:25:41 2005
X-UIDL-JANA-SERVER: 125912762.1123117341@Jana-Server
Return-Path: <suse-linux-return-356446-XXXXX-XXXXX.de@suse.com>
Delivery-Date: Sun, 31 Jul 2005 22:26:10 +0200
Received: from [195.135.221.131] (helo=lists.suse.com)
	by mxeu13.kundenserver.de with ESMTP (Nemesis),
	id 0MKsEO-1DzKNu2aaK-0008Qj for XXXXX@XXXXX.de; Sun, 31 Jul 2005 22:26:10 +0200
Received: (qmail 25913 invoked by alias); 31 Jul 2005 20:25:59 -0000
Mailing-List: contact suse-linux-help@suse.com; run by ezmlm
Precedence: bulk
List-Post: <mailto:suse-linux@suse.com>
List-Help: <mailto:suse-linux-help@suse.com>
List-Unsubscribe: <mailto:suse-linux-unsubscribe-XXXXX=XXXXX.de@suse.com>
X-MIME-Notice: attachments may have been removed from this message
X-Mailinglist: suse-linux
X-Message-Number-for-archive: 356446
Delivered-To: mailing list suse-linux@suse.com
Received: (qmail 25903 invoked from network); 31 Jul 2005 20:25:59 -0000
X-Authenticated: #687101
From: "Alexander Kiesl" <XXXXX@gmx.de>
To: <suse-linux@suse.com>
Subject: =?iso-8859-1?Q?apt:_openldap2-client_package_will_alle_m=F6glichen_packag?=
	=?iso-8859-1?Q?es_deinstallieren?=
Date: Sun, 31 Jul 2005 22:25:41 +0200
Message-ID: <001f01c5960e$08a162b0$0302a8c0@AlexPC>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4024
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Y-GMX-Trusted: 0
X-Virus-Scanned: by amavisd-new at Relay2.suse.de
X-Spam-Status: No, hits=-0.4 tagged_above=-20.0 required=5.0 tests=BAYES_05
X-Spam-Level: 
Envelope-To: XXXXX@XXXXX.de
Status: R
X-Status: NC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  
X-Length: 2716
X-UID: 264

Hallo zusammen,=20
[Body deleted]
===

KDE Crashmanager Report:
===
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 1113705472 (LWP 8416)]
[New Thread 1127230384 (LWP 8420)]
[Thread debugging using libthread_db enabled]
[New Thread 1113705472 (LWP 8416)]
[New Thread 1127230384 (LWP 8420)]
[New Thread 1125129136 (LWP 8419)]
[New Thread 1123027888 (LWP 8418)]
[New Thread 1120926640 (LWP 8417)]
[Thread debugging using libthread_db enabled]
[New Thread 1113705472 (LWP 8416)]
[New Thread 1127230384 (LWP 8420)]
[KCrash handler]
#9  0x403009f5 in KMFolderImap::deleteMessage ()
   from /opt/kde3/lib/libkmailprivate.so
#10 0x4030a94b in KMFolderImap::removeMsg ()
   from /opt/kde3/lib/libkmailprivate.so
#11 0x402459c9 in KMFolder::removeMsg () from /opt/kde3/lib/libkmailprivate.so
#12 0x403cb271 in KMMainWidget::removeDuplicates ()
   from /opt/kde3/lib/libkmailprivate.so
#13 0x403e0740 in KMMainWidget::qt_invoke ()
   from /opt/kde3/lib/libkmailprivate.so
#14 0x40a4cc4e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x40a4d3f6 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x41eee719 in KAction::activated () from /opt/kde3/lib/libkdeui.so.4
#17 0x420098fa in KAction::slotActivated () from /opt/kde3/lib/libkdeui.so.4
#18 0x42008eed in KAction::slotPopupActivated ()
   from /opt/kde3/lib/libkdeui.so.4
#19 0x420090ca in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#20 0x40a4cc4e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40da6b82 in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40a6a003 in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40b61c5a in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x4202ac31 in KPopupMenu::mouseReleaseEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#25 0x40a83395 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x409e962f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x409eb956 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x406f8f41 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#29 0x40986101 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x4098503d in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x40995bb8 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x40a013f1 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x40a01236 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x409eb0df in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x0804a6a6 in main ()
===
Comment 1 Bram Schoenmakers 2008-04-10 18:37:23 UTC
*** Bug 160656 has been marked as a duplicate of this bug. ***
Comment 2 Oliver Putz 2008-09-03 16:46:34 UTC
I think I just ran into this bug. When I fetched some mails, my personal IMAP server had some hickups so that it fetched several mails multiple times. When I browsed a folder in KMail, I saw all the duplicates and used "Folder->Remove Duplicate Messages" to remove the dulplicates on the IMAP server. This seemed to remove some duplicates, but not all. So I (shortly after) used that function again. Right after this, Kontact from KDE-3.5.9 crashed (maybe it tried to delete some already deleted message?) with the following backtrace:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x7f02a5ebd700 (LWP 18193)]
[New Thread 0x426e9950 (LWP 18201)]
[New Thread 0x41ee8950 (LWP 18200)]
[New Thread 0x416e7950 (LWP 18199)]
[New Thread 0x40ee6950 (LWP 18198)]
[KCrash handler]
#5  KMFolderImap::deleteMessage (this=0xbf5ce0, msg=0x0)
    at kmfolderimap.cpp:1821
#6  0x00007f02991a0630 in KMFolderImap::removeMsg (this=0xbf5ce0, idx=820, 
    quiet=<value optimized out>) at kmfolderimap.cpp:285
#7  0x00007f029922868f in KMMainWidget::removeDuplicates (this=0xcd7c30)
    at kmmainwidget.cpp:3606
#8  0x00007f0299238db6 in KMMainWidget::qt_invoke (this=0xcd7c30, _id=175, 
    _o=0x7fffadefaa70) at kmmainwidget.moc:619
#9  0x00007f029f8eb888 in QObject::activate_signal (this=0xd83650, 
    clist=0xd83a90, o=0x7fffadefaa70) at kernel/qobject.cpp:2356
#10 0x00007f029f8ec8a2 in QObject::activate_signal (this=0xd83650, signal=2)
    at kernel/qobject.cpp:2325
#11 0x00007f02a2014877 in KAction::slotPopupActivated (this=0xd83650)
    at kaction.cpp:1137
#12 0x00007f02a2014b28 in KAction::qt_invoke (this=0xd83650, _id=16, 
    _o=0x7fffadefac00) at kaction.moc:219
#13 0x00007f029f8eb888 in QObject::activate_signal (this=0xef0b30, 
    clist=0xef0c10, o=0x7fffadefac00) at kernel/qobject.cpp:2356
#14 0x00007f029fd1f5a0 in QSignal::signal (this=0xef0b30, t0=@0xef0b80)
    at .moc/debug-shared-mt/moc_qsignal.cpp:100
#15 0x00007f029f91097c in QSignal::activate (this=0xef0b30)
    at kernel/qsignal.cpp:212
#16 0x00007f029fa44b0a in QPopupMenu::mouseReleaseEvent (this=0xeea4b0, 
    e=0x7fffadefb390) at widgets/qpopupmenu.cpp:1691
#17 0x00007f029f92efc5 in QWidget::event (this=0xeea4b0, e=0x7fffadefb390)
    at kernel/qwidget.cpp:4677
#18 0x00007f029f87097f in QApplication::internalNotify (this=0x7fffadefbd80, 
    receiver=0xeea4b0, e=0x7fffadefb390) at kernel/qapplication.cpp:2635
#19 0x00007f029f872e9c in QApplication::notify (this=0x7fffadefbd80, 
    receiver=0xeea4b0, e=0x7fffadefb390) at kernel/qapplication.cpp:2421
#20 0x00007f02a101a76c in KApplication::notify (this=0x7fffadefbd80, 
    receiver=0xeea4b0, event=0x7fffadefb390) at kapplication.cpp:550
#21 0x00007f029f7f242e in QApplication::sendSpontaneousEvent (
    receiver=0xeea4b0, event=0x7fffadefb390) at kernel/qapplication.h:499
#22 0x00007f029f7f0d0a in QETWidget::translateMouseEvent (this=0xeea4b0, 
    event=0x7fffadefba20) at kernel/qapplication_x11.cpp:4240
#23 0x00007f029f7eeec2 in QApplication::x11ProcessEvent (this=0x7fffadefbd80, 
    event=0x7fffadefba20) at kernel/qapplication_x11.cpp:3449
#24 0x00007f029f8085a4 in QEventLoop::processEvents (this=0x6a8bc0, flags=4)
    at kernel/qeventloop_x11.cpp:192
#25 0x00007f029f8905e5 in QEventLoop::enterLoop (this=0x6a8bc0)
    at kernel/qeventloop.cpp:198
#26 0x00007f029f8903eb in QEventLoop::exec (this=0x6a8bc0)
    at kernel/qeventloop.cpp:145
#27 0x00007f029f8727c4 in QApplication::exec (this=0x7fffadefbd80)
    at kernel/qapplication.cpp:2758
#28 0x000000000041ea63 in main (argc=<value optimized out>, 
    argv=0x7fffadefc098) at main.cpp:163
#29 0x00007f029baf9486 in __libc_start_main (main=0x41e8ba <main>, argc=1, 
    ubp_av=0x7fffadefc098, init=0x430b20 <__libc_csu_init>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fffadefc088) at libc-start.c:226
#30 0x000000000041e5c9 in _start ()
Current language:  auto; currently c
Comment 3 Björn Ruberg 2009-12-29 02:55:31 UTC
Is this still a problem in KDE 4.3?
Comment 4 Björn Ruberg 2010-04-06 00:28:41 UTC
No response. Closing old KDE 3 crash.