[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfaults on some libtool invocations due to sbrk() assumptions
From: |
Chet Ramey |
Subject: |
Re: Segfaults on some libtool invocations due to sbrk() assumptions |
Date: |
Wed, 27 Apr 2011 12:49:56 -0400 |
> On 04/26/2011 09:38 PM, Chet Ramey wrote:
> >> The attached patch fixes the crashes by simply removing the
> >> caching, which is useless anyway since libc already avoids calling the
> >> kernel system call when sbrk is given 0.
> > Thanks for the patch. It's dangerous to assume the whole world is
> > Linux or glibc.
> >
> > Chet
> >
> >
> Hmm... without any knowledge about of the issue or glibc (and forks), I
> like this. Don't assume only glibc, but keep in mind, if it is right.
> This is just a note, just keep it in mind :)
It's good advice. In this case, the original bug report saying the
caching "is useless anyway" is a Linux and glibc-specific assumption.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/