Issue 7166 - MDB segfault
Summary: MDB segfault
Status: UNCONFIRMED
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: 2012-02-15 13:00 UTC by tomasz.rutkowski@tombas.pl
Modified: 2020-03-20 05:55 UTC (History)
0 users

See Also:


Attachments
ol-bt_full.txt (4.12 KB, text/plain)
2012-02-16 12:03 UTC, tomasz.rutkowski@tombas.pl
Details
ol-bt_threads.txt (2.09 KB, text/plain)
2012-02-16 12:03 UTC, tomasz.rutkowski@tombas.pl
Details
ol-segfault.txt (699 bytes, text/plain)
2012-02-16 12:03 UTC, tomasz.rutkowski@tombas.pl
Details

Note You need to log in before you can comment on or make changes to this issue.
Description tomasz.rutkowski@tombas.pl 2012-02-15 13:00:39 UTC
Full_Name: Tomasz Rutkowski
Version: 2.4.28, 2.4.29
OS: PLD Linux (Th) x86_64 
URL: 
Submission from: (NULL) (91.216.16.90)


back_mdb crashes when it's accessed through back_relay (rwm-suffixmassage
rewrite) for authentication, works normal for search/write however.

relevant part of config:

dn: olcDatabase={1}relay,cn=config
objectClass: olcRelayConfig
objectClass: olcDatabaseConfig
objectClass: olcConfig
objectClass: top
olcDatabase: {1}relay
olcSuffix: dc=tombas,dc=pl
structuralObjectClass: olcRelayConfig
entryUUID: b49ff4ea-4b45-49f6-8c22-68a781a6a5a4
creatorsName: cn=admin,cn=config
createTimestamp: 20120206145349Z
entryCSN: 20120207115116.293644Z#000000#00e#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20120207115116Z

dn: olcOverlay={0}rwm,olcDatabase={1}relay,cn=config
objectClass: olcRwmConfig
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
olcOverlay: {0}rwm
structuralObjectClass: olcRwmConfig
entryUUID: f716d56b-b55d-4873-87b2-67e9c5b707c3
creatorsName: cn=admin,cn=config
createTimestamp: 20120206145428Z
olcRwmRewrite: {0}rwm-suffixmassage ou=accounts,o=tombas
entryCSN: 20120214135243.684294Z#000000#00d#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20120214135243Z


with best regards
Tomasz Rutkowski
Comment 1 Quanah Gibson-Mount 2012-02-15 18:11:32 UTC
--On Wednesday, February 15, 2012 1:00 PM +0000 tomasz.rutkowski@tombas.pl 
wrote:

> Full_Name: Tomasz Rutkowski
> Version: 2.4.28, 2.4.29
> OS: PLD Linux (Th) x86_64
> URL:
> Submission from: (NULL) (91.216.16.90)
>
>
> back_mdb crashes when it's accessed through back_relay (rwm-suffixmassage
> rewrite) for authentication, works normal for search/write however.


Please provide a full backtrace from gdb, with debugging symbols.

--Quanah



--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 2 tomasz.rutkowski@tombas.pl 2012-02-16 12:03:36 UTC
Dnia 2012-02-15, śro o godzinie 10:11 -0800, Quanah Gibson-Mount pisze:
> --On Wednesday, February 15, 2012 1:00 PM +0000 tomasz.rutkowski@tombas.pl 
> wrote:
> 
> > Full_Name: Tomasz Rutkowski
> > Version: 2.4.28, 2.4.29
> > OS: PLD Linux (Th) x86_64
> > URL:
> > Submission from: (NULL) (91.216.16.90)
> >
> >
> > back_mdb crashes when it's accessed through back_relay (rwm-suffixmassage
> > rewrite) for authentication, works normal for search/write however.
> 
> 
> Please provide a full backtrace from gdb, with debugging symbols.
> 

mdb: o=company
relay+rwm: dc=company,dc=pl	-> ou=accounts,o=company

given:
ldapsearch -b dc=company,dc=pl -D \
	uid=user,ou=people,ou=accounts,o=company

works, but:
ldapsearch -b dc=company,dc=pl -D \
	uid=user,ou=people,dc=company,dc=pl

segfaults


with best regards
-- 
Tomasz Rutkowski <tomasz.rutkowski@tombas.pl>
TOMBAS Tomasz Rutkowski
Comment 3 Quanah Gibson-Mount 2012-02-17 01:03:31 UTC
--On Thursday, February 16, 2012 1:03 PM +0100 Tomasz Rutkowski 
<tomasz.rutkowski@tombas.pl> wrote:

