Hi
I experience crashes on SIGHUP with apache/PHP/libcurl
gdb tells me that it happens in ENGINE_cleanup(), and that there are
multiple ENGINE_load_builtin_engines() / Engine_cleanup() calls. One
pair for Apache SSL setup, another pair for libcurl setup.
I have been able to track down the problem to this simple case, that
exhibit a crash on NetBSD-6.0 (openssl version says OpenSSL 1.0.1c 10
May 2012). Note that it does not crash without -lefence.
/* cc -o test -g -lcrypto -L/usr/pkg/lib -lefence test.c */
#include <stdio.h>
#include <openssl/engine.h>
int
main(void)
{
ENGINE_load_builtin_engines();
ENGINE_load_builtin_engines();
ENGINE_cleanup();
return 0;
}
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 1]
0xbb72c1f0 in EVP_PKEY_meth_free () from /lib/libcrypto.so.8
#0 0xbb72c1f0 in EVP_PKEY_meth_free () from /lib/libcrypto.so.8
#1 0xbb73660a in engine_pkey_meths_free () from /lib/libcrypto.so.8
#2 0xbb7752aa in engine_free_util () from /lib/libcrypto.so.8
#3 0xbb737c9c in ENGINE_remove () from /lib/libcrypto.so.8
#4 0xbb737d19 in ?? () from /lib/libcrypto.so.8
#5 0xbb7750ce in ?? () from /lib/libcrypto.so.8
#6 0xbb712f0c in sk_pop_free () from /lib/libcrypto.so.8
#7 0xbb77541e in ENGINE_cleanup () from /lib/libcrypto.so.8
#8 0x080487e5 in main () at test.c:9
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
[email protected]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]