Bug 822445

Summary: [abrt] evolution-data-server-3.4.1-2.fc17: magazine_chain_pop_head: Process /usr/libexec/evolution-addressbook-factory was killed by signal 11 (SIGSEGV)
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: evolution-data-serverAssignee: Matthew Barnes <mbarnes>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: mbarnes, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7fcb958dac74cf2774f3d528eef5a9a7bc69b1ec
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-01 03:41:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: maps
none
File: dso_list
none
File: build_ids none

Description Peter Robinson 2012-05-17 11:22:07 UTC
libreport version: 2.0.10
abrt_version:   2.0.10
backtrace_rating: 4
cmdline:        /usr/libexec/evolution-addressbook-factory
comment:        Just running and checking mail
crash_function: magazine_chain_pop_head
executable:     /usr/libexec/evolution-addressbook-factory
kernel:         3.3.4-5.fc17.x86_64
pid:            24145
pwd:            /
remote_result:  NOTFOUND
time:           Thu 17 May 2012 12:16:26 BST
uid:            501
username:       perobinson
var_log_messages: May 17 12:16:27 neo abrt[3088]: Saved core dump of pid 24145 (/usr/libexec/evolution-addressbook-factory) to /var/spool/abrt/ccpp-2012-05-17-12:16:26-24145 (102006784 bytes)
xsession_errors: 

backtrace:      Text file, 44289 bytes
build_ids:      Text file, 7544 bytes
dso_list:       Text file, 18465 bytes
maps:           Text file, 82716 bytes

cgroup:
:9:perf_event:/
:8:blkio:/
:7:net_cls:/
:6:freezer:/
:5:devices:/
:4:memory:/
:3:cpuacct,cpu:/
:2:cpuset:/
:1:name=systemd:/user/perobinson/2

core_backtrace:
:8568e11bef79abaf14513d18a8559282d8dad34a 0x610c0 - libglib-2.0.so.0 -
:73777e822e00ca152ffca281ab0ace0cb498ec48 0x7b12 __nptl_deallocate_tsd libpthread.so.0 -
:73777e822e00ca152ffca281ab0ace0cb498ec48 0x7d22 start_thread libpthread.so.0 -
:a4ec59d7fc9c453fb4287d7ebc5fcf6579792e65 0xf199d clone libc.so.6 -

environ:
:SHELL=/bin/bash
:DBUS_STARTER_ADDRESS=unix:abstract=/tmp/dbus-Vj2PpljhfW,guid=226d014a5abdab168cb69a7700000081
:XDG_SESSION_COOKIE=5a3d0f051d91f77357c1162e00000021-1337018694.917044-1013809697
:XDG_RUNTIME_DIR=/run/user/perobinson
:DISPLAY=:0
:DESKTOP_SESSION=gnome
:SSH_AUTH_SOCK=/run/user/perobinson/keyring-Lb1Ikl/ssh
:SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1318,unix/unix:/tmp/.ICE-unix/1318
:WINDOWPATH=1
:PATH=/usr/local/bin:/usr/bin:/bin
:GNOME_DESKTOP_SESSION_ID=this-is-deprecated
:GDMSESSION=gnome
:XDG_VTNR=1
:USERNAME=perobinson
:XDG_SESSION_ID=2
:GPG_AGENT_INFO=/run/user/perobinson/keyring-Lb1Ikl/gpg:0:1
:DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Vj2PpljhfW,guid=226d014a5abdab168cb69a7700000081
:XDG_SEAT=seat0
:XAUTHORITY=/var/run/gdm/auth-for-perobinson-RhNLFz/database
:USER=perobinson
:DBUS_STARTER_BUS_TYPE=session
:GNOME_KEYRING_PID=1314
:SHLVL=1
:GDM_LANG=en_GB.utf8
:PWD=/home/perobinson
:GNOME_KEYRING_CONTROL=/run/user/perobinson/keyring-Lb1Ikl
:LANG=en_GB.utf8
:_=/usr/bin/dbus-launch
:LOGNAME=perobinson
:HOME=/home/perobinson

limits:
:Limit                     Soft Limit           Hard Limit           Units     
:Max cpu time              unlimited            unlimited            seconds   
:Max file size             unlimited            unlimited            bytes     
:Max data size             unlimited            unlimited            bytes     
:Max stack size            8388608              unlimited            bytes     
:Max core file size        0                    unlimited            bytes     
:Max resident set          unlimited            unlimited            bytes     
:Max processes             1024                 29854                processes 
:Max open files            1024                 4096                 files     
:Max locked memory         65536                65536                bytes     
:Max address space         unlimited            unlimited            bytes     
:Max file locks            unlimited            unlimited            locks     
:Max pending signals       29854                29854                signals   
:Max msgqueue size         819200               819200               bytes     
:Max nice priority         0                    0                    
:Max realtime priority     0                    0                    
:Max realtime timeout      unlimited            unlimited            us        

