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

Re: web500gw causing slapd segfault (ITS#83)



patch

--- /home/wballant/ldap.orig/servers/slapd/back-ldbm/alias.c    Mon Mar
1 13:37:05 1999
+++ alias.c     Thu Mar 25 11:11:59 1999
@@ -277,6 +277,7 @@
    * e.g. if we had started with dn = o=MyAliasedOrg,c=MyCountry the dn
would match
    * and the above loop complete but we would still be left with an
aliased DN.
    */
+  if (newDN != NULL) {
   if ( (eNew = dn2entry_r( be, newDN, &matched )) != NULL) {
     if ((eDeref = derefAlias_r( be, conn, op, eNew )) != NULL) {
       free (newDN);
@@ -286,6 +287,7 @@
     }
     /* free reader lock */
     cache_return_entry_r(&li->li_cache, eNew);
+  }
   }
   if (matched != NULL) free(matched);




Kurt@OpenLDAP.org wrote:

> At 07:56 PM 3/2/99 GMT, ranjan.bagchi@pobox.com wrote:
> >(gdb) bt
> >#0  0x4007d082 in strdup ()
> >(gdb)
> >
> >I'd guess that this bug is corrupting the stack.
>
> Must be as you said you compiled --without-threads.
> Can you do a 'make veryclean', ./configure --without-threads, and
> see if you see any difference.
>
> Thanks.
>         Kurt

--
Will Ballantyne         GEMS Technical Architect
mailto:Will.Ballantyne@gems1.gov.bc.ca