[PATCH 2/2] malloc: aarch64: Add ifuncs for malloc functions
Florian Weimer
fweimer@redhat.com
Fri Jul 31 11:36:05 GMT 2026
* Wilco Dijkstra:
> Hi Yury,
>
>> 2) General concern over using program's malloc that will inevitably
>> change the state of malloc implementation. E.g. what if we are debugging
>> malloc implementation itself and GDB is changing chunks behind the
>> scenes?
>
>> For 2) there isn't really a good and easy solution...
>
>
> I'm surprised that it's 2026 and debuggers haven't figured out how not
> to corrupt the program they are debugging...
It's hardly suprising because Linux does not provide a way to make a
system call using the ptrace interface. I'm pretty sure debuggers
wouldn't bother with calling malloc if they just could make a mmap
system call in the target process to allocate some memory.
Thanks,
Florian
More information about the Libc-alpha
mailing list