This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: thread heap leak?
- From: David Muse <david dot muse at firstworks dot com>
- To: "Carlos O'Donell" <codonell at redhat dot com>, Andreas Schwab <schwab at suse dot de>, Florian Weimer <fw at deneb dot enyo dot de>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 31 Mar 2019 23:18:47 -0400
- Subject: Re: thread heap leak?
- References: <20190322105304.1e848cefb45fb65d32a96b23@firstworks.com> <77992b67-3fdf-cad7-8ad8-0e27b9353791@redhat.com> <20190322133932.b5b9b2af28ec5941af810f21@firstworks.com> <6ff37227-4b52-25c5-d890-02b4becb2ae8@redhat.com> <20190325113758.73e9324a19727503d82d2d4c@firstworks.com> <20190330130635.c9e52acd94c8248c20709e92@firstworks.com> <c920f08b-85c6-6bd3-5ca4-7c9bebee3a99@redhat.com>
On Sat, 30 Mar 2019 23:59:45 -0400
"Carlos O'Donell" <codonell@redhat.com> wrote:
> On 3/30/19 1:06 PM, David Muse wrote:
> > 2aeb89a5e000-2aeb89a62000 rw-p 00000000 00:00 0 [16KiB]
>
> > 2aeb89a62000-2aeb89a63000 ---p 00000000 00:00 0 [stack guard]
> > 2aeb89a63000-2aeb89c63000 rw-p 00000000 00:00 0 - stack 1
>
> > 2aeb89c63000-2aeb89c64000 ---p 00000000 00:00 0 [stack guard]
> > 2aeb89c64000-2aeb89e64000 rw-p 00000000 00:00 0 [2MiB thread stack]
>
> > 2aeb89e64000-2aeb89e65000 ---p 00000000 00:00 0 [stack guard]
> > 2aeb89e65000-2aeb8a065000 rw-p 00000000 00:00 0 - stack 2
>
> > 2aeb8c000000-2aeb8c097000 rw-p 00000000 00:00 0 [618KiB - heap, 64MiB + aligned]
> > 2aeb8c097000-2aeb90000000 ---p 00000000 00:00 0 [66MiB - MADV_DONTNEED]
>
> > 2aeb90000000-2aeb90093000 rw-p 00000000 00:00 0 [602KiB - heap, 64MiB + aligned]
> > 2aeb90093000-2aeb94000000 ---p 00000000 00:00 0 [66MiB - MADV_DONTNEED]
>
> > 2aeb94000000-2aeb940a2000 rw-p 00000000 00:00 0 [663KiB - heap, 64MiB + aligned]
> > 2aeb940a2000-2aeb98000000 ---p 00000000 00:00 0 [66MiB - MADV_DONTNEED]
> >
> > But what are the rest of those anonymous segments?
> >
> > This might not be a thread-stack leak, but some other kind of leak.
> > What else creates anonymous segments like that?
>
> Looks like 3 threads, and 3 heaps.
>
> --
> Cheers,
> Carlos.
>
Yeah, that is what it looks like, but where did the 3rd thread stack come from? As far as I can tell, no thread created it.
I'll see if I can get the same kind of stats when it's about to crash and see if they look any different.
Dave
david.muse@firstworks.com