[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problem on RedHat Enterprise v3.0 AS Update 1 when using NPTL

Title: Problem on RedHat Enterprise v3.0 AS Update 1 when using NPTL

If I set LD_ASSUME_KERNEL=2.4.1, to force use of LinuxThreads, everything is fine.

If I don't, so I'm running under NPTL, I see crashes like this:

#0  0xb7ff468c in do_lookup () from /lib/ld-linux.so.2
#1  0xb7ff33f3 in _dl_lookup_symbol_internal () from /lib/ld-linux.so.2
#2  0xb712c7fa in do_dlsym () from /lib/tls/libc.so.6
#3  0xb7ff7b56 in _dl_catch_error_internal () from /lib/ld-linux.so.2
#4  0xb712c6b8 in __libc_dlsym () from /lib/tls/libc.so.6
#5  0xb710a81c in __nss_lookup_function () from /lib/tls/libc.so.6
#6  0xb710a4cf in __nss_lookup () from /lib/tls/libc.so.6
#7  0xb710c0b9 in __nss_hosts_lookup () from /lib/tls/libc.so.6
#8  0xb710ddaf in gethostbyname_r@@GLIBC_2.1.2 () from /lib/tls/libc.so.6
#9  0xaf75528b in ldap_pvt_gethostbyname_a (name=0x804a528 "pc1848", resbuf=0xbffe1500, buf=0xbffe14e0, result=0xbffe14e4,

    herrno_ptr=0xbffe14e8) at util-int.c:135
#10 0xaf75156a in ldap_connect_to_host (ld=0x804a100, sb=0x804a068, proto=1, host=0x804a528 "pc1848", port=389, async=0)

    at os-ip.c:449
#11 0xaf741b3c in ldap_int_open_connection (ld=0x804a100, conn=0x804a1d8, srv=0x804a538, async=0) at open.c:289
#12 0xaf74f75c in ldap_new_connection (ld=0x804a100, srvlist=0x804a538, use_ldsb=1, connect=1, bind=0x0) at request.c:331

#13 0xaf741676 in ldap_open_defconn (ld=0x804a100) at open.c:38
#14 0xaf74f3a1 in ldap_send_initial_request (ld=0x804a100, msgtype=96, dn=0xbffe1b90 "cn=sysadmin,ou=DC-Mailbox,o=MailServer",

    ber=0x804a430, msgid=1) at request.c:106
#15 0xaf746e00 in ldap_sasl_bind (ld=0x804a100, dn=0xbffe1b90 "cn=sysadmin,ou=DC-Mailbox,o=MailServer", mechanism=0x0,
    cred=0xbffe1690, sctrls=0x0, cctrls=0x0, msgidp=0xbffe168c) at sasl.c:157
#16 0xaf747609 in ldap_simple_bind (ld=0x804a100, dn=0xbffe1b90 "cn=sysadmin,ou=DC-Mailbox,o=MailServer", passwd=0xbffe1b19 "")

    at sbind.c:90

(In this particular example I have changed the defines to avoid use of getaddrinfo; but I see a similar crash under that routine too.)

This happens both with the default versions shipped with the OS, and also with version 2.2.24 (which I downloaded and built).

This is almost certainly something environmental in my system - but I'm at a loss to know what, and not finding much useful with google.  Can anyone help?