malloc crash

Corinna Vinschen
Tue Oct 26 09:31:53 GMT 2021

On Oct 26 18:26, Takashi Yano wrote:
> On Tue, 26 Oct 2021 01:59:36 -0700
> Mark Geisert wrote:
> > See above.  Try moving your new lines above the call to do_global_ctors().  Also 
> > note the comment just above the original location of those lines.. you're now 
> > ignoring what the comment warns about.
> I have just tried moving malloc_init() before do_global_ctors(),
> however, I do not encountered any problems.
> I do not understand what "user's program may have overridden malloc"
> means...

Check out the malloc_init code.  You have to assume that an application
comes with it's own malloc implementation.  One of the scenarios
discussed at the time was an app including dmalloc, a malloc lib for
debugging memory allocation.


More information about the Cygwin-developers mailing list