Bug 1158055 - [abrt] Memory corruption after message send (maybe bbdb related)
Summary: [abrt] Memory corruption after message send (maybe bbdb related)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: evolution
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Crha
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a08c1fe02e5ad7a51ede6e0fa97...
: 1158056 1163941 1174134 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-28 12:58 UTC by Artur Flinta
Modified: 2014-12-22 13:00 UTC (History)
7 users (show)

Fixed In Version: evolution-3.12.9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-22 12:57:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (82.83 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: cgroup (190 bytes, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: core_backtrace (41.69 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: dso_list (26.38 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: environ (1.52 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: exploitable (82 bytes, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: limits (1.29 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: maps (130.84 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: open_fds (3.56 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: proc_pid_status (946 bytes, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details
File: var_log_messages (7.55 KB, text/plain)
2014-10-28 12:58 UTC, Artur Flinta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 734530 0 None None None Never
Red Hat Bugzilla 1174134 0 unspecified CLOSED Evolution crashes when replying to an email 2021-02-22 00:41:40 UTC

Internal Links: 1174134

Description Artur Flinta 2014-10-28 12:58:22 UTC
Description of problem:
Evolution just died after sending e-mail (via exchange).

Version-Release number of selected component:
evolution-3.12.7-1.fc21

Additional info:
reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        evolution
crash_function: magazine_chain_pop_head
executable:     /usr/bin/evolution
kernel:         3.17.1-304.fc21.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (5 frames)
 #0 magazine_chain_pop_head at gslice.c:539
 #1 magazine_chain_prepare_fields at gslice.c:617
 #2 magazine_cache_push_magazine at gslice.c:691
 #3 private_thread_memory_cleanup at gslice.c:777
 #4 __nptl_deallocate_tsd at pthread_create.c:158

Potential duplicate: bug 733919

Comment 1 Artur Flinta 2014-10-28 12:58:25 UTC
Created attachment 951376 [details]
File: backtrace

Comment 2 Artur Flinta 2014-10-28 12:58:27 UTC
Created attachment 951377 [details]
File: cgroup

Comment 3 Artur Flinta 2014-10-28 12:58:29 UTC
Created attachment 951378 [details]
File: core_backtrace

Comment 4 Artur Flinta 2014-10-28 12:58:30 UTC
Created attachment 951379 [details]
File: dso_list

Comment 5 Artur Flinta 2014-10-28 12:58:31 UTC
Created attachment 951380 [details]
File: environ

Comment 6 Artur Flinta 2014-10-28 12:58:33 UTC
Created attachment 951381 [details]
File: exploitable

Comment 7 Artur Flinta 2014-10-28 12:58:34 UTC
Created attachment 951382 [details]
File: limits

Comment 8 Artur Flinta 2014-10-28 12:58:36 UTC
Created attachment 951383 [details]
File: maps

Comment 9 Artur Flinta 2014-10-28 12:58:37 UTC
Created attachment 951384 [details]
File: open_fds

Comment 10 Artur Flinta 2014-10-28 12:58:38 UTC
Created attachment 951385 [details]
File: proc_pid_status

Comment 11 Artur Flinta 2014-10-28 12:58:40 UTC
Created attachment 951386 [details]
File: var_log_messages

Comment 12 Milan Crha 2014-10-29 09:08:29 UTC
Thanks for a bug report. Crashes in this function usually mean some sort of memory corruption, like when accessing already freed memory or similar. I tried to reproduce it under valgrind, by sending a reply to an EWS message, with and without storing sent messages into an EWS folder, but the valgrind didn't show anything related. It doesn't mean there is no issue, it's just that the plain text message I used doesn't trigger it.

Could you install valgrind, debug info for evolution-ews, evolution and evolution-data-server [1] then run evolution under valgrind, like this:
   $ G_SLICE=always-malloc valgrind --num-callers=20 evolution &>log.txt
and try to reproduce the crash. Note the valgrind can avoid certain crashes, but still log about them.

Also, if you could provide more details, like what settings you use for the EWS account and what message type you send and basically any other details which would help to identify where the issue is, then it'll be helpful.

[1] with a command like this:
    $ yum install evolution-ews-debuginfo evolution-debuginfo \
      evolution-data-server-debuginfo --enableretpo=updates-testing-debuginfo
    only make sure the package version of the debuginfo will match the package
    version of the binary packages.

Comment 13 Milan Crha 2014-10-30 06:35:37 UTC
*** Bug 1158056 has been marked as a duplicate of this bug. ***

Comment 14 Artur Flinta 2014-11-10 20:34:40 UTC
It seems that replicating this bug will be extremely difficult to reproduce. Since reporting this issue I've only had one more such problem (unfortunately without valgrind running). I'm sending and receiving via EWS about 150-200 emails daily so it is really rare issue. I'll be back to this when will be able to reliable reproduce this bug - running on production machine through valgrind is really slow ;)

Comment 15 Milan Crha 2014-11-11 07:12:02 UTC
(In reply to Artur Flinta from comment #14)
> I'll be back to this when will be able to reliable reproduce this
> bug - running on production machine through valgrind is really slow ;)

Thanks. I would say that running evolution under valgrind in a production environment is useless, due to its slowness. The problem with memory corruption bugs is that they can strike back anywhere, not always at the same place, thus it's hard to pair them with an existing issue. They can also strike any time, which means even seconds/minutes/... after the actual faulty code was executed.

I'd suggest to try to watch any details, which might be easier than running evolution under valgrind. That is, if the crash is related to a message send, then watch for the pattern, like sending a new message, sending a reply, is the message a plain text or HTML, what content is the message (with HTML how much complicated it is - does it contain tables, inline images, ....). Does the sent message contain an attachment, what type and size is the attachment. Is it crashing when sending a meeting invitation. And so on. There are just too many details.

Comment 16 Milan Crha 2014-11-14 06:51:15 UTC
*** Bug 1163941 has been marked as a duplicate of this bug. ***

Comment 17 Artur Flinta 2014-11-14 11:07:49 UTC
according to bug 1163941, it was after sending HTML message (my default composing mode), but without any formatting - I'm using this as plain text. But it was response for longer conversation and first of the messages had some pictures in footer. But I've responded to this person several times this week and without any problem. Moreover, crash have occurred several second after sending message. As I remember all these crashes happened when I was not using computer or was focused on other application.

Comment 18 Milan Crha 2014-11-18 05:04:34 UTC
Maybe it's the automatic contact feature doing something nasty. You had it enabled with a non-existent addressbook, if I recall correctly.

That the bug raises some time later is pretty much usual with this sorts of bugs (memory corruptions, like use-after-free). The faulty code modifies some memory and the bug is noticed only when that part is accessed, which highly depends on the kind of the data being stored there before the faulty code execution.

Comment 19 Artur Flinta 2014-11-18 09:59:49 UTC
Yeah, I'll be monitoring it and not hesitate to report all bugs catched via ABRT ;)

Comment 20 Milan Crha 2014-11-20 13:37:12 UTC
I tried to reproduce it here, using IMAP and SMTP account, but no luck. Neither valgrind claimed anything whether BBDB plugin (Automatic Contacts) saved anything to my configured book or not. I also didn't notice any obvious issue in the bbdb code related to the message send, thus it's possible I focus in a wrong direction.

Comment 21 Vratislav Podzimek 2014-12-15 09:03:43 UTC
Another user experienced a similar problem:

I tried to reply to an email.

reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        evolution
crash_function: magazine_chain_pop_head
executable:     /usr/bin/evolution
kernel:         3.17.6-300.fc21.x86_64
package:        evolution-3.12.8-1.fc21
reason:         evolution killed by SIGSEGV
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 22 Vratislav Podzimek 2014-12-15 09:21:02 UTC
Another user experienced a similar problem:

Tried to reply to an email.

reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        evolution
crash_function: magazine_chain_pop_head
executable:     /usr/bin/evolution
kernel:         3.17.6-300.fc21.x86_64
package:        evolution-3.12.8-1.fc21
reason:         evolution killed by SIGSEGV
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 23 Milan Crha 2014-12-22 12:57:15 UTC
This had been fixed upstream in evolution 3.12.9, within bug [1]. I'm closing this as such. Please update to that version.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=734530

Comment 24 Milan Crha 2014-12-22 13:00:27 UTC
*** Bug 1174134 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.