Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#76435 - [glibc] mtrace() not working
Attached to Project:
Arch Linux
Opened by Raman Mohan (mohan43u) - Saturday, 05 November 2022, 19:48 GMT
Opened by Raman Mohan (mohan43u) - Saturday, 05 November 2022, 19:48 GMT
|
DetailsDescription:
mtrace() suppose to use MALLOC_TRACE environment variable to open the trace file and add trace about head memory usage. but its not happening. I also added '#define _GNU_SOURCE' at the beginning, not working example test.c: #define _GNU_SOURCE #include <mcheck.h> int main(int argc, char *argv[]) { char *buffer = NULL; buffer = calloc(1, 1000); free(buffer); return 0; } compile: $ gcc -o test test.c command which I used to run the test: $ (export MALLOC_TRACE=$(pwd)/test.mtrace; ./test) Someone also noticed this here https://stackoverflow.com/questions/74136501/mtrace-doesnt-generate-mtrace-data-file-in-archlinux-but-works-in-debian Additional info: * package version(s): 2.36-6 |
This task depends upon
$ LD_PRELOAD=/usr/lib/libc_malloc_debug.so ./foo
[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=a10bb08fb09cf7d323826cc66bdd665232c1ed96;hb=HEAD#l723