Bug 2251259 - ns-slapd crash in slapi_attr_basetype [11.8.0z]
Summary: ns-slapd crash in slapi_attr_basetype [11.8.0z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: 389-ds-base
Version: 11.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: dirsrv-11.8
Assignee: LDAP Maintainers
QA Contact: LDAP QA Team
Evgenia Martynyuk
URL:
Whiteboard: sync-to-jira
Depends On: 2251257 2253498 2256594
Blocks: 2265542
TreeView+ depends on / blocked
 
Reported: 2023-11-23 17:04 UTC by thierry bordaz
Modified: 2024-02-22 15:54 UTC (History)
5 users (show)

Fixed In Version: redhat-ds-11-8090020231206112255.91529cd0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2251257
: 2265542 (view as bug list)
Environment:
Last Closed: 2024-01-09 09:05:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 5984 0 None closed Crash when paged result search are abandoned 2023-11-23 17:04:03 UTC
Red Hat Issue Tracker IDMDS-3904 0 None None None 2023-11-23 17:08:01 UTC
Red Hat Product Errata RHBA-2024:0088 0 None None None 2024-01-09 09:05:58 UTC

Description thierry bordaz 2023-11-23 17:04:04 UTC
+++ This bug was initially created as a clone of Bug #2251257 +++

Description of problem:
Directory crashes with that backtrace
(gdb) where
#0  0x00007f5d7cc88008 in slapi_attr_basetype () at /usr/lib64/dirsrv/libslapd.so.0
#1  0x00007f5d7cd2c033 in vattr_map_lookup () at /usr/lib64/dirsrv/libslapd.so.0
#2  0x00007f5d7cd2d4d8 in vattr_map_namespace_sp_getlist () at /usr/lib64/dirsrv/libslapd.so.0
#3  0x00007f5d7cd2d601 in vattr_test_filter () at /usr/lib64/dirsrv/libslapd.so.0
#4  0x00007f5d7ccb0c26 in slapi_vattr_filter_test_ext_internal () at /usr/lib64/dirsrv/libslapd.so.0
#5  0x00007f5d7ccb0d34 in slapi_vattr_filter_test_ext_internal () at /usr/lib64/dirsrv/libslapd.so.0
#6  0x00007f5d7ccb0b77 in slapi_vattr_filter_test_ext_internal () at /usr/lib64/dirsrv/libslapd.so.0
#7  0x00007f5d7ccb1a3a in slapi_vattr_filter_test_ext () at /usr/lib64/dirsrv/libslapd.so.0
#8  0x00007f5d6c14208f in ldbm_back_next_search_entry_ext (pb=0x7f5cda200000, use_extension=0) at ldap/servers/slapd/back-ldbm/ldbm_search.c:1770
#9  0x00007f5d7ccdc34c in send_results_ext.constprop () at /usr/lib64/dirsrv/libslapd.so.0
#10 0x00007f5d7ccddef9 in op_shared_search () at /usr/lib64/dirsrv/libslapd.so.0
#11 0x00005648bc987c33 in do_search (pb=pb@entry=0x7f5cda200000) at ldap/servers/slapd/search.c:388
#12 0x00005648bc974c04 in connection_dispatch_operation (pb=0x7f5cda200000, op=<optimized out>, conn=<optimized out>) at ldap/servers/slapd/connection.c:675
#13 0x00005648bc974c04 in connection_threadmain (arg=<optimized out>) at ldap/servers/slapd/connection.c:1803
#14 0x00007f5d796f98f8 in _pt_root (arg=0x7f5d18376140) at ../../.././nspr/pr/src/pthreads/ptthread.c:201
#15 0x00007f5d790941ca in start_thread (arg=<optimized out>) at pthread_create.c:479
#16 0x00007f5d7b33ee73 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95


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


How reproducible:
See upstream ticket reproducible testcase https://github.com/389ds/389-ds-base/issues/5984

Actual results:
Server crash

Expected results:
Should not crash

Comment 6 Viktor Ashirov 2023-12-18 09:55:40 UTC
============================================================= test session starts =============================================================
platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/libexec/platform-python
cachedir: dirsrvtests/.pytest_cache
389-ds-base: 1.4.3.37-8.module+el8dsrv+20865+9b2054cd
nss: 3.90.0-3.el8_8
nspr: 4.35.0-1.el8_8
openldap: 2.4.46-18.el8
cyrus-sasl: 2.1.27-6.el8_5
FIPS: disabled
rootdir: /root/ds/dirsrvtests, inifile: pytest.ini
collected 1 item

dirsrvtests/tests/suites/ds_logs/ds_logs_test.py::test_missing_backend_suffix PASSED                                                    [100%]

========================================================== 1 passed in 40.69 seconds ==========================================================

Marking as VERIFIED.

Comment 7 Viktor Ashirov 2023-12-18 10:19:07 UTC
Ignore the previous comment, correct output is

============================================================= test session starts =============================================================
platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/libexec/platform-python
cachedir: dirsrvtests/.pytest_cache
389-ds-base: 1.4.3.37-8.module+el8dsrv+20865+9b2054cd
nss: 3.90.0-3.el8_8
nspr: 4.35.0-1.el8_8
openldap: 2.4.46-18.el8
cyrus-sasl: 2.1.27-6.el8_5
FIPS: disabled
rootdir: /root/ds/dirsrvtests, inifile: pytest.ini
collected 1 item

dirsrvtests/tests/suites/paged_results/paged_results_test.py::test_search_stress_abandon PASSED                                         [100%]

========================================================= 1 passed in 319.55 seconds ==========================================================

Comment 9 errata-xmlrpc 2024-01-09 09:05:56 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:11 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:0088


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