dump_heap function discrepancy in Glibc

Abhijit Ray Chaudhury abhijit.ray.chaudhury@gmail.com
Wed Jun 12 13:45:49 GMT 2024


Thanks a lot Florian. Can you please point me to the function that dumpa
heap from 2.34 ?

By the way, I see dump_heap is still there in
https://elixir.bootlin.com/glibc/latest/source/malloc/malloc.c#L5398 as of
2.39 .


Please advise.


Thanking you in advance,

-Abhijit

On Wed, 12 Jun, 2024, 6:25 pm Florian Weimer, <fweimer@redhat.com> wrote:

> * Abhijit Ray Chaudhury via Libc-help:
>
> > According to above line user pointer in the chunk header seems to be
> > MALLOC_ALIGNED , not the chunk header .
> >
> > Is heap_dump code tested in i386 for glibc version 2.31 and above ?
>
> This code is only expected to work on dumped heaps from glibc 2.24 and
> earlier.  In glibc 2.25, support for dumping heaps has been removed.
> Starting with glibc 2.34, it is also necessary to preload
> libc_malloc_debug.so.0 for heap undumping support.
>
> Thanks,
> Florian
>
>


More information about the Libc-help mailing list