[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#6221) slapd segfault in SSL_CTX_set_info_callback



I tried re-compiling with CC="gcc -g" and got the following backtrace
from gdb:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1]
0xd26d07d0 in SSL_CTX_set_info_callback ()

from /LDAP/build/openldap-2.4.16/libraries/libldap_r/.libs/libldap_r.a(libldap_r-2.4.so.2)
(gdb) bt
#0  0xd26d07d0 in SSL_CTX_set_info_callback ()

from /LDAP/build/openldap-2.4.16/libraries/libldap_r/.libs/libldap_r.a(libldap_r-2.4.so.2)
#1  0xd26cdedc in tlso_ctx_init (lo=0x200c087c, lt=0x2ff22970,
is_server=1) at tls_o.c:320
#2  0xd26ca50c in ldap_int_tls_init_ctx (lo=0x200c087c, is_server=1) at
tls2.c:245
#3  0xd26cc1cc in ldap_pvt_tls_set_option (ld=0x200c0878, option=24591,
arg=0x2ff22ae8) at tls2.c:800
#4  0x10001f90 in main (argc=9, argv=0x2ff22b94) at main.c:826

This one seems much more useful from a debugging perspective.

I noticed that the configure program has some options along the lines of
"--with-PIC" which defaults to "both PIC and non-PIC".  Could I use this
to help debug the issue perhaps?  How would I use it (not sure what
options it takes).

Thanks,
Steve