URL:
https://github.com/SSSD/sssd/pull/89
Title: #89: nss: rewrite nss responder so it uses cache_req
lslebodn commented:
"""
There is also a crash for group enumeration
```
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [cache_req_search_done] (0x0400): CR #0: Returning
updated object [Groups enumeration]
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [cache_req_create_and_add_result] (0x0400): CR #0:
Found 1 entries in domain LDAP
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [cache_req_done] (0x0400): CR #0: Finished:
Success
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [nss_protocol_done] (0x4000): Sending reply:
success
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [sss_dp_req_destructor] (0x0400): Deleting request:
[0x7fc44877b5c0:2:*@LDAP]
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [nss_setent_timeout] (0x0400): Enumeration result
object has expired.
(Wed Nov 30 09:22:36 2016) [sssd[nss]] [talloc_log_fn] (0x0010): Bad talloc magic value -
unknown value
```
UPDATE: The crash is cause by `enum_cache_timeout = 0` in nss section
```
[nss]
debug_level = 0xFFFF
memcache_timeout = 0
# FIXME Remove once Bug 996610 is fixed
enum_cache_timeout = 0
```
and valgrind error:
```
==15177== Process terminating with default action of signal 6 (SIGABRT)
==15177== at 0x32BEE32495: raise (raise.c:64)
==15177== by 0x32BEE33C74: abort (abort.c:92)
==15177== by 0x32C0E0248B: talloc_abort (talloc.c:399)
==15177== by 0x32C0E0A5E7: talloc_check_name (talloc.c:417)
==15177== by 0x408177: nss_setent_timeout (nss_enum.c:199)
==15177== by 0x32C4E08CC0: tevent_common_loop_timer_delay (tevent_timed.c:341)
==15177== by 0x32C4E09D01: epoll_event_loop_once (tevent_epoll.c:911)
==15177== by 0x32C4E08335: std_event_loop_once (tevent_standard.c:114)
==15177== by 0x32C4E03C3C: _tevent_loop_once (tevent.c:533)
==15177== by 0x32C4E03CBA: tevent_common_loop_wait (tevent.c:637)
==15177== by 0x32C4E082A5: std_event_loop_wait (tevent_standard.c:140)
==15177== by 0x32C564AEB2: server_loop (server.c:705)
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/89#issuecomment-264900328