> Dnia 2012-02-15, śro o godzinie 10:11 -0800, Quanah Gibson-Mount pisze:
>> --On Wednesday, February 15, 2012 1:00 PM +0000
>> tomasz.rutkowski@tombas.pl  wrote:
>>
>> > Full_Name: Tomasz Rutkowski
>> > Version: 2.4.28, 2.4.29
>> > OS: PLD Linux (Th) x86_64
>> > URL:
>> > Submission from: (NULL) (91.216.16.90)
>> >
>> >
>> > back_mdb crashes when it's accessed through back_relay
>> > (rwm-suffixmassage rewrite) for authentication, works normal for
>> > search/write however.
>>
>>
>> Please provide a full backtrace from gdb, with debugging symbols.


Unfortunately, you optimized your build, which makes backtraces fairly 
useless.  Please rebuild with CFLAGS="-O0 -g" and obtain a new backtrace. 
Thanks!

--Quanah

--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 4 Howard Chu 2012-02-17 01:51:52 UTC
tomasz.rutkowski@tombas.pl wrote:
> --=-KyDwFvnw0ca1u3hWxz7q
> Content-Type: text/plain; charset="UTF-8"
> Content-Transfer-Encoding: quoted-printable
>
> Dnia 2012-02-15, =C5=9Bro o godzinie 10:11 -0800, Quanah Gibson-Mount pisze=
> :
>> --On Wednesday, February 15, 2012 1:00 PM +0000 tomasz.rutkowski@tombas.p=
> l=20
>> wrote:
>> =20
>>> Full_Name: Tomasz Rutkowski
>>> Version: 2.4.28, 2.4.29
>>> OS: PLD Linux (Th) x86_64
>>> URL:
>>> Submission from: (NULL) (91.216.16.90)
>>>
>>>
>>> back_mdb crashes when it's accessed through back_relay (rwm-suffixmassa=
> ge
>>> rewrite) for authentication, works normal for search/write however.
>> =20
>> =20
>> Please provide a full backtrace from gdb, with debugging symbols.
>> =20

In addition, please provide  the config of your mdb database as well. There's 
more modules involved here than just rwm, relay, and mdb and the entire 
combination is relevant. Also, have you verified that the same combination 
using back-bdb/hdb works correctly?

This looks more like an rwm bug to me than a backend bug.
-- 
   -- 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 Quanah Gibson-Mount 2012-02-17 03:18:19 UTC
--On Friday, February 17, 2012 1:52 AM +0000 hyc@symas.com wrote:

> tomasz.rutkowski@tombas.pl wrote:
>> --=-KyDwFvnw0ca1u3hWxz7q
>> Content-Type: text/plain; charset="UTF-8"
>> Content-Transfer-Encoding: quoted-printable
>>
>> Dnia 2012-02-15, =C5=9Bro o godzinie 10:11 -0800, Quanah Gibson-Mount
>> pisze= :
>>> --On Wednesday, February 15, 2012 1:00 PM +0000
>>> tomasz.rutkowski@tombas.p=
>> l=20
>>> wrote:
>>> =20
>>>> Full_Name: Tomasz Rutkowski
>>>> Version: 2.4.28, 2.4.29
>>>> OS: PLD Linux (Th) x86_64
>>>> URL:
>>>> Submission from: (NULL) (91.216.16.90)
>>>>
>>>>
>>>> back_mdb crashes when it's accessed through back_relay
>>>> (rwm-suffixmassa=
>> ge
>>>> rewrite) for authentication, works normal for search/write however.
>>> =20
>>> =20
>>> Please provide a full backtrace from gdb, with debugging symbols.
>>> =20
>
> In addition, please provide  the config of your mdb database as well.
> There's  more modules involved here than just rwm, relay, and mdb and the
> entire  combination is relevant. Also, have you verified that the same
> combination  using back-bdb/hdb works correctly?
>
> This looks more like an rwm bug to me than a backend bug.


Could be related to <http://www.openldap.org/its/index.cgi/?findid=5941> 
and <http://www.openldap.org/its/index.cgi/?findid=6166>

--Quanah



--

Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Comment 6 Quanah Gibson-Mount 2017-03-29 22:26:00 UTC
moved from Incoming to Software Bugs