#50853 Segmentation fault on deleting entry in cn=config
Closed: wontfix by mreynolds. Opened by vashirov.

Issue Description

After 38fe768 server crashes when an entry is deleted in cn=config. For example in suites/disk_monitoring/disk_monitoring_test.py::test_valid_operations_are_permitted

Package Version and Platform

1.4.3.2-20200124git38fe768.fc31

Steps to reproduce

Do an ldapmodify with the following LDIF:

dn: cn=config
changetype: modify
delete: nsslapd-listenhost
-

Actual results

(gdb) bt
#0  0x0000000000000000 in ??? ()
#1  0x00007fb5d8341dda in config_set
    (attr=attr@entry=0x7fb544c0c100 "nsslapd-listenhost", values=values@entry=0x0, errorbuf=errorbuf@entry=0x7fb5597fb920 "", apply=apply@entry=0)
    at ldap/servers/slapd/libglobs.c:7957
#2  0x00007fb5d83128cc in modify_config_dse
    (pb=<optimized out>, entryBefore=<optimized out>, e=0x7fb544c30240, returncode=0x7fb5597fb8e0, returntext=0x7fb5597fb920 "", arg=<optimized out>)
    at ldap/servers/slapd/configdse.c:449
#3  0x00007fb5d831ca9a in dse_call_callback
    (pb=pb@entry=0x7fb544bff000, operation=operation@entry=8, flags=flags@entry=1, entryBefore=entryBefore@entry=0x7fb544c300c0, entryAfter=entryAfter@entry=0x7fb544c30240, returncode=0x7fb5597fb8e0, returntext=0x7fb5597fb920 "", pdse=<optimized out>) at ldap/servers/slapd/dse.c:2640
#4  0x00007fb5d831f095 in dse_modify (pb=0x7fb544bff000) at ldap/servers/slapd/dse.c:1858
#5  0x00007fb5d8354e27 in op_shared_modify (pb=pb@entry=0x7fb544bff000, pw_change=pw_change@entry=0, old_pw=0x0) at ldap/servers/slapd/modify.c:1021
#6  0x00007fb5d8355e6f in do_modify (pb=pb@entry=0x7fb544bff000) at ldap/servers/slapd/modify.c:380
#7  0x000056124058fde0 in connection_dispatch_operation (pb=0x7fb544bff000, op=0x7fb5d46ac000, conn=0x7fb55f33e100) at ldap/servers/slapd/connection.c:638
#8  connection_threadmain () at ldap/servers/slapd/connection.c:1767
#9  0x00007fb5d7ea0b34 in _pt_root (arg=0x7fb5d6c3fc40) at ../../.././nspr/pr/src/pthreads/ptthread.c:201
#10 0x00007fb5d7e334e2 in start_thread () at /lib64/libpthread.so.0
#11 0x00007fb5d81be693 in clone () at /lib64/libc.so.6

Expected results

Server should not crash.


Metadata Update from @mreynolds:
- Issue assigned to mreynolds

https://pagure.io/389-ds-base/pull-request/50854

Metadata Update from @mreynolds:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None

Metadata Update from @mreynolds:
- Issue set to the milestone: 1.4.3

Commit 9b779ed8 relates to this ticket

Metadata Update from @mreynolds:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/3907

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

Metadata
Related Pull Requests