I am getting a segmentation fault @ buckets/ssl_buckets.c:237. The problem appears to be that ctx->encrypt.pending is 0x0, so trying to read out of the allocator is trying to access address 0x10, which is seg faulting.
Valgrind stack trace:
==23405== Process terminating with default action of signal 11 (SIGSEGV)
==23405== Access not within mapped region at address 0x10
==23405== at 0xDBB5C54: bio_bucket_write (ssl_buckets.c:237)
==23405== by 0x536F84D: BIO_write (in /usr/lib/libcrypto.so.0.9.8)
==23405== by 0x5085239: ssl23_write_bytes (in /usr/lib/libssl.so.0.9.8)
==23405== by 0x50843F7: ssl23_connect (in /usr/lib/libssl.so.0.9.8)
==23405== by 0x50850C5: ssl23_read (in /usr/lib/libssl.so.0.9.8)
==23405== by 0xDBB6259: ssl_decrypt (ssl_buckets.c:444)
==23405== by 0xDBB2527: common_databuf_prep (buckets.c:316)
==23405== by 0xDBB257B: serf_databuf_read (buckets.c:334)
==23405== by 0xDBB11EB: serf_event_trigger (context.c:818)
==23405== by 0xDBAECB2: serf_handler (http.c:480)
==23405== by 0x42A42A: eventer_epoll_impl_trigger (eventer_epoll_impl.c:244)
==23405== by 0x42A660: eventer_epoll_impl_loop (eventer_epoll_impl.c:353)