Hello,
Occasionally, our application using rabbit-mq c wrapper crashes
while attempting SSL_write. This is usually when the broker server
have be brought down. (self->ssl = 0).
Library may want to protect against such conditions..
#0 0x00007f7af2e4bd04 in SSL_write () from libssl.so.1.0.0
#1 0x00007f7af30828bd in amqp_ssl_socket_send (base=0x7f7ad8010c40, buf=0x7f7af0177010, len=8)
at amqp_openssl.c:89
#2 0x00007f7af307cee0 in amqp_socket_send (self=0x7f7ad8010c40, buf=0x7f7af0177010, len=8)
at amqp_socket.c:208
#3 0x00007f7af307c4f3 in amqp_send_frame (state=0x7f7ad8000aa0, frame=0x7f7ad2bfc7d0)
at amqp_connection.c:517
#4 0x00007f7af307df84 in wait_frame_inner (state=0x7f7ad8000aa0, decoded_frame=0x7f7ad2bfc8f0, timeout=0x7f7ad2bfccf0)
at amqp_socket.c:733
#5 0x00007f7af307e5f7 in amqp_simple_wait_frame_noblock (state=0x7f7ad8000aa0, decoded_frame=0x7f7ad2bfc8f0, timeout=0x7f7ad2bfccf0)
at amqp_socket.c:925
#6 0x00007f7af308229a in amqp_consume_message (state=0x7f7ad8000aa0, envelope=0x7f7ad2bfc9c0, timeout=0x7f7ad2bfccf0, flags=0)
at amqp_consumer.c:154
(gdb) p self
$1 = (struct amqp_ssl_socket_t *) 0x7f7ad8010c40
(gdb) p self->ssl
$2 = (SSL *) 0x0
(gdb) p buf
$3 = (const void *) 0x7f7af0177010