Closed paulfloyd closed 2 years ago
Went away with FreeBSD freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n254105-d53927b0bae: Thu Mar 31 07:04:12 UTC 2022 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/i386.i386/sys/GENERIC i386 and same date build amd64
On amd64 I see
FreeBSD 14 ==22345== 10 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==22345== at 0x484FF97: realloc (vg_replace_malloc.c:0) ==22345== by 0x201AB0: main (static_allocs.c:34)
so the stack decoding isn't reading the location for realloc and realloc is the top of the stack
FreeBSD 13
==94449== 10 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==94449== at 0x484C674: malloc (vg_replace_malloc.c:384) ==94449== by 0x484FE34: realloc (vg_replace_malloc.c:1441) ==94449== by 0x201AC0: main (static_allocs.c:34)
now there is the realloc lineno and the stack decode continues to malloc
-> need to look at the machine code to see if libc is optimizing a call away