[Pkg-openldap-devel] OpenLDAP upload postponed a bit
Matthijs Möhlmann
matthijs at cacholong.nl
Fri Apr 8 17:56:39 UTC 2011
On Apr 2, 2011, at 6:09 PM, Matthijs Möhlmann wrote:
> On Apr 1, 2011, at 2:25 PM, Mark Cave-Ayland wrote:
>
>> On 01/04/11 10:35, Matthijs Möhlmann wrote:
>>
>>> Hello,
>>>
>>> I'm testing openldap on my pc. ldapsearch hangs when I'm doing a
>>> simple test search.
>>>
>>> This is the strace output:
>>> geteuid() = 1000
>>> getuid() = 1000
>>> open("/home/matthijs/ldaprc", O_RDONLY) = -1 ENOENT (No such file or directory)
>>> open("/home/matthijs/.ldaprc", O_RDONLY) = -1 ENOENT (No such file or directory)
>>> open("ldaprc", O_RDONLY) = -1 ENOENT (No such file or directory)
>>> rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER|SA_RESTART, 0x7feac85401e0}, {SIG_DFL, [], 0}, 8) = 0
>>> futex(0x1e6f2a0, FUTEX_WAIT_PRIVATE, 2, NULL
>>>
>>> The strangest thing is that the ldapsearch used in "make test" works.
>>>
>>> So it has to do with some configuration that I need to find out. I'll won't upload until I
>>> found out what's going on.
>>
>> FWIW I found myself with exactly the same thing when testing packaged builds of 2.4.23 and 2.4.24 for my bug here. I just assumed that I'd managed to mix up some 2.4.23 and 2.4.24 libraries somewhere when building .deb packages, since switching to vanilla source builds seemed to work fine. It does seem that there is something else going on here though.
>>
>> ATB,
>>
>> Mark.
>
> I've checked it with gdb too, and it locks at libraries/libldap/options.c:455
> That is in the function ldap_set_option, still no clue why it is locking there.
>
Hi,
I finally managed to find out what's going on here, in debian we use libldap_r-*. And
we make sure that we have one library available (libldap_r). Somewhere in llibldap_r
there is a locking issue.
I believe this is a bug in OpenLDAP but I need some confirmation:
Quanah:
Can you try the following command to see if it also locks up at your place:
LD_PRELOAD=/path/to/lib/libldap_r-2.4.so.2.7.0 ldapsearch -x
Regards,
Matthijs Möhlmann
More information about the Pkg-openldap-devel
mailing list