Be sure kgio-monkey links to the same OpenSSL installation your Ruby "openssl" extension is linked to. Linking multiple OpenSSL installations into the same process will lead to segmentation faults.