[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_add_s crashing on Solaris 2.6 PC
At 01:52 PM 2/1/99 -0800, Dave Parsons wrote:
>I'm having a problem with ldap_add_s crashing AFTER it succeeds in
>adding a new entry to my directory. Is this problem an ldap bug, or
>something I'm doing wrong?
try running it a debugger... or use your debugger to get a
backtrace from core dump (you may have to unlimit coredumpsize
first).
Kurt
>
>(I have no problems doing adds, deletes, or modifies. Only ldap_add_s
>is crashing)
>
>Here's the code fragment:
>..................
>fprintf(stderr, "TRACE 1\n");
> if ( ldap_add_s( ld, dn, list_of_attrs ) != LDAP_SUCCESS ) {
>fprintf(stderr, "TRACE 2\n");
> ldap_perror( ld, "ldap_add_s" ); exit(1);
> }
>fprintf(stderr, "TRACE 3\n");
> ldap_unbind( ld ); exit(0);
>..................
>Here's the crash example:
>..................
>>uname -a
>SunOS margay 5.6 Generic_105182-10 i86pc i386 i86pc
>>./boladd -b dfpxxx -i 123123 -p 456
>TRACE 1
>Segmentation fault (core dumped)
>Exit 139
>..................
>Here's how I'm compiling:
>..................
>CFLAGS = -g -DLDAP_DEBUG $(OS_CFLAGS) -I/usr/local/include
>-I/usr/local/src/standard/openldap-1.1.2/include
>LIBS = -L/usr/local/lib
>-L/usr/local/src/standard/openldap-1.1.2/libraries
>bol: bol.c
> $(CC) bol.c $(CFLAGS) $(LIBS) -lldap -lldif -llber -lsocket
>-lnsl -o bol
>..................
>Again, the entry IS ADDED with no apparent problem.
>
>------------------------
>Dave Parsons dfp@cts.ucla.edu
>UCLA - Communications Technology Services
>
>