Bug 2251032 - Crash on open/close connections [12.2.0z]
Summary: Crash on open/close connections [12.2.0z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 12.2
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: DS12.2
: dirsrv-12.2
Assignee: LDAP Maintainers
QA Contact: LDAP QA Team
Evgenia Martynyuk
URL:
Whiteboard: sync-to-jira
: 2256589 (view as bug list)
Depends On: 2251031 2256589
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-22 13:13 UTC by thierry bordaz
Modified: 2024-01-23 17:22 UTC (History)
5 users (show)

Fixed In Version: redhat-ds-12-9020020240103111709-1674d574
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2251031
Environment:
Last Closed: 2024-01-23 17:22:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 5924 0 None closed ASAN server build crash when looping opening/closing connections 2023-11-22 13:15:38 UTC
Red Hat Issue Tracker IDMDS-3886 0 None None None 2023-11-22 13:16:10 UTC
Red Hat Issue Tracker IDMDS-4040 0 None None None 2024-01-08 13:58:45 UTC
Red Hat Product Errata RHBA-2024:0379 0 None None None 2024-01-23 17:22:32 UTC

Description thierry bordaz 2023-11-22 13:13:55 UTC
+++ This bug was initially created as a clone of Bug #2251031 +++

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

--- Additional comment from thierry bordaz on 2023-11-22 13:04:42 UTC ---

The bug exist in 12.2 and 12.3

Comment 1 thierry bordaz 2024-01-03 10:48:10 UTC
*** Bug 2256589 has been marked as a duplicate of this bug. ***

Comment 4 Viktor Ashirov 2024-01-16 12:16:07 UTC
================================================== test session starts ===================================================
platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
389-ds-base: 2.2.7-5.module+el9dsrv+21076+0cfa3650
nss: 3.90.0-3.el9_2
nspr: 4.35.0-3.el9_2
openldap: 2.6.2-3.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 206.38s (0:03:26) =======================================

Automated test passed, marking as VERIFIED.

Comment 6 errata-xmlrpc 2024-01-23 17:22:30 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 and enhancement 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:0379


Note You need to log in before you can comment on or make changes to this bug.