This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: thread heap leak?


On Sat, 27 Apr 2019 11:35:34 +0200
Florian Weimer <fw@deneb.enyo.de> wrote:

> * David Muse:
> 
> > I can correlate call number 6 and calls numbered 10-27 with the
> > process map.  Presumedly, 1-5 and 7-9 were unmapped.  10-27 appear to
> > be thread stacks, considering their size, and that they were called
> > with the MAP_STACK option :)
> 
> The other regions appear to be 64 MiB heaps created by malloc, with
> some regions not backed by storage.  There should be at least one such
> heap for each thread.  They will be reused for new threads eventually.
> 
> Thanks,
> Florian
> 

Is there a case where they wouldn't be reused, or where the VIRT might grow to 2G or more before they are?  I think that's what I'm seeing.  Those heaps pile up until the VIRT is about 2G, then the app crashes.

Thanks,

David
david.muse@firstworks.com


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