[PATCH 2/2] aarch64: Add workaround for GDB bug handling string literals

Florian Weimer fweimer@redhat.com
Wed Jul 1 12:58:51 GMT 2026


* Wilco Dijkstra:

> Btw is it possible for GDB to call malloc before initialization?
> Malloc no longer does auto-init, so we rely on initialization to be
> called first. There are lots of issues with an external agent
> inserting calls besides killing the repeatable debug experience...

We call __ptmalloc_init from __libc_early_init.  It's currently non
possible to single-step through that because we haven't signaled
RT_CONSISTENT at this stage.  GDB doesn't see the libc link map yet, so
malloc is still the ld.so minimal malloc.

Thanks,
Florian



More information about the Libc-alpha mailing list