From michael.vishchers@7p-group.com Tue Oct 15 11:10:54 2013 From: michael.vishchers@7p-group.com To: openldap-bugs@openldap.org Subject: Re: (ITS#7723) slapd crashes on multi core machines if a search request is *immediately* followed by an unbind Date: Tue, 15 Oct 2013 11:10:53 +0000 Message-ID: <201310151110.r9FBArPr048489@boole.openldap.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8579938361925867396==" --===============8579938361925867396== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable --_004_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_ Content-Type: multipart/alternative; boundary=3D"_000_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_" --_000_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_ Content-Type: text/plain; charset=3D"iso-8859-1" Content-Transfer-Encoding: quoted-printable It is not the client loop that is multithreading but the ldap server. And it is not a misuse of the API but a problem that may be raised by day t=3D o day network problems. I've boiled down the problem to a few simple configurations that work (or b=3D etter, fail ;-) with both 2.4.23 and 2.4.36. A tgz file containing a setup =3D with start script and testclient is attached. It should be sufficient to re=3D produce the fault. The problem occurs only if we use session variable substitution in the rwm =3D overlay, and only if a search is *immediately* (e.g. caused by network loss=3D and client timeout) followed by an unbind. Mit freundlichen Gr=3DFC=3DDFen / Kind regards Michael Vishchers Senior System Engineer 7P Solutions & Consulting AG Calor-Emag-Stra=3DDFe 1 40878 Ratingen Phone : +49-2102-5354-356 Fax : +49-2102-5354-111 Email : michael.vishchers(a)7p-group.com Home : www.7p-group.com Sitz der Gesellschaft: K=3DF6ln Registriergericht: Amtsgericht K=3DF6ln Handelsregister: HRB 32361 Aufsichtsratsvorsitzender: Dr. Kai H=3DF6hmann Vorstand: Jens Harig (Vorsitzender), Dr. Joachim Philippi USt-ID-Nr.: DE197820124 Steuer-Nr.: 215/5917/1764 Eine Bitte: Denken Sie an Ihre Umwelt, bevor Sie diese E-Mail ausdrucken! P Please consider the environment before printing this e-mail Der Inhalt dieser e-Mail ist ausschlie=3DDFlich f=3DFCr den bezeichneten Adre= ss=3D aten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser e-Mail oder d=3D essen Vertreter sein sollten, beachten Sie bitte, dass jede Form der Ver=3DF6= =3D ffentlichung, Vervielf=3DE4ltigung oder Weitergabe des Inhalts dieser e-Mail = =3D unzul=3DE4ssig ist. Wir bitten Sie sofort den Absender zu informieren und die= =3D E-mail zu l=3DF6schen. The information contained in this e-mail is intended solely for the address=3D ee. Access to this e-mail by anyone else is unauthorized. If you are not th=3D e intended recipient, any form of disclosure, reproduction, distribution or=3D any action taken or refrained from in reliance on it, is prohibited and ma=3D y be unlawful. Please notify the sender immediately and destroy this e-mail=3D . --_000_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_ Content-Type: text/html; charset=3D"iso-8859-1" Content-Transfer-Encoding: quoted-printable
It is not the client loop that is multithreading but the ldap server=3D .

And it is not a misuse of the API but a problem that may be raised by day t=3D o day network problems.

I've boiled down the problem to a few simple configurations that work (or b=3D etter, fail ;-) with both 2.4.23 and 2.4.36. A tgz file containing a setup =3D with start script and testclient is attached. It should be sufficient to re=3D produce the fault.

The problem occurs only if we use session variable substitution in the rwm =3D overlay, and only if a search is *immediately* (e.g. caused by network loss=3D and client timeout) followed by an unbind.

Mit freundlichen Gr=3DF= C=3D =3DDFen / Kind regards
Michael Vishchers
Senior System Engineer

7P Solutions & Consulting AG
Calor-Emag-Stra=3DDFe 1
40878 Ratingen

Phone  : +49-2102-5354-356
Fax      : +49-2102-5354-111
Email   : michael.vishchers(a)7p-group.com
Home   : www= .7=3D p-group.com

Sitz der Gesellschaft: K=3DF6ln
Registriergericht: Amtsgericht K=3DF6ln
Handelsregister: HRB 32361
Aufsichtsratsvorsitzender: Dr. Kai H=3DF6hmann
Vorstand: Jens Harig (Vorsitzender), Dr. Joachim Philippi
USt-ID-Nr.: DE197820124
Steuer-Nr.: 215/5917/1764

Eine Bitte: Denken Sie an Ihre Umwelt, bevor Sie=3D diese E-Mail ausdrucken!

P<= =3D /b> Please consider the envir= =3D onment before printing this e-mail

Der Inhalt dieser e-Mail ist ausschlie=3DDFlich f=3DFCr den bezeichneten = Ad=3D ressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser e-Mail oder dessen Vertreter sein sollten, beachten Sie bitte, dass jede F=3D orm der Ver=3DF6ffentlichung, Vervielf=3DE4ltigung oder Weitergabe des Inhalt= s =3D dieser e-Mail unzul=3DE4ssig ist. Wir bitten Sie sofort den Absender zu infor= =3D mieren und die E-mail zu l=3DF6schen.
The information contained in this e-mail is intended solely for the address=3D ee. Access to this e-mail by anyone else is unauthorized. If you are not th=3D e intended recipient, any form of disclosure, reproduction, distribution or=3D any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the se=3D nder immediately and destroy this e-mail.

 

--_000_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_-- --_004_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_ Content-Type: application/x-compressed-tar; name=3D"test_scenario.tgz" Content-Description: test_scenario.tgz Content-Disposition: attachment; filename=3D"test_scenario.tgz"; size=3D2305; creation-date=3D"Tue, 15 Oct 2013 11:09:38 GMT"; modification-date=3D"Tue, 15 Oct 2013 11:09:38 GMT" Content-Transfer-Encoding: base64 H4sIAFX9XFIAA+1a3XPbuBG33UxnjM70vS+dPVqXyIk+SOrrKltu0sTpeTrn3FzSt8y5EAlZbEiA BcjIas4zfeu/3QVI6stO3On5lLaHnz22uAR3F4vFYnepjKnsQgWMUxmJ9s5PAhcx6PXMf8Tmf/PZ 831/4A363U53x/X8rt/fgd5Po846cpVRCbAjhcg+Ne6u+/+jyNbWX8U0Df1WIPjkHmXoBe53ux9d /x7eK9e/O/A7uP7dbr+7A+496vBR/MzXP+JBnIcM2iwL2iJlPA5p2lbBlCW0HQjJWsVnEovLmL1n MaC9MgVccEayq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BpOSPsrBGGs8rJcLieeS96LcXB4OmX0qaoAEprkqU5DFFurFn +U4TxgyNHolc4uPLbuVQ3wdTVqH9jfKJtt0lw2Gr/cr1gWXMroYSlD+OWQLrS7Sutu4bKaCTDC2u sG6TNIZ6Qq9Q2wToWL9v7bqHQDP9YhYtgtadog+h1Wglr7QWMdOMFDyO0H3CCOcazx9jMamrvcJi lEPZ+azjx5UGpjDK0fiwRcgZ183ZGN1tgn43xbsJVm1TmuoudFS447pkuGSoWayPKPTOFfM2zEUQ R9pVFM5ZkRW5eissNGqYSz08iZR+Mb0pI9JugTyy1tKwirHEmGSMUgRHD89wotrnZwlU9WZTK811 Yw75otj3uDf123HNUTdtSyUlVVOYCf4oK+fa+g8O0fX4v+op9xdj7nz/i7XBxvvfvm/f/24F7pO9 3b3g4YNflmnY7h7Z3dkzv7u7O//81Uoyu5XlsNgubun/utv+/lfH7yzq//6gb7//tUX8qO9/3UeX dhyOb3Reta1DDs560VjQ06JyJEXmJTA5dFrtlSbFf/fXrSwsLCwsLCwsLCwsLCwsLCwsLCwsLCws LCwsLCwsLCwsLCwsLO4N/wJ4ZNBaAFAAAA=3D=3D --_004_96779DE2D69B3E4DB46CA3AEAA8C409D8B0DCCRTGMX02intranetlo_-- --===============8579938361925867396==--