Getting IMSP segfaults when accessing LDAP

Rob Tanner rtanner+cyrus at linfield.edu
Thu Apr 22 00:27:33 EDT 2004


Rob,

Took a while to figure out what to set so that core could get dumped. I
think this is what you're asking for:

> (gdb) bt
> #0  0xb7473127 in _sasl_ipfromstring (addr=0x1 <Address 0x1 out of
bounds>, out=0x0, outlen=0)
>     at common.c:1658
> #1  0xb7472140 in sasl_setprop (conn=0x806dfa8, propnum=1, value=0x1)
at common.c:738
> #2  0xb7471760 in _sasl_conn_init (conn=0x806dfa8, service=0xb75d3c0b
"ldap", flags=4294967289,
>     type=4294967289, idle_hook=0xfffffff9, serverFQDN=0x80673f0
"¨ß\006\bin.linfield.edu",
>     iplocalport=0x0, ipremoteport=0x1 <Address 0x1 out of bounds>,
callbacks=0xfffffff9,
>     global_callbacks=0xfffffff9) at common.c:382
> #3  0xb74704fb in sasl_client_new (service=0xb75d3c0b "ldap",
>     serverFQDN=0x80673f0 "¨ß\006\bin.linfield.edu", iplocalport=0x0,
>     ipremoteport=0x1 <Address 0x1 out of bounds>,
prompt_supp=0xbfff88d4, flags=3076356012,
>     pconn=0x80673f0) at client.c:333
> #4  0xb75bb20c in ldap_int_sasl_open () from /usr/lib/libldap.so.2
> #5  0xb75b54fc in ldap_int_open_connection () from
/usr/lib/libldap.so.2
> #6  0xb75c54bb in ldap_new_connection () from /usr/lib/libldap.so.2
> #7  0xb75b4f71 in ldap_open_defconn () from /usr/lib/libldap.so.2
> #8  0xb75c50ee in ldap_send_initial_request () from
/usr/lib/libldap.so.2
> #9  0xb75be138 in ldap_sasl_bind () from /usr/lib/libldap.so.2
> #10 0xb75be3cf in ldap_sasl_bind_s () from /usr/lib/libldap.so.2
> #11 0xb75bebfe in ldap_simple_bind_s () from /usr/lib/libldap.so.2
> #12 0x08054a85 in ?? ()
> #13 0x08067270 in ?? ()
> (gdb)


-- Rob

--On Wednesday, April 21, 2004 05:33:08 PM -0400 Rob Siemborski
<rjs3 at andrew.cmu.edu> wrote:

> On Wed, 21 Apr 2004, Rob Tanner wrote:
>
>> I installed Cyrus IMSP server version 1.7b on a RH AS3 server and
>> configured it with LDAP to use our LDAP server as the backend for
>> the global addressbook.  I am using the dfault distro libs for LDAP,
>> and imsp builds okay except I get a bunch of "warning: assignment
>> makes pointer from integer without a cast" errors when compiling
>> abook_ldap.c.  The compile nevertheless succeeds.  But when the
>> server tries to access LDAP to to a search, the process terminates
>> with a segmention fault.  I don't find any special instructions in
>> notes/Build-instructions for LDAP, and I followed the instructions
>> in notes/Setup-instructions to the letter.  Is there something else
>> I need to do?
>>
>> Also, I did not include the strace (that's how I know it dies on a
>> seg fault) because it's quite long, but I can post it if it would be
>> helpful.
>
> If you can post the backtrace from the coredump, that'd be most
> helpful actually.
>
> -Rob
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
> Research Systems Programmer * /usr/contributed Gatekeeper
>



Rob Tanner
Linfield College,
McMinnville, Oregon
rtanner+cyrus at linfield.edu





---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list