GlusterD segfaults and crashes on startup when management SSL is enabled. This happens when other peers are down and a socket connection cannot be established to the other peers. Because of a bug in the RPC layer, the transport tries to do a SSL write even when the connection is not established and SSL is not setup. The write leads to a segfault as the SSL context is not created yet. Commit 0b9a6a6(socket: fix segfaults when TLS management connections fail) from Jeff Darcy on master fixes this issue, and needs to be backported.
REVIEW: http://review.gluster.org/10280 (socket: fix segfaults when TLS management connections fail) posted (#1) for review on release-3.6 by Kaushal M (kaushal)
COMMIT: http://review.gluster.org/10280 committed in release-3.6 by Raghavendra Bhat (raghavendra) ------ commit 415f575279d30feccb7436b85121a3a5489fdcf7 Author: Jeff Darcy <jdarcy> Date: Wed Nov 5 22:37:48 2014 -0500 socket: fix segfaults when TLS management connections fail Backport of 0b9a6a6 from master. BUG: 1212684 Change-Id: Iec5410b937af150621b757924836cec638b5eb55 Signed-off-by: Jeff Darcy <jdarcy> Signed-off-by: Kaushal M <kaushal> Reviewed-on: http://review.gluster.org/10280 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Raghavendra Bhat <raghavendra>