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 650587 - Hide Search Folder actions when Search Folders are disabled
Hide Search Folder actions when Search Folders are disabled
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.0.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-05-19 13:52 UTC by Volker Sobek (weld)
Modified: 2011-05-31 04:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Volker Sobek (weld) 2011-05-19 13:52:55 UTC
Evolution crashes when you are in the email view, select an email and choose any of the
Message > Create Rule > Search Folder from *
menu entries.

  • #0 rule_from_message
    at mail-autofilter.c line 256
  • #1 em_vfolder_rule_from_message
    at mail-autofilter.c line 325
  • #2 vfolder_gui_add_from_message
    at mail-vfolder.c line 1441
  • #3 mail_reader_create_vfolder_cb
    at e-mail-reader-utils.c line 597
  • #4 mail_msg_idle_cb
    at mail-mt.c line 388
  • #5 g_main_dispatch
    at gmain.c line 2440
  • #6 g_main_context_dispatch
    at gmain.c line 3013
  • #7 g_main_context_iterate
    at gmain.c line 3091
  • #8 g_main_loop_run
    at gmain.c line 3299
  • #9 gtk_main
    at gtkmain.c line 1358
  • #10 main
    at main.c line 734

Comment 1 Jonathan Gonzalez V. 2011-05-19 16:00:22 UTC
Here I add my backtrace full.

Debian unstable Evolution(experimental package I think) version 3.0.0-2

Program received signal SIGSEGV, Segmentation fault.
rule_from_message (rule=0x0, context=0x0, msg=0x7fffe0029150, flags=2)
    at mail-autofilter.c:256
256	mail-autofilter.c: No such file or directory.
	in mail-autofilter.c
(gdb) bt full
  • #0 rule_from_message
    at mail-autofilter.c line 256
  • #1 em_vfolder_rule_from_message
    at mail-autofilter.c line 325
  • #2 vfolder_gui_add_from_message
    at mail-vfolder.c line 1441
  • #3 mail_reader_create_vfolder_cb
    at e-mail-reader-utils.c line 597
  • #4 mail_msg_idle_cb
    at mail-mt.c line 388

Comment 2 Fabio Durán Verdugo 2011-05-19 16:14:16 UTC
I can't reproduce in evolution-3.0.1-1.fc15.i686 and from git master. any can test again?
Comment 3 Volker Sobek (weld) 2011-05-19 16:56:40 UTC
I forgot to mention the exact version of Evolution in my case is evolution-3.0.1-1.fc15
Comment 4 Volker Sobek (weld) 2011-05-19 16:59:07 UTC
And x86_64 here.
Comment 5 Matthew Barnes 2011-05-20 03:06:42 UTC
Does "Search Folders" appear at the bottom of your sidebar?  I was able to reproduce the crash when Search Folders are disabled through GConf.  Those menu items shouldn't even be visible when Search Folders are disabled.
Comment 6 Volker Sobek (weld) 2011-05-20 10:05:12 UTC
No, I didn't have Search Folders in in the sidebar.

  /apps/evolution/mail/display/enable_vfolders

was set to false.

When setting it to true, the search folders show up in the sidebar and the crash no longer occurs. If i set it back to false, the

  Message > Create Rule > Search Folder from *

menu items are still visible and crash evolution, just like before.

I've to add that I dragged my evolution settings through many evolution versions, using Evolution's build in save and restore settings functionality.
Comment 7 Volker Sobek (weld) 2011-05-20 10:17:37 UTC
So I just set up a fresh Evolution for a new user and the search folders were enabled by default, so there's no problem for a fresh Evolution. But setting

  /apps/evolution/mail/display/enable_vfolders

to false caused the crash for this clean evolution too, meaning that the

  Message > Create Rule > Search Folder from *

menu entries are still visible.
Comment 8 Matthew Barnes 2011-05-20 17:05:32 UTC
Okay good, that's exactly what I expected.  Updating bug summary accordingly.
Comment 9 Matthew Barnes 2011-05-20 23:48:42 UTC
Fixed for Evolution 3.1.2 in a series of commits:

http://git.gnome.org/browse/evolution/commit/?id=f15ef02a7f3dda6b2f8058efab8407946d1d6a60

http://git.gnome.org/browse/evolution/commit/?id=7333f12087eb0b0271ff272c6643909a7803510b

http://git.gnome.org/browse/evolution/commit/?id=9aa668aa6bf612673ad7e760b06fc62350be041e

The changes are too extensive for 3.0, so only the first commit has been backported.  This will cause the "Search Folder from *" menu items to just emit some runtime warnings to stderr and do nothing else, but it avoids a crash.
Comment 10 Milan Crha 2011-05-31 04:48:24 UTC
Downstream bug report from 3.0.1 about the same:
https://bugzilla.redhat.com/show_bug.cgi?id=708875