Issue 5953 - slapd seg faults with SASL bind DIGEST-MD5
Summary: slapd seg faults with SASL bind DIGEST-MD5
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.14
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 15:15 UTC by Michael Ströder
Modified: 2014-08-01 21:03 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 Michael Ströder 2009-02-17 15:15:57 UTC
Full_Name: Michael Str�der
Version: 2.4.14
OS: SLES 10
URL: 
Submission from: (NULL) (193.197.158.1)


If /usr/lib/sasl2/slapd.conf is missing 2.4.14 seg faults even though the
authz-regexp configuration is correct in slapd.conf

See GDB information below.

(gdb) info threads
  5 process 4888  0xffffe410 in __kernel_vsyscall ()
  4 process 4889  0xffffe410 in __kernel_vsyscall ()
  3 process 4890  0xffffe410 in __kernel_vsyscall ()
  2 process 4891  0xffffe410 in __kernel_vsyscall ()
* 1 process 4892  0xb7e89c2f in __db_get_flags () from
/appserver/bdb-4.6/lib/libdb-4.6.so

(gdb) thread apply all bt
Thread 5 (process 4888):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d8b5d8 in pthread_join () from /lib/libpthread.so.0
#2  0xb7f356db in ldap_pvt_thread_join (thread=3023272864, thread_return=0x0) at
thr_posix.c:197
#3  0x080773fb in ?? ()
#4  0xb4337ba0 in ?? ()
#5  0x00000000 in ?? ()

Thread 4 (process 4889):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7b5957e in __lll_mutex_lock_wait () from /lib/libc.so.6
#2  0xb7ae4e63 in _L_mutex_lock_41 () from /lib/libc.so.6
#3  0xb4334314 in ?? ()
#4  0xb4334314 in ?? ()
#5  0x00000032 in ?? ()
#6  0x00000021 in ?? ()
#7  0xb7f2611c in ?? () from /appserver/openldap-2.4/lib/liblber-2.4.so.2
#8  0x00000001 in ?? ()
#9  0x0000003c in ?? ()
#10 0xb4335318 in ?? ()
#11 0xb7f2173e in lutil_debug (debug=-1271708908, level=-1212492416,
fmt=0x8139194 "daemon: activity on %d descriptor%s\n") at debug.c:72
Backtrace stopped: frame did not save the PC

Thread 3 (process 4890):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d8e056 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7f357e0 in ldap_pvt_thread_cond_wait (cond=0x81eca6c, mutex=0x81eca54) at
thr_posix.c:277
#3  0xb7f3449b in ldap_int_thread_pool_wrapper (xpool=0x81eca50) at tpool.c:654
#4  0xb7d8a2ab in start_thread () from /lib/libpthread.so.0
#5  0xb7b4da4e in clone () from /lib/libc.so.6

Thread 2 (process 4891):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d8e056 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7f357e0 in ldap_pvt_thread_cond_wait (cond=0x81eca6c, mutex=0x81eca54) at
thr_posix.c:277
#3  0xb7f3449b in ldap_int_thread_pool_wrapper (xpool=0x81eca50) at tpool.c:654
#4  0xb7d8a2ab in start_thread () from /lib/libpthread.so.0
#5  0xb7b4da4e in clone () from /lib/libc.so.6

Thread 1 (process 4892):
#0  0xb7e89c2f in __db_get_flags () from /appserver/bdb-4.6/lib/libdb-4.6.so
#1  0xb7a81385 in ?? () from /usr/lib/sasl2/libsasldb.so
#2  0x082f9570 in ?? ()
#3  0x00000000 in ?? ()
Comment 1 Quanah Gibson-Mount 2009-02-17 20:54:34 UTC
--On Tuesday, February 17, 2009 3:15 PM +0000 michael@stroeder.com wrote:

> Full_Name: Michael Str?der
> Version: 2.4.14
> OS: SLES 10
> URL:
> Submission from: (NULL) (193.197.158.1)
>
>
> If /usr/lib/sasl2/slapd.conf is missing 2.4.14 seg faults even though the
> authz-regexp configuration is correct in slapd.conf

What makes you think this is a bug with OpenLDAP and not cyrus-sasl?

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 2 Howard Chu 2009-02-17 22:52:38 UTC
changed notes
changed state Open to Suspended
Comment 3 Michael Ströder 2009-02-18 09:07:32 UTC
Quanah Gibson-Mount wrote:
> --On Tuesday, February 17, 2009 3:15 PM +0000 michael@stroeder.com wrote:
> 
>> Full_Name: Michael Str?der
>> Version: 2.4.14
>> OS: SLES 10
>> URL:
>> Submission from: (NULL) (193.197.158.1)
>>
>>
>> If /usr/lib/sasl2/slapd.conf is missing 2.4.14 seg faults even though the
>> authz-regexp configuration is correct in slapd.conf
> 
> What makes you think this is a bug with OpenLDAP and not cyrus-sasl?

