Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2251031

Summary: Crash on open/close connections [12.3.0z]
Product: Red Hat Directory Server Reporter: thierry bordaz <tbordaz>
Component: 389-ds-baseAssignee: LDAP Maintainers <idm-ds-dev-bugs>
Status: CLOSED ERRATA QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: unspecified Docs Contact: Evgenia Martynyuk <emartyny>
Priority: medium    
Version: 12.2CC: idm-ds-dev-bugs, musoni, vashirov
Target Milestone: DS12.3Keywords: Triaged, ZStream
Target Release: dirsrv-12.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: 389-ds-base-2.3.6-7.module+el9dsrv+20809+3c18e0b0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2251032 2256589 (view as bug list) Environment:
Last Closed: 2024-01-23 17:24:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2251032, 2256589    

Description thierry bordaz 2023-11-22 13:03:04 UTC
Description of problem:
When the connection slot reach the end of the connection table,a ASAN build crash with a buffer overflow.

Version-Release number of selected component (if applicable):
RHDS 12.2 and 12.3


How reproducible:

The upstream ticket contains a testcase https://github.com/389ds/389-ds-base/issues/5924

Actual results:
Asan build should not crash

Expected results:
Asan build should not crash

Comment 1 thierry bordaz 2023-11-22 13:04:42 UTC
The bug exist in 12.2 and 12.3

Comment 7 Viktor Ashirov 2024-01-16 08:53:57 UTC
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.9.18, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
389-ds-base: 2.3.6-8.module+el9dsrv+20821+6bc979c1
nss: 3.90.0-3.el9_2
nspr: 4.35.0-3.el9_2
openldap: 2.6.3-1.el9
cyrus-sasl: not installed
FIPS: disabled
rootdir: /mnt/tests/rhds/install/ds/dirsrvtests, configfile: pytest.ini
collected 4 items

dirsrvtests/tests/suites/basic/basic_test.py::test_conn_limits[1] PASSED                                                                                                               [ 25%]
dirsrvtests/tests/suites/basic/basic_test.py::test_conn_limits[2] PASSED                                                                                                               [ 50%]
dirsrvtests/tests/suites/basic/basic_test.py::test_conn_limits[3] PASSED                                                                                                               [ 75%]
dirsrvtests/tests/suites/basic/basic_test.py::test_conn_limits[4] PASSED                                                                                                               [100%]

========================================================================= 4 passed, 20 warnings in 210.81s (0:03:30) =========================================================================

Automated test passed, marking as VERIFIED.

Comment 9 errata-xmlrpc 2024-01-23 17:24:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (redhat-ds:12 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:0380