Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-1192

glibc: nscd aborts with failed assert in prune_cache

    • glibc-2.28-239.el8
    • None
    • Moderate
    • ZStream
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 11
    • 13
    • 1
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Approved Blocker
    • Bug Fix
    • Hide
      .`ncsd` no longer fails to start due to inconsistent cache expiry information

      Previously, the `glibc` Name Service Switch Caching Daemon (`nscd`) could fail to start due to inconsistent cache expiry information in the persistent cache file. With this update, `ncsd` now marks cache entries with inconsistent timing information for deletion and skips them. As a result, `ncsd` no longer fails to start due to inconsistent cache expiry information.
      Show
      .`ncsd` no longer fails to start due to inconsistent cache expiry information Previously, the `glibc` Name Service Switch Caching Daemon (`nscd`) could fail to start due to inconsistent cache expiry information in the persistent cache file. With this update, `ncsd` now marks cache entries with inconsistent timing information for deletion and skips them. As a result, `ncsd` no longer fails to start due to inconsistent cache expiry information.
    • Done
    • None

      Description of problem:

      NSCD exits with ABRT when reading `passwd` cache.

      Version-Release number of selected component (if applicable):
      glibc-2.28-189.1.el8.x86_64

      How reproducible:
      always

      Steps to Reproduce:
      1. start nscd
      2. ABRT almost immediately

      Actual results:
      strace shows :

      [pid 219045] write(2</dev/null>, "nscd: cache.c:426: prune_cache: Assertion `dh->usable' failed.\n", 63) = 63

      Expected results:
      runs without error

      Additional info:

      Debug output (actual IDs redacted for safety / confidentiality) :

      Mon 26 Jun 2023 06:55:18 PM EDT - 452466: Reloading "<redacted>" in user database cache!
      Mon 26 Jun 2023 06:55:18 PM EDT - 452466: Reloading "<redacted>" in user database cache!
      Mon 26 Jun 2023 06:55:18 PM EDT - 452466: Reloading "<redacted>" in user database cache!
      Mon 26 Jun 2023 06:55:18 PM EDT - 452466: Reloading "<redacted>" in user database cache!
      nscd: cache.c:426: prune_cache: Assertion `dh->usable' failed.

      Back trace :

      #0 0x00007fd2d11336cc in __nscd_get_map_ref () from /lib64/libc.so.6
      #1 0x00007fd2d112fa7a in nscd_getpw_r () from /lib64/libc.so.6
      #2 0x00007fd2d112feac in __nscd_getpwuid_r () from /lib64/libc.so.6
      #3 0x00007fd2d10c6dbf in getpwuid_r@@GLIBC_2.2.5 () from /lib64/libc.so.6
      #4 0x00007fd2d17d0976 in pam_modutil_getpwuid () from /lib64/libpam.so.0
      #5 0x00007fd2cdd8cb12 in pam_sm_authenticate () from /usr/lib64/security/pam_succeed_if.so
      #6 0x00007fd2d17ca7b4 in _pam_dispatch () from /lib64/libpam.so.0
      #7 0x00005630c43259a3 in cron_close_pam ()
      #8 0x00005630c43251cf in do_command ()
      #9 0x00005630c4324170 in job_runqueue ()
      #10 0x00005630c432193c in main ()

      bt full attached.

              fweimer@redhat.com Florian Weimer
              jira-bugzilla-migration RH Bugzilla Integration
              Florian Weimer Florian Weimer
              Martin Coufal Martin Coufal
              Votes:
              0 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: