Re: [PATCH 2/2] malloc: aarch64: Add ifuncs for malloc functions
Florian Weimer <[email protected]> Fri, 31 Jul 2026 13:36:05 +0200
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Message-ID | <[email protected]> |
* 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