Rebuilding unscd from source and running an unstripped binary, we see it
crashing in libc's nsswitch.c:875.

#if __OPTION_EGLIBC_INET
/* Called by nscd and nscd alone.  */
void
__nss_disable_nscd (void (*cb) (size_t, struct traced_file *))
{
# ifdef PTR_MANGLE
  PTR_MANGLE (cb);   <---- NULL ptr deref
# endif
  nscd_init_cb = cb;
  is_nscd = true;

The 'cb' init callback function pointer is apparently optional; the
definition of PTR_DEMANGLE in sysdep.h doesn't say so.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/958305

Title:
  nscd crashed with SIGSEGV in _nss_files_init()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/958305/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to