https://bugs.openldap.org/show_bug.cgi?id=10330
--- Comment #1 from Michael Kourlas <[email protected]> --- Created attachment 1064 --> https://bugs.openldap.org/attachment.cgi?id=1064&action=edit Test program (LDAP_OPT_CONNECT_ASYNC) This behaviour can also be reproduced without sending any data from the nc server during the TLS negotiation. To reproduce it consistently in this context, I have to configure the test application to use LDAP_OPT_CONNECT_ASYNC. The revised test application hangs with this traceback: > #0 0x00007f16f76b3811 in __GI___libc_read (fd=3, buf=0x34307b73, nbytes=5) > at ../sysdeps/unix/sysv/linux/read.c:26 > #1 0x00007f16f75bd8b9 in sb_debug_read (sbiod=0x342ed440, buf=0x34307b73, > len=5) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/liblber/sockbuf.c:829 > #2 0x00007f16f77ef156 in tlso_bio_read (b=0x342eda70, buf=0x34307b73 "", > len=5) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/tls_o.c:1279 > #3 0x00007f16f6e21ea3 in bread_conv (bio=<optimized out>, data=<optimized > out>, datal=<optimized out>, readbytes=0x7fff73b5d730) > at crypto/bio/bio_meth.c:121 > #4 0x00007f16f6e26047 in bio_read_intern (b=b@entry=0x342eda70, > data=0x34307b73, data@entry=0x6860f6e6, dlen=5, > dlen@entry=18446744073556615239, > readbytes=readbytes@entry=0x7fff73b5d730) at crypto/bio/bio_lib.c:285 > #5 0x00007f16f6e261db in BIO_read (b=0x342eda70, data=0x6860f6e6, > dlen=-152936377) at crypto/bio/bio_lib.c:311 > #6 BIO_read (b=b@entry=0x342eda70, data=data@entry=0x34307b73, > dlen=dlen@entry=5) at crypto/bio/bio_lib.c:303 > #7 0x00007f16f74cae03 in tls_default_read_n (rl=0x342fa270, n=5, > max=<optimized out>, extend=<optimized out>, > clearold=<optimized out>, readbytes=0x7fff73b5d7f8) at > ssl/record/methods/tls_common.c:406 > #8 0x00007f16f74cf51b in tls_get_more_records (rl=0x342fa270) at > ssl/record/methods/tls_common.c:583 > #9 0x00007f16f74c98ea in tls_read_record (rl=0x342fa270, > rechandle=0x342f96b0, rversion=0x342f96b8, type=0x342f96bc "", > data=0x342f96c0, datalen=0x342f96d0, epoch=0x0, seq_num=0x0) at > ssl/record/methods/tls_common.c:1130 > #10 0x00007f16f74c769a in ssl3_read_bytes (ssl=<optimized out>, type=22 > '\026', recvd_type=0x7fff73b5d9c4 "\001", > buf=0x342fc530 "\001", len=4, peek=0, readbytes=0x7fff73b5d9c8) at > ssl/record/rec_layer_s3.c:689 > #11 0x00007f16f74dd5a7 in tls_get_message_header (s=0x342f8a30, mt=<synthetic > pointer>) at ssl/statem/statem_lib.c:1554 > #12 read_state_machine (s=0x342f8a30) at ssl/statem/statem.c:625 > #13 state_machine (s=<optimized out>, server=0) at ssl/statem/statem.c:479 > #14 0x00007f16f77ef5c3 in tlso_session_connect (ld=<optimized out>, > sess=0x342f8a30, name_in=<optimized out>) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/tls_o.c:693 > #15 0x00007f16f77f3bf2 in ldap_int_tls_connect (ld=ld@entry=0x341c0430, > conn=conn@entry=0x341c05d0, > host=host@entry=0x341c0460 "192.168.133.56") > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/tls2.c:425 > #16 0x00007f16f77f41b4 in ldap_int_tls_start (ld=0x341c0430, conn=0x341c05d0, > srv=<optimized out>) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/tls2.c:1179 > #17 0x00007f16f77cb65c in ldap_int_check_async_open (sd=<optimized out>, > ld=0x341c0430) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/open.c:673 > #18 ldap_int_check_async_open (ld=0x341c0430, sd=<optimized out>) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/open.c:645 > #19 0x00007f16f77e0f5b in ldap_send_initial_request (ld=0x341c0430, > msgtype=96, dn=0x4023de "cn=admin,dc=solace,dc=com", > ber=0x341bdd10, msgid=1322) at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/request.c:138 > #20 0x00007f16f77d09b9 in ldap_sasl_bind (ld=0x341c0430, dn=0x4023de > "cn=admin,dc=solace,dc=com", mechanism=0x0, > cred=0x7fff73b5ddf0, sctrls=0x0, cctrls=0x0, msgidp=0x7fff73b5ddec) > at > /usr/src/debug/openldap-2.6.9-1.fc41.x86_64/openldap-2.6.9/libraries/libldap/sasl.c:164 > #21 0x000000000040138d in main () -- You are receiving this mail because: You are on the CC list for the issue.
