This is with xfce4-session 4.11.1git_2fb1b8f If I do something that probably shouldn't be done (heh), xfce4-session (I think) segfaults on startup: export GPG_AGENT_INFO="$HOME/.gnupg/S.gpg-agent" in any user-specific profile script causes this. The reason I did this is attempting to work around a bug in claws-mail's handling of newer gnupg-2.1.x: http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3337
Do you need to have a gpg-agent running to cause the crash ? Is there a backtrace/coredump ?
Aha. It's because xfce4-session/xfsm-startup.c expects the path to the socket, pid of the agent process, and the agent protocol version (which is *exactly* what it used to be), but I'm setting GPG_AGENT_INFO with only the socket path, so probably xfsm_gpg_agent_pid() is unhappy. As I said, this is something that probably shouldn't be done, and so I'm not convinced that an attempt should be made to "fix" it in xfce. The real problem is in claws-mail, I think, but they don't seem to agree :/ I peeked into the code there, and it looks trivial enough to make it work with *only* new gnupg-2.1.x, but not as trivial to make it work with either, as there's no good way to find out what version of gnupg2 is in use on the system (or at least, I'm not aware of one). Anyway, that discussion is out of scope here, so bah. For the time being, I'll just wrap my claws-mail invocation in a script to set the agent info in its environment and hope the claws devs change their mind.
Sorry, forgot to change the bug status.
Hm.... i still think it's a valid bug, because xfce4-session should gracefully handle invalid env vars and do the right thing instead of crashing.. no ?
Well, that's a legitimate argument. I'll leave that decision for someone else to make. Reopened.
I upgraded to gnupg-2.1.2 but can't get xsfm to crash. Can you post a list of steps to reproduce?
I'm not sure if it will still crash or not, but at this point, the ugly hack I was using isn't needed since claws-mail handles newer gnupg2 just fine. I'm closing this as INVALID :-)