Comment 6 for bug 997096

Revision history for this message
Kees Bakker (keestux) wrote :

Our configuration is a NIS network with Linux PCs. As soon as I do "rsh" to one of these PCs it triggers a netgroup request and that leads to a segfault in nscd.

This is the stdout of "nscd -d".

Thu 12 Jul 2012 09:16:34 AM CEST - 29485: handle_request: request received (Version = 2) from PID 30398
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: GETFDHST
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: handle_request: request received (Version = 2) from PID 30398
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: GETHOSTBYADDR (172.17.2.127)
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: handle_request: request received (Version = 2) from PID 30398
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: GETFDPW
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: provide access to FD 5, for passwd
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: handle_request: request received (Version = 2) from PID 30398
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: GETFDNETGR
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: provide access to FD 11, for netgroup
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: handle_request: request received (Version = 2) from PID 30398
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: INNETGR (general)
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: Haven't found "general (hamina.tasking.nl,,)" in netgroup cache!
Thu 12 Jul 2012 09:16:34 AM CEST - 29485: Haven't found "general" in netgroup cache!
Segmentation fault

Perhaps this bug has always been present. But now that these extra lines were added in the /etc/nscd.conf (see previous comment) it pops up.

So, indeed the workaround is to remove these extra lines. Or just say "enable-cache netgroup no".