After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 544438 - crash in Evolution Mail and Calendar: Attempting to expunge al...
crash in Evolution Mail and Calendar: Attempting to expunge al...
Status: RESOLVED DUPLICATE of bug 561069
Product: evolution
Classification: Applications
Component: BugBuddyBugs
2.22.x (obsolete)
Other All
: High critical
: ---
Assigned To: Evolution Triage Team
Evolution QA team
: 522966 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-23 20:54 UTC by Reid Thompson
Modified: 2008-11-19 05:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
proposed eds patch (1.09 KB, patch)
2008-11-18 13:59 UTC, Milan Crha
committed Details | Review

Description Reid Thompson 2008-07-23 20:54:28 UTC
What were you doing when the application crashed?
Attempting to expunge all folders causes crash . File/Empty Trash


Distribution: Gentoo Base System release 1.12.11.1
Gnome Release: 2.22.3 2008-07-02 (Gentoo)
BugBuddy Version: 2.22.0

System: Linux 2.6.24-gentoo-r8 #1 SMP PREEMPT Tue May 13 08:35:55 EDT 2008 i686
X Vendor: The Cygwin/X Project
X Vendor Release: 60899901
Selinux: No
Accessibility: Disabled
GTK+ Theme: marble-look
Icon Theme: gnome

Memory status: size: 78032896 vsize: 78032896 resident: 21463040 share: 9293824 rss: 21463040 rss_rlim: 4294967295
CPU usage: start_time: 1216846406 rtime: 165 utime: 136 stime: 29 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/libexec/evolution-exchange-storage'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb62498f0 (LWP 23253)]
[New Thread 0xb5facb90 (LWP 23256)]
0xb7f0a410 in __kernel_vsyscall ()

Thread 1 (Thread 0xb62498f0 (LWP 23253))

  • #0 __kernel_vsyscall
  • #1 waitpid
    from /lib/libpthread.so.0
  • #2 IA__g_spawn_sync
    at ../../../glib/glib/gspawn.c line 382
  • #3 IA__g_spawn_command_line_sync
    at ../../../glib/glib/gspawn.c line 694
  • #4 run_bug_buddy
    at gnome-breakpad.cc line 213
  • #5 check_if_gdb
    at gnome-breakpad.cc line 283
  • #6 google_breakpad::ExceptionHandler::InternalWriteMinidump
    at ../google-breakpad/src/client/linux/handler/exception_handler.cc line 226
  • #7 google_breakpad::ExceptionHandler::HandleException
    at ../google-breakpad/src/client/linux/handler/exception_handler.cc line 197
  • #8 <signal handler called>
  • #9 strrchr
    from /lib/libc.so.6
  • #10 expunge_uids
    at ../../../evolution-exchange/mail/mail-stub-exchange.c line 1564
  • #11 connection_handler
    at ../../../evolution-exchange/mail/mail-stub.c line 185
  • #12 g_io_unix_dispatch
    at ../../../glib/glib/giounix.c line 162
  • #13 IA__g_main_context_dispatch
    at ../../../glib/glib/gmain.c line 2068
  • #14 g_main_context_iterate
    at ../../../glib/glib/gmain.c line 2701
  • #15 IA__g_main_loop_run
    at ../../../glib/glib/gmain.c line 2924
  • #16 bonobo_main
    at bonobo-main.c line 311
  • #17 main
    at ../../../evolution-exchange/storage/main.c line 278
  • #0 __kernel_vsyscall


