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 569700 - [FIXED in 2.26.1] crash when canceled during downloading of an image
[FIXED in 2.26.1] crash when canceled during downloading of an image
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
unspecified
Other All
: High critical
: ---
Assigned To: Milan Crha
Evolution QA team
: 569701 570134 570137 570257 570294 570318 570697 570795 570796 570942 571152 571154 571163 571181 571213 571276 571277 571278 571302 571303 571342 572257 572473 572690 573032 573047 573048 573061 573419 573557 573558 574594 576654 576884 577465 581980 585435 592406 592408 593055 593315 593707 597418 597863 610517 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-29 17:28 UTC by David Ronis
Modified: 2010-02-20 20:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
proposed evo patch (1.00 KB, patch)
2009-02-05 15:55 UTC, Milan Crha
committed Details | Review
proposed eds patch (1.16 KB, patch)
2009-03-27 15:33 UTC, Milan Crha
committed Details | Review

Description David Ronis 2009-01-29 17:28:43 UTC
Version: 2.26.x

What were you doing when the application crashed?
I'd been reviewing e-mail and had just deleted one.  The deleted e-mail had several jpeg attachments, some I viewd inline while others in an external viewer.


Distribution: Slackware Slackware 12.1.0
Gnome Release: 2.25.1 2008-12-08 (GARNOME)
BugBuddy Version: 2.24.0

System: Linux 2.6.28.2 #25 SMP PREEMPT Mon Jan 26 17:18:12 EST 2009 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10402000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome

Memory status: size: 178008064 vsize: 178008064 resident: 62222336 share: 27054080 rss: 62222336 rss_rlim: 18446744073709551615
CPU usage: start_time: 1233249629 rtime: 5731 utime: 5265 stime: 466 cutime:0 cstime: 1 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/opt/gnome/bin/evolution'

[Thread debugging using libthread_db enabled]
[New Thread 0xb63876c0 (LWP 2687)]
[New Thread 0xb41ffb90 (LWP 1315)]
[New Thread 0xb5bb5b90 (LWP 1308)]
[New Thread 0xb0c7bb90 (LWP 1237)]
0xb702c2a1 in waitpid () from /lib/libpthread.so.0

Thread 3 (Thread 0xb5bb5b90 (LWP 1308))

  • #0 __lll_lock_wait
    from /lib/libpthread.so.0
  • #1 _L_lock_95
    from /lib/libpthread.so.0
  • #2 pthread_mutex_lock
    from /lib/libpthread.so.0
  • #3 <signal handler called>
  • #4 camel_mime_parser_read
    at camel-mime-parser.c line 655
  • #5 stream_read
  • #6 camel_stream_read
  • #7 emfh_gethttp
    at em-format-html.c line 525
  • #8 efh_format_exec
    at em-format-html.c line 1299
  • #9 mail_msg_proxy
    at mail-mt.c line 520
  • #10 g_thread_pool_thread_proxy
    at gthreadpool.c line 265
  • #11 g_thread_create_proxy
    at gthread.c line 635
  • #12 start_thread
    from /lib/libpthread.so.0
  • #13 clone
    from /lib/libc.so.6


----------- .xsession-errors (353442411 sec old) ---------------------
iceauth:  creating new authority file /home/ronis/.ICEauthority
--------------------------------------------------
Comment 1 palfrey 2009-01-29 18:12:14 UTC
*** Bug 569701 has been marked as a duplicate of this bug. ***
Comment 2 Akhil Laddha 2009-02-02 03:34:09 UTC
*** Bug 570137 has been marked as a duplicate of this bug. ***
Comment 3 Akhil Laddha 2009-02-03 11:28:44 UTC
*** Bug 570318 has been marked as a duplicate of this bug. ***
Comment 4 Kandepu Prasad 2009-02-03 13:20:45 UTC
Today I got this issue with trunk. Below are gdb traces. 
Evo revision: 37212
EDS revision: 10026


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff9ed6f950 (LWP 22524)]
camel_mime_parser_read (parser=0x0, databuffer=0x7fff9ed6e900, len=1500) at camel-mime-parser.c:655
655		struct _header_scan_state *s = _PRIVATE (parser);
(gdb) t a a bt

