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

RE: Segmentation faults and malloc checkers



Optimization or not, this sounds suspicious to me. Pointing them out would
be a good start.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of Simon Wilkinson
> Sent: Thursday, April 25, 2002 7:07 AM
> To: openldap-devel@OpenLDAP.org
> Subject: Segmentation faults and malloc checkers
>
>
> I'm trying to track down some intermittent segmentation faults which I'm
> seeing in 2.1.0alpha, and a recent CVS pull. These look like
> they're due to
> buffer overflows - so I'm trying to trace them using Electric Fence.
>
> However, some points of the slapd code try to read over the end
> of a malloc'd
> buffer, to optimize strcmp operations - electric fence traps
> this, as its a
> memory error. Would patches to fix this be appreciated (it would
> result in a
> performace hit), or is this considered to be acceptable?
>
> Cheers,
>
> Simon.
> --
> Simon Wilkinson            <simon@sxw.org.uk>
> http://www.sxw.org.uk
> "There's certainly a strong case for people really disliking
> Microsoft. Most
> of that is because their operating systems really suck." - Linus
> Torvalds