[Pkg-db-devel] Re: libdb*, mutex and threading
Florian Weimer
fw@deneb.enyo.de
Tue, 18 Jan 2005 08:09:01 +0100
* Clint Adams:
>> > > db4.2:
>> > > #232305: libdb4.2: Hangs on SMP (HyperThreaded P4) system using slapd 2.1.25-1
>>
>> > There doesn't seem to be a fix for this? Or did I miss
>> > something?
>>
>> AFAICS, this is fixed with changing configure to never link to pthread,
>> and not using LD_ASSUME_KERNEL.
>
> When is it linking to pthread?
When it detects that POSIX mutexes can cross address spaces, I
believe. If this logic has been overridden (for example, by setting
db_cv_mutex, or by patching configure.ac---which is a must for Debian,
to support 2.4 kernels without NPTL), linking against a threading
library should not occur.