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

select() hang with V3 referal to V2 (ITS#979)



Full_Name: Mike Schiraldi
Version: 2.0.7, HEAD
OS: RHL 7.0
URL: 
Submission from: (NULL) (216.168.254.240)


Basically, if you force V3, connect to a V3 server, and it refers you to a V2
server,
it hangs. If you start at the V2 server, it correctly gives "protocol not
supported". 

Try

ldapsearch -C -vvv -x -P3 -h ldap.research.netsol.com -s sub -b 
"dc=thecobblershoppe,dc=com" "(mail=marilyn@thecobblershoppe.com)"
"usercertificate;binary"


Note - due to load balancing (one of the ldap.thecobblershoppe.com servers is
OpenLDAP 1.x and another is 2.x) you might have to do it two or three times to
get the hang.

Unfortunately, the backtrace isn't very enlightening:

(gdb) r -C -vvv -x -P3 -h ldap.research.netsol.com -s sub -b 
"dc=thecobblershoppe,dc=com" "(mail=marilyn@thecobblershoppe.com)"
"usercertificate;binary"
Starting program: /home/raldi/src/openldap/HEAD/clients/tools/ldapsearch -C -vvv
-x -P3 -h ldap.research.netsol.com -s sub -b  "dc=thecobblershoppe,dc=com"
"(mail=marilyn@thecobblershoppe.com)" "usercertificate;binary"
ldap_init( ldap.research.netsol.com, 0 )
filter: (mail=marilyn@thecobblershoppe.com)
requesting: usercertificate;binary 
version: 2

#
# filter: (mail=marilyn@thecobblershoppe.com)
# requesting: usercertificate;binary 
#

# search reference
ref: ldap://ldap.thecobblershoppe.com:389/dc=thecobblershoppe,dc=com

[hang]

Program received signal SIGINT, Interrupt.
0x401f8bfe in __select () from /lib/libc.so.6
(gdb) n
Single stepping until exit from function __select, 
which has no line number information.

[still hanging]

Program received signal SIGINT, Interrupt.
0x401f8bfe in __select () from /lib/libc.so.6
(gdb) bt
#0  0x401f8bfe in __select () from /lib/libc.so.6
#1  0x0 in ?? ()
(gdb)