Thread 828 (Thread 0x7fff9ed6f950 (LWP 22524))

  • #0 camel_mime_parser_read
    at camel-mime-parser.c line 655
  • #1 stream_read
    at camel-http-stream.c line 487
  • #2 emfh_gethttp
    at em-format-html.c line 525
  • #3 efh_format_exec
    at em-format-html.c line 1299
  • #4 mail_msg_proxy
    at mail-mt.c line 520
  • #5 g_thread_pool_thread_proxy
    at gthreadpool.c line 265
  • #6 g_thread_create_proxy
    at gthread.c line 635
  • #7 start_thread
    at pthread_create.c line 297
  • #8 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 112
  • #9 ??

Thread 1 (Thread 0x7ffff7fa77e0 (LWP 18322))

  • #0 _int_malloc
    at malloc.c line 4167
  • #1 *__GI___libc_malloc
    at malloc.c line 3551
  • #2 IA__g_malloc
    at gmem.c line 131
  • #3 IA__g_strdup
    at gstrfuncs.c line 92
  • #4 camel_url_new_with_base
    at camel-url.c line 79
  • #5 camel_url_new
    at camel-url.c line 308
  • #6 camel_store_folder_uri_equal
    at camel-store.c line 1334
  • #7 em_utils_folder_is_drafts
    at em-utils.c line 1446
  • #8 em_menu_target_new_select
    at em-menu.c line 162
  • #9 emfv_enable_menus
    at em-folder-view.c line 2174
  • #10 emfv_list_done_message_selected
    at em-folder-view.c line 2525
  • #11 mail_msg_idle_cb
    at mail-mt.c line 500
  • #12 IA__g_main_context_dispatch
    at gmain.c line 2144
  • #13 g_main_context_iterate
    at gmain.c line 2778
  • #14 IA__g_main_loop_run
    at gmain.c line 2986
  • #15 bonobo_main
    at bonobo-main.c line 311
  • #16 main
    at main.c line 704
  • #0 camel_mime_parser_read
    at camel-mime-parser.c line 655
  • #1 stream_read
    at camel-http-stream.c line 487
  • #2 emfh_gethttp
    at em-format-html.c line 525
  • #3 efh_format_exec
    at em-format-html.c line 1299
  • #4 mail_msg_proxy
    at mail-mt.c line 520
  • #5 g_thread_pool_thread_proxy
    at gthreadpool.c line 265
  • #6 g_thread_create_proxy
    at gthread.c line 635
  • #7 start_thread
    at pthread_create.c line 297
  • #8 clone
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S line 112
  • #9 ??
(gdb) 

Comment 5 Milan Crha 2009-02-05 13:47:42 UTC
*** Bug 570134 has been marked as a duplicate of this bug. ***
Comment 6 Milan Crha 2009-02-05 13:48:40 UTC
*** Bug 570257 has been marked as a duplicate of this bug. ***
Comment 7 Milan Crha 2009-02-05 15:55:16 UTC
Created attachment 128020 [details] [review]
proposed evo patch

for evolution;

These few lines helped me. It was enough to move up and down in a good timing.
Also, to have it play even better, feel free to clear your image cache, by
  $ rm -rf ~/.evolution/cache/http

