Issue 979 - select() hang with V3 referal to V2
Summary: select() hang with V3 referal to V2
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-22 21:13 UTC by raldi@research.netsol.com
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description raldi@research.netsol.com 2001-01-22 21:13:05 UTC
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) 

Comment 1 Kurt Zeilenga 2001-02-03 05:14:53 UTC
moved from Incoming to Software Bugs
Comment 2 Kurt Zeilenga 2001-09-18 20:53:34 UTC
changed notes
changed state Open to Suspended
Comment 3 Kurt Zeilenga 2001-09-18 20:54:52 UTC
changed notes
Comment 4 Kurt Zeilenga 2001-09-18 20:55:03 UTC
changed state Suspended to Closed
Comment 5 Kurt Zeilenga 2002-06-19 01:35:41 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 6 OpenLDAP project 2014-08-01 21:06:55 UTC
See ITS#980