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

(ITS#5920) segfault in sockbuf.c



Full_Name: Quanah Gibson-Mount
Version: RE24 01/30/2009
OS: Linux 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (75.111.29.239)


I link postfix against OpenLDAP libraries for its ldap lookups.  With my
previous CVS checkout of RE24 (12/9/2008) there were no problems with this. 
However, I updated to CVS of RE24 as of 1/30/2009, and now the postfix proxymap
binary always segfaults:

Core was generated by `proxymap -t unix -u'.
Program terminated with signal 11, Segmentation fault.
[New process 19154]
#0  0xb7de3836 in ber_sockbuf_ctrl (sb=0x807bfc0, opt=7, arg=0xbf8c9760) at
sockbuf.c:168
168     sockbuf.c: No such file or directory.
        in sockbuf.c
(gdb) bt
#0  0xb7de3836 in ber_sockbuf_ctrl (sb=0x807bfc0, opt=7, arg=0xbf8c9760) at
sockbuf.c:168
#1  0xb7e21eaf in ldap_pvt_tls_inplace (sb=0x807bfc0) at tls2.c:456
#2  0xb7e21f2c in ldap_tls_inplace (ld=0x807ce18) at tls2.c:475
#3  0xb7e22e84 in ldap_start_tls_s (ld=0x807ce18, serverctrls=0x0,
clientctrls=0x0) at tls2.c:922
#4  0x080514aa in dict_ldap_connect (dict_ldap=0x807ca08) at dict_ldap.c:711
#5  0x0805257e in dict_ldap_lookup (dict=0x807ca08, name=0x807cbc8 "*") at
dict_ldap.c:1123
#6  0x0804b590 in proxymap_service (client_stream=0x80799a8,
unused_service=0xbf8cbf6d "proxymap", argv=0xbf8c9f24) at proxymap.c:354
#7  0x0804c5d2 in multi_server_execute (unused_event=1, context=0x80799a8 "") at
multi_server.c:311
#8  0x0805b08d in event_loop (delay=-1) at events.c:1079
#9  0x0804bee0 in multi_server_main (argc=4, argv=0xbf8c9f14, service=0x804b1b0
<proxymap_service>) at multi_server.c:841
#10 0x0804add4 in main (argc=4, argv=0xbf8c9f14) at proxymap.c:651

(gdb) print *sb
$2 = {sb_opts = {lbo_valid = 3, lbo_options = 0, lbo_debug = 0}, sb_iod = 0x0,
sb_fd = -1, sb_max_incoming = 0, sb_trans_needs_read = 0, sb_trans_needs_write =
0}


This is likely related to the recent TLS changes in RE24.