If possible, can someone check whether it helps to you too? Thanks in advance.
Comment 8 Kandepu Prasad 2009-02-06 06:30:24 UTC
I tried testing this patch. Yes it does not crash. But it does not download the images anymore if we move between mails before download. For that we have to clear the http cache again. ($ rm -rf ~/.evolution/cache/http)
Comment 9 kafteji 2009-02-06 06:57:03 UTC
(In reply to comment #8)
> I tried testing this patch. Yes it does not crash. But it does not download the
> images anymore if we move between mails before download. For that we have to
> clear the http cache again. ($ rm -rf ~/.evolution/cache/http)
> 

could someone explain the concept used when user moves to preview another email while the active is loading ?
I guess normally, external resource loading of active preview should remain active in another thread.isn't it?
Comment 10 Kandepu Prasad 2009-02-06 08:09:01 UTC
*** Bug 570697 has been marked as a duplicate of this bug. ***
Comment 11 Milan Crha 2009-02-06 09:29:07 UTC
(In reply to comment #8)
> I tried testing this patch. Yes it does not crash. But it does not download the
> images anymore if we move between mails before download. [...]

Yup, known, I figured it out while working on this. See bug #333716. I also noticed, you can either delete files or wait a day ;)

(In reply to comment #9)
> could someone explain the concept used when user moves to preview another email
> while the active is loading ?
> I guess normally, external resource loading of active preview should remain
> active in another thread.isn't it?

As far as I'm able to explain this (and I'm quite bad in explaining things), it runs in other thread, but the operation (as it is called in camel word) is canceled, possibly in the middle of the remote file download. Not all images are downloaded when you move to other message.
Comment 12 Reid Thompson 2009-02-06 15:55:49 UTC
*** Bug 570795 has been marked as a duplicate of this bug. ***
Comment 13 Reid Thompson 2009-02-06 15:57:05 UTC
*** Bug 570796 has been marked as a duplicate of this bug. ***
Comment 14 Akhil Laddha 2009-02-08 13:39:09 UTC
*** Bug 570942 has been marked as a duplicate of this bug. ***
Comment 15 Akhil Laddha 2009-02-10 11:01:52 UTC
*** Bug 571154 has been marked as a duplicate of this bug. ***
Comment 16 Reid Thompson 2009-02-10 18:01:46 UTC
This makes using evo SVN head almost unusable.

Going to try to apply the half-patch noted above to avoid repeatedly crashing.
Comment 17 Milan Crha 2009-02-10 18:47:19 UTC
Reid, apply patch from the other bug, mentioned in the comment #11 and it'll be complete. Anyway, for patch as for crashing, it is complete even without that :)
Comment 18 Akhil Laddha 2009-02-11 04:21:27 UTC
*** Bug 571163 has been marked as a duplicate of this bug. ***
Comment 19 Akhil Laddha 2009-02-11 04:21:35 UTC
*** Bug 571181 has been marked as a duplicate of this bug. ***
Comment 20 Srinivasa Ragavan 2009-02-11 06:39:55 UTC
Milan, lets push this in. But we need to see, that the cache is empty for canceled operations, so that next time its fetched.
Comment 21 Srinivasa Ragavan 2009-02-11 06:42:22 UTC
To trunk/stable
Comment 22 Milan Crha 2009-02-11 09:48:33 UTC
*** Bug 571152 has been marked as a duplicate of this bug. ***
Comment 23 Milan Crha 2009-02-11 10:03:15 UTC
Committed to trunk. Committed revision 37246.
Committed to gnome-2-24. Committed revision 37247.

(In reply to comment #20)
> Milan, lets push this in. But we need to see, that the cache is empty for
> canceled operations, so that next time its fetched.

it's done in just committed bug #333716
Comment 24 André Klapper 2009-02-11 11:07:42 UTC
*** Bug 571276 has been marked as a duplicate of this bug. ***
Comment 25 André Klapper 2009-02-11 11:07:46 UTC
*** Bug 571277 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2009-02-11 11:07:49 UTC
*** Bug 571278 has been marked as a duplicate of this bug. ***
Comment 27 palfrey 2009-02-11 14:28:31 UTC
*** Bug 571302 has been marked as a duplicate of this bug. ***
Comment 28 André Klapper 2009-02-11 20:11:13 UTC
*** Bug 571342 has been marked as a duplicate of this bug. ***
Comment 29 palfrey 2009-02-18 17:34:29 UTC
*** Bug 572257 has been marked as a duplicate of this bug. ***
Comment 30 Akhil Laddha 2009-02-20 03:42:07 UTC
*** Bug 572473 has been marked as a duplicate of this bug. ***
Comment 31 Milan Crha 2009-02-20 10:19:08 UTC
*** Bug 571303 has been marked as a duplicate of this bug. ***
Comment 32 Milan Crha 2009-02-20 10:19:08 UTC
*** Bug 571213 has been marked as a duplicate of this bug. ***
Comment 33 Pedro Villavicencio 2009-02-20 13:45:04 UTC
there's a similar crash in Ubuntu with 2.25.91 here:

https://bugs.edge.launchpad.net/ubuntu/+source/evolution/+bug/331819

"Thread 15 (Thread 0xb4229b90 (LWP 10732)):
  • #0 camel_mime_parser_read
    at camel-mime-parser.c line 655
  • #1 stream_read
    at camel-http-stream.c line 487
  • #2 camel_stream_read
    at camel-stream.c line 98
  • #3 emfh_gethttp
    at em-format-html.c line 531
  • #4 efh_format_exec
    at em-format-html.c line 1304
  • #5 mail_msg_proxy
    at mail-mt.c line 520
  • #6 g_thread_pool_thread_proxy
    at /build/buildd/glib2.0-2.19.8/glib/gthreadpool.c line 265
  • #7 g_thread_create_proxy
    at /build/buildd/glib2.0-2.19.8/glib/gthread.c line 635
  • #8 start_thread
    from /lib/tls/i686/cmov/libpthread.so.0
  • #9 clone
    from /lib/tls/i686/cmov/libc.so.6

html test file could be located here:

http://launchpadlibrarian.net/22909808/crash.html
Comment 34 Akhil Laddha 2009-02-23 03:17:51 UTC
*** Bug 572690 has been marked as a duplicate of this bug. ***
Comment 35 Milan Crha 2009-02-24 09:41:51 UTC
*** Bug 570294 has been marked as a duplicate of this bug. ***
Comment 36 Matthew Barnes 2009-02-25 02:00:42 UTC
*** Bug 573047 has been marked as a duplicate of this bug. ***
Comment 37 Akhil Laddha 2009-02-25 03:42:54 UTC
*** Bug 573048 has been marked as a duplicate of this bug. ***
Comment 38 Akhil Laddha 2009-02-25 03:58:43 UTC
*** Bug 573061 has been marked as a duplicate of this bug. ***
Comment 39 Akhil Laddha 2009-02-25 04:07:03 UTC
*** Bug 573032 has been marked as a duplicate of this bug. ***
Comment 40 Fabio Durán Verdugo 2009-02-28 18:40:44 UTC
*** Bug 573558 has been marked as a duplicate of this bug. ***
Comment 41 Matthew Barnes 2009-02-28 19:55:18 UTC
*** Bug 573557 has been marked as a duplicate of this bug. ***
Comment 42 Akhil Laddha 2009-03-02 03:40:29 UTC
*** Bug 573419 has been marked as a duplicate of this bug. ***
Comment 43 Akhil Laddha 2009-03-02 03:41:23 UTC
*** Bug 558079 has been marked as a duplicate of this bug. ***
Comment 44 Ruchir Brahmbhatt 2009-03-04 12:08:45 UTC
Same here on opensuse 11.1, evolution 2.24.4


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x88fecb90 (LWP 29523)]        
camel_mime_parser_read (parser=0x0, databuffer=0x88febbc8, len=1500) at camel-mime-parser.c:655
655     camel-mime-parser.c: No such file or directory.                                        
        in camel-mime-parser.c                                                                 
(gdb)                                                                                          
(gdb)                                                                                          
(gdb)                                                                                          
(gdb)                                                                                          
(gdb)                                                                                          
(gdb)                                                                                          
(gdb) t a a bt                                                                                 

Thread 994 (Thread 0x88fecb90 (LWP 29523))

  • #0 camel_mime_parser_read
    at camel-mime-parser.c line 655
  • #1 stream_read
    at camel-http-stream.c line 487
  • #2 camel_stream_read
    at camel-stream.c line 98
  • #3 emfh_gethttp
    at em-format-html.c line 525
  • #4 efh_format_exec
    at em-format-html.c line 1299
  • #5 mail_msg_proxy
    at mail-mt.c line 520
  • #6 ??
    from /usr/lib/libglib-2.0.so.0
  • #7 ??
    from /usr/lib/libglib-2.0.so.0
  • #8 start_thread
    from /lib/libpthread.so.0
  • #9 clone
    from /lib/libc.so.6

Comment 45 Milan Crha 2009-03-04 13:21:44 UTC
(In reply to comment #44)
> Same here on opensuse 11.1, evolution 2.24.4

It's in since 2.24.5. Why is this reopened? I'm closing as fixed.
Comment 46 Akhil Laddha 2009-03-05 03:47:12 UTC
Milan, it was opened by pvillavi@gnome.org on the basis of comment#33.
Comment 47 Milan Crha 2009-03-05 12:17:30 UTC
aah, thanks. Based on the NEWS file, patch for this is included since 2.25.92.
Comment 48 Ruchir Brahmbhatt 2009-03-08 10:48:23 UTC
Yeah it is fixed in trunk. I can't reproduce in nightly builds.
Comment 49 Akhil Laddha 2009-03-09 03:53:59 UTC
*** Bug 574594 has been marked as a duplicate of this bug. ***
Comment 50 Matthew Barnes 2009-03-26 20:08:24 UTC
*** Bug 576884 has been marked as a duplicate of this bug. ***
Comment 51 Pedro Villavicencio 2009-03-26 20:27:30 UTC
bug 576884 was reproduced with Evolution 2.26.0, it also contains an email to test : http://launchpadlibrarian.net/24359750/Mr%2C_be_prepared_to_start_temping_tomorrow
Comment 52 Milan Crha 2009-03-27 15:19:44 UTC
*** Bug 576654 has been marked as a duplicate of this bug. ***
Comment 53 Milan Crha 2009-03-27 15:33:50 UTC
Created attachment 131501 [details] [review]
proposed eds patch

for evolution-data-server;

Great, what a nice coincidence, I was looking for a reproducer for my test patch from the above duplicate bug, and you gave me one. Thanks a lot :)
Comment 54 Milan Crha 2009-03-27 15:49:11 UTC
Committed to trunk. Committed revision 10193.
Comment 55 Gianluca Borello 2009-03-31 14:37:24 UTC
*** Bug 577465 has been marked as a duplicate of this bug. ***
Comment 56 Fabio Durán Verdugo 2009-05-04 12:24:06 UTC
*** Bug 581278 has been marked as a duplicate of this bug. ***
Comment 57 Fabio Durán Verdugo 2009-05-04 12:25:13 UTC
*** Bug 581275 has been marked as a duplicate of this bug. ***
Comment 58 Fabio Durán Verdugo 2009-05-04 21:23:08 UTC
*** Bug 581324 has been marked as a duplicate of this bug. ***
Comment 59 Fabio Durán Verdugo 2009-05-04 21:23:54 UTC
*** Bug 581337 has been marked as a duplicate of this bug. ***
Comment 60 Fabio Durán Verdugo 2009-05-08 18:31:05 UTC
*** Bug 581874 has been marked as a duplicate of this bug. ***
Comment 61 Fabio Durán Verdugo 2009-05-09 00:25:18 UTC
*** Bug 581938 has been marked as a duplicate of this bug. ***
Comment 62 Fabio Durán Verdugo 2009-05-09 00:26:58 UTC
*** Bug 581945 has been marked as a duplicate of this bug. ***
Comment 63 André Klapper 2009-05-09 12:19:47 UTC
*** Bug 581980 has been marked as a duplicate of this bug. ***
Comment 64 Akhil Laddha 2009-06-15 04:48:06 UTC
*** Bug 585435 has been marked as a duplicate of this bug. ***
Comment 65 Akhil Laddha 2009-08-20 12:17:53 UTC
*** Bug 592406 has been marked as a duplicate of this bug. ***
Comment 66 Akhil Laddha 2009-08-20 12:18:38 UTC
*** Bug 592408 has been marked as a duplicate of this bug. ***
Comment 67 Fabio Durán Verdugo 2009-08-25 18:58:07 UTC
*** Bug 593055 has been marked as a duplicate of this bug. ***
Comment 68 Fabio Durán Verdugo 2009-08-27 18:58:32 UTC
*** Bug 593315 has been marked as a duplicate of this bug. ***
Comment 69 André Klapper 2009-08-31 19:56:16 UTC
*** Bug 593707 has been marked as a duplicate of this bug. ***
Comment 70 Fabio Durán Verdugo 2009-10-05 22:58:23 UTC
*** Bug 597418 has been marked as a duplicate of this bug. ***
Comment 71 Akhil Laddha 2009-10-09 03:54:39 UTC
*** Bug 597863 has been marked as a duplicate of this bug. ***
Comment 72 Fabio Durán Verdugo 2010-02-20 20:32:17 UTC
*** Bug 610517 has been marked as a duplicate of this bug. ***