----------- .xsession-errors (53584 sec old) ---------------------
(gnome-panel:345): GWeather-WARNING **: Failed to get METAR data.
(gnome-panel:345): GWeather-WARNING **: Failed to get METAR data.
(gnome-panel:345): GWeather-WARNING **: Failed to get METAR data.
(gnome-panel:345): GWeather-WARNING **: Failed to get METAR data.
(gnome-panel:345): GWeather-WARNING **: Failed to get METAR data.
--------------------------------------------------
Comment 1 Kandepu Prasad 2008-07-24 10:33:29 UTC
*** Bug 522966 has been marked as a duplicate of this bug. ***
Comment 2 Milan Crha 2008-10-02 10:14:35 UTC
Hi Raid, any idea how to trigger the issue? I meant, I know you expunged your personal Deleted Items folder, I just wonder whether there was anything wrong with that folder or something, I've no idea at the moment. The thing that 
mfld->messages_by_uid and mfld->messages are out of sync (the first uses data from the second). I see only one place where message->href can became NULL, it's when renaming a folder. I believe you didn't rename a folder before expunging, did you? (I know, really silly question, I'm sorry for that).
Comment 3 Reid Thompson 2008-10-02 23:30:56 UTC
(In reply to comment #2)
> Hi Raid, any idea how to trigger the issue? I meant, I know you expunged your
> personal Deleted Items folder, I just wonder whether there was anything wrong
> with that folder or something, I've no idea at the moment. The thing that 
> mfld->messages_by_uid and mfld->messages are out of sync (the first uses data
> from the second). I see only one place where message->href can became NULL,
> it's when renaming a folder. I believe you didn't rename a folder before
> expunging, did you? (I know, really silly question, I'm sorry for that).
> 
Honestly I don't remember.  It is possible that I renamed a local account folder ( I don't think I've done any OWA folder renaming via Evo ).  I move pop mail into local folders, and I push some mailing lists into local folders.  I used to use both the local mbox account and a maildir account i created.  I've recently started using the maildir account exclusively.  The only folder on the local mbox account that gets use is the Outbox.

Looks like I only had this one occurrence.


Comment 4 Milan Crha 2008-10-03 13:05:58 UTC
(In reply to comment #3)
> Honestly I don't remember.

Yeah, I understand, it's quite long time since that happened.

> It is possible that I renamed a local account
> folder ( I don't think I've done any OWA folder renaming via Evo ).  I move pop
> mail into local folders, and I push some mailing lists into local folders.  I
> used to use both the local mbox account and a maildir account i created.  I've
> recently started using the maildir account exclusively.  The only folder on the
> local mbox account that gets use is the Outbox.
> 
> Looks like I only had this one occurrence.
> 

It crashed in the exchange "Deleted items" folder. I tried some similar operations as you described above, but no luck. :( Let's wait for a while, maybe it'll show for you again.
Comment 5 craig 2008-11-16 02:51:51 UTC
Ever since Evolution 2.24.1.1 on Intrepid Ibex showed up, I've been able to repeatedly and effectively crash Evolution by just emptying the trash on my IMAP server. I'm not sure what changed to cause this to be the default behavior, but it's made it impossible to use Evolution for my mail client. 
Comment 6 Juha Siltala 2008-11-17 09:50:20 UTC
I can confirm this on Ubuntu's 2.24.1 version of Evolution. Folder/Expunge works, but File/Empty Trash crashes evolution.
Comment 7 Milan Crha 2008-11-18 12:09:08 UTC
Can one of you install debug info packages and upload here the actual backtrace of the crash, please? I would like to see whether it's exactly the same issue or whether anything changed. Thanks in advance.
Comment 8 craig 2008-11-18 12:30:46 UTC
Program received signal SIGSEGV, Segmentation fault.

Thread 3040418704 (LWP 2659)

  • #0 imap_expunge_uids_online
    at camel-imap-folder.c line 1523
  • #1 imap_expunge
    at camel-imap-folder.c line 1592
  • #2 imap_sync
    at camel-imap-folder.c line 1433
  • #3 camel_folder_sync
    at camel-folder.c line 303
  • #4 vee_sync
    at camel-vee-folder.c line 582
  • #5 vee_expunge
    at camel-vee-folder.c line 625
  • #6 camel_folder_expunge
    at camel-folder.c line 591
  • #7 empty_trash_exec
    at mail-ops.c line 1760
  • #8 mail_msg_proxy
    at mail-mt.c line 520
  • #9 g_thread_pool_thread_proxy
    at /build/buildd/glib2.0-2.18.2/glib/gthreadpool.c line 265
  • #10 g_thread_create_proxy
    at /build/buildd/glib2.0-2.18.2/glib/gthread.c line 635
  • #11 start_thread
    from /lib/tls/i686/cmov/libpthread.so.0
  • #12 clone
    from /lib/tls/i686/cmov/libc.so.6

This is with dovecot:

ii  dovecot-common                                                1:1.1.4-0ubuntu1.2                                   secure mail server that supports mbox and ma
ii  dovecot-imapd                                                 1:1.1.4-0ubuntu1.2                                   secure IMAP server that supports mbox and ma
Comment 9 Reid Thompson 2008-11-18 12:38:09 UTC
(In reply to comment #7)
> Can one of you install debug info packages and upload here the actual backtrace
> of the crash, please? I would like to see whether it's exactly the same issue
> or whether anything changed. Thanks in advance.
> 

I've not had this issue since the original crash (July), but I build from svn head almost daily.  
Comment 10 Milan Crha 2008-11-18 13:59:00 UTC
Created attachment 122941 [details] [review]
proposed eds patch

for evolution-data-server;

Reid, I see, your initial issue was with exchange, this new issue is with IMAP. And it's really new. Fix is simple, the camel_db_get_folder_deleted_uids function can return NULL for folders where is nothing to expunge, and the IMAP provider didn't count with it.
Comment 11 Srinivasa Ragavan 2008-11-19 05:38:02 UTC
I just commited a similar patch :(

*** This bug has been marked as a duplicate of 561069 ***