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

Re: ldap_search_s segfaults (ITS#960)



 From the trace back, the fault appears to be in malloc().
I wouldn't have a clue as to the why it faulted.  Suggest
you check with Redhat to see if they have reports of
similar problems with malloc().  You should also check
to see if you have installed all recommended OS updates.

At 07:44 PM 1/11/01 +0000, raldi@research.netsol.com wrote:
>Date: Thu, 11 Jan 2001 19:44:08 GMT
>Message-Id: <200101111944.f0BJi7d03275@galois.openldap.org>
>From: raldi@research.netsol.com
>To: openldap-its@OpenLDAP.org
>Subject: ldap_search_s segfaults  (ITS#960)
>X-Loop: openldap-its@OpenLDAP.org
>Sender: owner-openldap-bugs@OpenLDAP.org
>Priority: non-urgent
>X-Loop: OpenLDAP
>Precedence: bulk
>Comment: openldap-bugs mailing list <http://www.OpenLDAP.org/lists/>
>List-Archive: <http://www.OpenLDAP.org/lists/openldap-bugs>
>List-Help: <mailto:openldap-bugs-request@OpenLDAP.org?body=help>
>List-Unsubscribe: <mailto:openldap-bugs-request@OpenLDAP.org?body=unsubscribe>
>
>Full_Name: Mike Schiraldi
>Version: 1.2.11
>OS: RH Linux 7.0
>URL: 
>Submission from: (NULL) (216.168.254.240)
>
>
>The following test program dumps core:
>
>#include <stdio.h>
>#include <stdlib.h>
>#include <assert.h>
>#include <lber.h>
>#include <ldap.h>
>
>int main(int argc, const char ** argv)
>{
>  LDAP *ld;
>  LDAPMessage * res;
>  int rv;
>
>  ld = ldap_open ("ldap.research.netsol.com", 389);
>  assert(ld != NULL);
>
>  rv = ldap_simple_bind_s (ld, NULL, NULL);
>  assert(rv == 0);
>
>  fprintf(stderr, "About to search\n");
>
>  rv = ldap_search_s (ld, "dc=thecobblershoppe,dc=com", 
>                       LDAP_SCOPE_ONELEVEL, "(objectClass=*)", 
>                       NULL, 0, &res);
>      
>  fprintf(stderr, "Search complete\n");
> 
>  return 0;
>}