Bug 604945 - sendmail local delivery assertion failure when using MatchGECOS=True and nss lookups on ldap
sendmail local delivery assertion failure when using MatchGECOS=True and nss ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: nss_ldap (Show other bugs)
4.8
All Linux
low Severity medium
: rc
: ---
Assigned To: Nalin Dahyabhai
Ondrej Moriš
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-17 00:45 EDT by Jatin Nansi
Modified: 2011-02-16 09:02 EST (History)
8 users (show)

See Also:
Fixed In Version: nss_ldap-253-15.el4
Doc Type: Bug Fix
Doc Text:
The "endpwent" function called ldap query with the NULL handle and the parent process crashed. With this update, the handle is used only if it is valid.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-02-16 09:02:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (390 bytes, patch)
2010-07-09 08:41 EDT, Jaroslav Škarvada
no flags Details | Diff

  None (edit)
Comment 7 Jaroslav Škarvada 2010-07-09 08:37:31 EDT
As it hangs in endpwent I do not recognize this as sendmail fault. The problem is that while closing the ldap connection in endpwent it calls the ldap_result with NULL handle and this call causes the hang. Commenting the endpwent call in sendmail doesn't solve the matter of this problem. I think that it should be fixed in nss_ldap, because it is known problem and there also exists upstream bugzilla for it:

http://bugzilla.padl.com/show_bug.cgi?id=350
Comment 8 Jaroslav Škarvada 2010-07-09 08:41:15 EDT
Created attachment 430663 [details]
Proposed patch

Slightly modified patch from upstream bugzilla. This patch resolves the problem for me. Same patch is used in all later versions of nss_ldap.
Comment 9 Jaroslav Škarvada 2010-07-09 08:46:21 EDT
I propose reassigning this to nss_ldap and using patch from comment 8.
Comment 14 Eva Kopalova 2011-02-09 08:17:10 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The "endpwent" function called ldap query with the NULL handle and the parent process crashed. With this update, the handle is used only if it is valid.
Comment 15 errata-xmlrpc 2011-02-16 09:02:29 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0239.html

Note You need to log in before you can comment on or make changes to this bug.