open_fds:
:0:/dev/null
:pos:	0
:flags:	0100002
:1:/dev/null
:pos:	0
:flags:	0100002
:2:/dev/null
:pos:	0
:flags:	0100002
:3:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:4:/dev/null
:pos:	0
:flags:	0100002
:5:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:6:socket:[3155476]
:pos:	0
:flags:	04002
:7:socket:[3155477]
:pos:	0
:flags:	02004002
:8:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:9:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:10:/home/perobinson/.cache/evolution/addressbook/ews___peter.robinson;folderid=AAMkADJjZTAxYjRhLWVkZjAtNDJjYS05MDcxLTNjOWU0ZmQ2ODYwZQAuAAAAAAAzO4pyiRkDTI9C+S1Ne0ifAQC8Bb2hqgRcSJ8OTp9FJA7eAAABWzjoAAA=/contacts.db
:pos:	40
:flags:	02100002
:11:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:12:socket:[3194079]
:pos:	0
:flags:	02004002

Comment 1 Peter Robinson 2012-05-17 11:22:10 UTC
Created attachment 585180 [details]
File: backtrace

Comment 2 Peter Robinson 2012-05-17 11:22:12 UTC
Created attachment 585181 [details]
File: maps

Comment 3 Peter Robinson 2012-05-17 11:22:13 UTC
Created attachment 585182 [details]
File: dso_list

Comment 4 Peter Robinson 2012-05-17 11:22:15 UTC
Created attachment 585183 [details]
File: build_ids

Comment 5 Milan Crha 2012-05-18 06:49:07 UTC
Thanks for a bug report. I do not see from the backtrace why this could happen, it has probably something to do with your EWS account, but the backtrace is missing debug information for it. It crashed due to some memory corruption in one thread, though another thread does something in your EWS account and tries to print a critical warning on the console.

Maybe if you could run the addressbook factory from a console, under valgrind, then it'll show some issues which could happen during your work. The only thing is that any access to the addressbook will be significantly slower. You can run in under valgrind with command like this:
   $ G_SLICE=always-malloc,debug-blocks valgrind --num-callers=50 \
     /usr/libexec/evolution-addressbook-factory -w &>log.txt
and then on other console run evolution. Make sure there will be no other addressbook factory running before you execute the above command. Also make sure that you've installed debuginfo packages at least for evolution-data-server and evolution-ews, and that their version matches version of the binary packages.

I'll appreciate if it'll be done with 3.4.2 version, though you wrote into the update that it locks your account. It'll be good to investigate the reason for it, because it seems to me like a coincidence, because 3.4.2 doesn't contain any significant changes, at least I'm not aware of any in eds,evo,ews which could cause such account locking. Of course, the update requires restart of evolution processes (ps ax | grep evolution), to be sure that the correct binaries are running.

Comment 6 Peter Robinson 2012-05-18 07:01:11 UTC
I'll try with 3.4.2 next week. I'm not strong enough to deal with internal IT for more account lockouts this week :-|

The lack of a decent backtrace is likely because I'm still using your evolution-ews-3.4.1-1.3.fc17 scratch build. Did those fixes for deletion/sync make it into 3.4.2?

