public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Getting more info about a heap corruption
@ 2023-06-14  7:21 Roger Phillips
  2023-06-14  9:24 ` Florian Weimer
  0 siblings, 1 reply; 5+ messages in thread
From: Roger Phillips @ 2023-06-14  7:21 UTC (permalink / raw)
  To: libc-help

[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]

Greetings,

currently I'm analysing a number of heap corruptions in a large application which usually results in a coredump and one of these malloc_printerr :

https://elixir.bootlin.com/glibc/glibc-2.31/source/malloc/malloc.c#L3744
malloc.c - malloc/malloc.c - Glibc source code (glibc-2.31) - Bootlin<https://elixir.bootlin.com/glibc/glibc-2.31/source/malloc/malloc.c#L3744>
Elixir Cross Referencer - Explore source code in your browser - Particularly useful for the Linux kernel and other low-level projects in C/C++ (bootloaders, C libraries...)
elixir.bootlin.com


Problem is that variables needed for this check like victim, bck and next are optimized out and thus not accessible in gdb. Only av and its contents are accessible. I cannot use asan binaries as it is a production test. Changing environment variables is possible though.

So can you tell me if there is any sort of debugging functionality in glibc-2.31 that will show me those missing variables or narrow down the corrupted chunk?

Regards

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-14 10:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-14  7:21 Getting more info about a heap corruption Roger Phillips
2023-06-14  9:24 ` Florian Weimer
2023-06-14 10:13   ` Roger Phillips
2023-06-14 10:17     ` Florian Weimer
2023-06-14 10:21       ` Roger Phillips

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).