Description of problem: Sendmail segfaults when attempting to route mail using LDAP. This problem happens every time. It does work under Red Hat 8. Version-Release number of selected component (if applicable): * sendmail-8.12.10-1 * OS is RHEL 3ES. * OpenLDAP server runs 2.1.22 * Works with RH 8 and sendmail-8.12.8-9.80 How reproducible: Can reproduce every time. Steps to Reproduce: 1. Enable ldap mail routing in sendmail using the default sendmail schema / routing rules. 2. Send a test message to an address in your ldap database. 3. Run ltrace on the process accepting the incoming message and watch the output to see that the segfault comes after the ldapbind. Actual results: When submitting the message using telnet, the connection is immediately closed after inputing the "rcpt to:" line. A ltrace (or strace) on the process accepting the email shows the process terminating with a segmentation fault. Non-LDAP based mail routing works fine. Expected results: LDAP bind should succeed. Mail should be routed for valid users. Notification should be given to the sending client when an invalid "rcpt to:" line is entered. Additional info:
Here are the last few lines of an ltrace showing the sendmail process accepting an incoming message seg faulting: malloc(16) = 0x08167868 memset(0x08167868, '\000', 16) = 0x08167868 strlen("ldap.nodak.edu\233389\233\23314940") = 25 malloc(26) = 0x0816d180 strcpy(0x0816d180, "ldap.nodak.edu\233389\233\23314940") = 0x0816d180 __sigsetjmp(0xbffec494, 0, 1, 389, 155) = 0 free(0x0816d228) = <void> ldap_init(0x081207b8, 389, 0, 0, 0) = 0x0816e560 ldap_set_option(0x0816e560, 2, 0x08122cc4, 0x080fb40c, 0x0816e560) = 0 ldap_set_option(0x0816e560, 8, 0, 0x080fb40c, 0x0816e560) = 0 ldap_set_option(0x0816e560, 3, 0x08122ccc, 0x080fb40c, 0x0816e560) = 0 ldap_set_option(0x0816e560, 4, 0x08122cc8, 0x080fb40c, 0x0816e560) = 0 ldap_set_option(0x0816e560, 9, 1, 0x080fb40c, 0x0816e560) = 0 ldap_bind_s(0x0816e560, 0, 0, 128, 0 <unfinished ...> --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++
I see a number of folks joined the CC list. Is anybody at RH working on this? Is it known to be working anywhwere? This problem occurs for me every time and I have an almost identical configuration running under RH 8 that works fine. I think this is a bug, not a configuration error.
Please be assured that we are working on it, however, please realize the some of this involves internal discussion and not all comments are visible. Thanks, Jp
Please have a look at: http://people/twoerner/RPMS/3.0E/sendmail-8.12.10-6.i386.rpm http://people/twoerner/RPMS/3.0E/sendmail-cf-8.12.10-6.i386.rpm http://people/twoerner/RPMS/3.0E/sendmail-debuginfo-8.12.10-6.i386.rpm http://people/twoerner/RPMS/3.0E/sendmail-devel-8.12.10-6.i386.rpm http://people/twoerner/RPMS/3.0E/sendmail-doc-8.12.10-6.i386.rpm http://people/twoerner/SRPMS/3.0E/sendmail-8.12.10-6.src.rpm This package should fix your problem.
Thomas, Will the packages you listed in comment #12 be released as an errata package to the relevant RHN channels? FYI, I also found that replacing the openldap-* packages shipped by red hat with openldap 2.1.22 packages fixes the sendmail ldap routing problem as well.
I've been running the packages listed in comment #12 in production for the last 36 hours or so and they are doing just fine.
Please have a look at the following packages. This is a new bug-fix version (8.12.11 and fixed Sendmail.conf for SASL): http://people.redhat.com/twoerner/SRPMS/3.0E/sendmail-8.12.11-3.src.rpm http://people.redhat.com/twoerner/RPMS/3.0E/sendmail-8.12.11-3.i386.rpm http://people.redhat.com/twoerner/RPMS/3.0E/sendmail-cf-8.12.11-3.i386.rpm http://people.redhat.com/twoerner/RPMS/3.0E/sendmail-devel-8.12.11-3.i386.rpm http://people.redhat.com/twoerner/RPMS/3.0E/sendmail-doc-8.12.11-3.i386.rpm
The package (#34) will be in the next update.
*** Bug 118234 has been marked as a duplicate of this bug. ***
Thomas, The link provided at: http://people.redhat.com/twoerner/SRPMS/3.0E/sendmail-8.12.11 -3.src.rpm does not contain the SRPM package. Can you please correct?
DONE.
I have the same problem with my RHEL 2.1 server (trying to enable LDAP Aliases etc). Sendmail SEGV's after the RCPT TO: envelope header. I must admit however that I'm using a rebuild of the RHL 7.3 sendmail RPM on this server though. The main reason for that was to get SSL support as the original RHEL 2.1 sendmail didn't link to OpenSSL. Is there a build of sendmail-8.12.11 available for RHEL 2.1?