aligned_alloc has MALLOC_TRACE("aligned_alloc(al %llu, size %llu)", \ (ULong)alignment, (ULong)size ); \ bit it's missing MALLOC_TRACE(" = %p\n", mem ); \ Similar issue with posix_memalign (and the unloved valloc) There are also a few failure paths that should also print "= 0\n"
I'll add some testcases after 3.24 is done. commit f29bc61a22097c4e5ca966ad874647ef596f0327 (HEAD -> master, origin/master, origin/HEAD) Author: Paul Floyd <pjfloyd@wanadoo.fr> Date: Mon Oct 28 20:36:17 2024 +0100 Bug 495469 - aligned_alloc and posix_memalign missing MALLOC_TRACE with returned pointer