Hmm, I'm not really sure. But IIRC this didn't happen with OpenLDAP 2.3
which was running on the same machine before. With 2.3 when this file
was missing only this message was sent to syslog: "unable to open
Berkeley db /etc/sasldb2". Today it seg faults.

Ciao, Michael.

Comment 4 Howard Chu 2009-02-18 09:17:06 UTC
michael@stroeder.com wrote:
> Quanah Gibson-Mount wrote:
>> --On Tuesday, February 17, 2009 3:15 PM +0000 michael@stroeder.com wrote:
>>
>>> Full_Name: Michael Str?der
>>> Version: 2.4.14
>>> OS: SLES 10
>>> URL:
>>> Submission from: (NULL) (193.197.158.1)
>>>
>>>
>>> If /usr/lib/sasl2/slapd.conf is missing 2.4.14 seg faults even though the
>>> authz-regexp configuration is correct in slapd.conf
>> What makes you think this is a bug with OpenLDAP and not cyrus-sasl?
>
> Hmm, I'm not really sure. But IIRC this didn't happen with OpenLDAP 2.3
> which was running on the same machine before. With 2.3 when this file
> was missing only this message was sent to syslog: "unable to open
> Berkeley db /etc/sasldb2". Today it seg faults.

What version of BDB was libsasl built with? What version was OpenLDAP built with?
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 5 Michael Ströder 2009-02-18 15:42:12 UTC
hyc@symas.com wrote:
> michael@stroeder.com wrote:
>> Quanah Gibson-Mount wrote:
>>> --On Tuesday, February 17, 2009 3:15 PM +0000 michael@stroeder.com wrote:
>>>
>>>> Full_Name: Michael Str?der
>>>> Version: 2.4.14
>>>> OS: SLES 10
>>>> URL:
>>>> Submission from: (NULL) (193.197.158.1)
>>>>
>>>>
>>>> If /usr/lib/sasl2/slapd.conf is missing 2.4.14 seg faults even though the
>>>> authz-regexp configuration is correct in slapd.conf
>>> What makes you think this is a bug with OpenLDAP and not cyrus-sasl?
>> Hmm, I'm not really sure. But IIRC this didn't happen with OpenLDAP 2.3
>> which was running on the same machine before. With 2.3 when this file
>> was missing only this message was sent to syslog: "unable to open
>> Berkeley db /etc/sasldb2". Today it seg faults.
> 
> What version of BDB was libsasl built with? What version was OpenLDAP built with?

The BDB versions differ but it works when creating
/usr/lib/sasl2/slapd.conf with "auxprop_plugin: slapd".

IIRC it also worked with OpenLDAP 2.3.

Ciao, Michael.

Comment 6 Howard Chu 2009-02-18 23:00:23 UTC
michael@stroeder.com wrote:
> hyc@symas.com wrote:
>> michael@stroeder.com wrote:
>>> Quanah Gibson-Mount wrote:
>>>> --On Tuesday, February 17, 2009 3:15 PM +0000 michael@stroeder.com wrote:
>>>>
>>>>> Full_Name: Michael Str?der
>>>>> Version: 2.4.14
>>>>> OS: SLES 10
>>>>> URL:
>>>>> Submission from: (NULL) (193.197.158.1)
>>>>>
>>>>>
>>>>> If /usr/lib/sasl2/slapd.conf is missing 2.4.14 seg faults even though the
>>>>> authz-regexp configuration is correct in slapd.conf
>>>> What makes you think this is a bug with OpenLDAP and not cyrus-sasl?
>>> Hmm, I'm not really sure. But IIRC this didn't happen with OpenLDAP 2.3
>>> which was running on the same machine before. With 2.3 when this file
>>> was missing only this message was sent to syslog: "unable to open
>>> Berkeley db /etc/sasldb2". Today it seg faults.
>> What version of BDB was libsasl built with? What version was OpenLDAP built with?
>
> The BDB versions differ but it works when creating
> /usr/lib/sasl2/slapd.conf with "auxprop_plugin: slapd".
>
> IIRC it also worked with OpenLDAP 2.3.

Most likely the BDB versions were the same on your 2.3 build. You cannot have 
multiple BDB libraries in the same process (unless you build with symbol 
versioning). This is not an OpenLDAP bug. This ITS will be closed.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 7 Howard Chu 2009-02-18 23:00:55 UTC
changed state Suspended to Closed
Comment 8 OpenLDAP project 2014-08-01 21:03:36 UTC
not ours