Comment 7 Milan Crha 2012-05-18 09:41:22 UTC
(In reply to comment #6)
> I'll try with 3.4.2 next week. I'm not strong enough to deal with internal IT
> for more account lockouts this week :-|
> 
> The lack of a decent backtrace is likely because I'm still using your
> evolution-ews-3.4.1-1.3.fc17 scratch build. Did those fixes for deletion/sync
> make it into 3.4.2?

Yes, that's part of 3.4.2:
http://git.gnome.org/browse/evolution-ews/commit/?h=gnome-3-4&id=2f158e862760

Comment 8 Milan Crha 2012-05-18 09:48:50 UTC
(In reply to comment #6)
> I'll try with 3.4.2 next week. I'm not strong enough to deal with internal IT
> for more account lockouts this week :-|

I see. Do you still use evolution-mapi in parallel? I was told that GAL in evolution-mapi with exchange 2010 servers can lock the account. The problem is that this works fine with 2003 and 2007 servers and that I wasn't able to get any useful information from 2010 server admins about "why the account was locked". Knowing the reason will help in fixing it, though if you see this issue also with evolution-ews, without mapi being involved... Anyway, I'll appreciate if you could ask your IT department for the exact reason for the account being locked. They should know it, or be able to find out in some logs.

Comment 9 Peter Robinson 2012-05-18 10:09:48 UTC
> I see. Do you still use evolution-mapi in parallel? I was told that GAL in
> evolution-mapi with exchange 2010 servers can lock the account. The problem is
> that this works fine with 2003 and 2007 servers and that I wasn't able to get
> any useful information from 2010 server admins about "why the account was
> locked". Knowing the reason will help in fixing it, though if you see this
> issue also with evolution-ews, without mapi being involved... Anyway, I'll
> appreciate if you could ask your IT department for the exact reason for the
> account being locked. They should know it, or be able to find out in some logs.

It's an exchange 2007 server, not sure if or what SP it has. I've cleaned everything out in terms of passwords, killed all existing evolution* processes, upgraded to 3.4.2 and started evolution with "evolution --offline" and then put it online and it hasn't locked out the account once I put it online and it prompted for password. It could well be the GAL stuff that caused the problem because I remember it prompting me for a GAL password and I've never really been able to access the GAL. If it runs OK for the day I'll push up the karma on the update

Comment 10 Peter Robinson 2012-05-18 11:03:41 UTC
Upgrading to 3.4.2 I get two password prompts every time i try to reply to or compose an email. One for my personal contacts on exchange and one for the GAL. 

It also seems that on occasion the evolution-addressbook-factory freezes causing the message window to display the "Formatting Messageā€¦" with a white window. If I quit Evolution you can see the message display momentary before it quits.

Comment 11 Peter Robinson 2012-05-18 11:38:05 UTC
And i'm back to lockouts. It definitely appears to be related to when ever I'm composing email and it's checking GAL

Comment 12 Peter Robinson 2012-05-18 11:38:41 UTC
confirmed it's exchange 2007

Comment 13 Milan Crha 2012-05-18 16:06:45 UTC
(In reply to comment #11)
> And i'm back to lockouts. It definitely appears to be related to when ever I'm
> composing email and it's checking GAL

Are you accessing GAL with evolution-mapi? I understood that you use evolution-ews, and its GAL implementation is way different from that in evolution-mapi. I would say, if you've GAL with evolution-mapi, and you do not use evolution-mapi for anything else, then just disable that account, or uncheck GAL from Edit->Preferences->Contacts for autocompletion.

(In reply to comment #12)
> confirmed it's exchange 2007

Hmm, I never got account lockout on my server (at least yet), though it can be some server policy about often connect/disconnect, server rejecting NSPI connections only (the evo-mapi uses NSPI for GAL directly, there is basically no other Inbox checking or any other folder opening, only the store and NSPI connection is opened) or something (un)like that.

Comment 14 Milan Crha 2012-05-18 16:12:53 UTC
I forgot to mention, this change is in evo-mapi since 3.4.0. Looking on changes in evo-mapi between 3.4.1 and 3.4.2 there are only two possible, one about kerberos login (to not try kerberos when not enabled by a user), and one for GAL named IDs fetching. It seems the later does the trouble here, though the change seems to be pretty harmless, it only fetches named properties from Contacts folder, if they are not found on GAL folder itself (previous version, 3.4.1, only checked in GAL, but later I realized that usually returns nothing, thus I added this fallback).

Comment 15 Peter Robinson 2012-05-18 16:19:35 UTC
(In reply to comment #13)
> (In reply to comment #11)
> > And i'm back to lockouts. It definitely appears to be related to when ever I'm
> > composing email and it's checking GAL
> 
> Are you accessing GAL with evolution-mapi? I understood that you use
> evolution-ews, and its GAL implementation is way different from that in
> evolution-mapi. I would say, if you've GAL with evolution-mapi, and you do not
> use evolution-mapi for anything else, then just disable that account, or
> uncheck GAL from Edit->Preferences->Contacts for autocompletion.

No, this is using my EWS configuration. mapi doesn't work outside our corporate network as it doesn't support HTTP Proxy so it's long been disabled so as to not cause issues. Although looking at the Contacts page it looks like it might be trying to use them based on the naming of the accounts, should it even attempt to use details from a disabled account? It's hard to tell which account it is as it has the email and not the name I've given the account and the email address is obviously the same for the mapi/ews account.

> (In reply to comment #12)
> > confirmed it's exchange 2007
> 
> Hmm, I never got account lockout on my server (at least yet), though it can be
> some server policy about often connect/disconnect, server rejecting NSPI
> connections only (the evo-mapi uses NSPI for GAL directly, there is basically
> no other Inbox checking or any other folder opening, only the store and NSPI
> connection is opened) or something (un)like that.

We have a corporate lock out policy. It's never really caused me an issue before.

Comment 16 Milan Crha 2012-05-21 06:52:49 UTC
(In reply to comment #15)
> No, this is using my EWS configuration. mapi doesn't work outside our
> corporate network as it doesn't support HTTP Proxy so it's long been
> disabled so as to not cause issues. Although looking at the Contacts page it
> looks like it might be trying to use them based on the naming of the
> accounts, should it even attempt to use details from a disabled account?
> It's hard to tell which account it is as it has the email and not the name
> I've given the account and the email address is obviously the same for the
> mapi/ews account.

You might notice from the GAL properties, though there is probably not named the account type. It sometimes could/can happen that account disable didn't remove all the around sources, like in Contacts or Calendar. Try this command:
   $ gconftool-2 --get /apps/evolution/addressbook/sources | grep mapi
it should return nothing, if there is no mapi addres book. It can use information from disabled mail account, because it's a separate source, with the only connection being done by evolution-mapi plugin, otherwise the are basically independent. If you'll find it there, then I usggest to open gconf-editor, open the above named key a remove the mapi GAL book on your own.

> We have a corporate lock out policy. It's never really caused me an issue
> before.

Do you know how that is setup, please (what is the rule, and possible where to find it on the server)? I would try to repeat it here and test what I can do with it.

Comment 17 Peter Robinson 2012-05-23 11:20:50 UTC
>    $ gconftool-2 --get /apps/evolution/addressbook/sources | grep mapi

Returns nothing

> > We have a corporate lock out policy. It's never really caused me an issue
> > before.
> 
> Do you know how that is setup, please (what is the rule, and possible where
> to find it on the server)? I would try to repeat it here and test what I can
> do with it.

It's within Active Directory.

Detailed overview: http://technet.microsoft.com/en-us/library/cc770394%28v=WS.10%29.aspx

Quick GUI ways of enabling it 
http://technet.microsoft.com/en-us/library/dd277400.aspx
http://technet.microsoft.com/en-us/library/cc781491%28v=ws.10%29.aspx

Comment 18 Milan Crha 2012-05-31 14:42:10 UTC
Oh, I'm sorry, I missed your reply, I would comment earlier otherwise.

(In reply to comment #17)
> >    $ gconftool-2 --get /apps/evolution/addressbook/sources | grep mapi
> 
> Returns nothing

Good, that means this is not on MAPI.

> > > We have a corporate lock out policy. It's never really caused me an issue
> > > before.
> > 
> > Do you know how that is setup, please (what is the rule, and possible where
> > to find it on the server)? I would try to repeat it here and test what I can
> > do with it.
> 
> It's within Active Directory.

I see. So you have set locking on failed login attempts. It seems like evolution has stored invalid password for one component, probably addressbook, and it doesn't ask for "correct" version of it, instead repeatedly tries with wrong password until it results in account lock. If you are not using evolution-mapi, then it can be only evolution-ews, I'll test it here and let you know. (Did we move too far from the initial issue here?)

Comment 19 Milan Crha 2012-06-01 08:55:34 UTC
Maybe the account lock is cased by the same issue as bug #821307.

Comment 20 Peter Robinson 2012-06-01 10:18:17 UTC
(In reply to comment #19)
> Maybe the account lock is cased by the same issue as bug #821307.

Could be, reading that and bug #821228 it sounds like some of the issues I've seen where the calendar will prompt for the password (evo isn't running) even though it has the password in the keyring.

I've also seen cases where the email won't render (just displays "formating message") and I have to kill evo with al "evolution --force-shutdown" and then I have to kill evolution-addressbook-factory and then restart evo to get it to render mail. I'm not sure if that's related either.

Comment 21 Milan Crha 2012-06-01 11:42:16 UTC
(In reply to comment #20)
> I've also seen cases where the email won't render (just displays "formating
> message") and I have to kill evo with al "evolution --force-shutdown" and
> then I have to kill evolution-addressbook-factory and then restart evo to
> get it to render mail. I'm not sure if that's related either.

That might be bug #818864

Comment 22 Fedora End Of Life 2013-07-04 00:13:11 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 23 Fedora End Of Life 2013-08-01 03:41:42 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.