This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libmudflap, freebsd malloc issue


wilson wrote:

> [...]  The program calls the malloc wrapper, which calls the real
> malloc, which calls the mmap wrapper, which calls the real malloc to
> register the data.  Now we have a recursive malloc call, and that
> triggers a fatal signal inside the FreeBSD library.  [...]

It's not quite clear to me how different this is from mallocs that are
entirely implemented in terms of mmap.  In any case, what would just
using the "reentrant" state do in your scenario?  The intention would
be to let the mmap wrapper call right to the system mmap and not
allocate tracking data.


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]