[Bug 259076] pthread_mutex_init fails with limited AS
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 259076] pthread_mutex_init fails with limited AS"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Oct 2021 21:49:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259076 --- Comment #4 from Konstantin Belousov <kib@FreeBSD.org> --- So there are two unrelated issues. One is jemalloc, and there I could not help, ask jemalloc developers perhaps. Another *is* in crt_malloc, and my fixed patch somewhat helps your problem: solo% LD_LIBRARY_PATH=/usr/obj/usr/home/kostik/work/DEV/src/amd64.amd64/lib/libthr ktrace -f /tmp/ktrace.out ./jemalloc_limit alloc 51200 Kbytes freed 51200 Kbytes jemalloc_limit: pthread_mutex_init: Cannot allocate memory 320 mutexes: 40 Kbytes I suspect you rebuilt rtld instead of libthr. The fixed patch is available at https://reviews.freebsd.org/D32474 -- You are receiving this mail because: You are the assignee for the bug.