From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 25 Feb 2015 21:38:15 -0500 From: mischief@9.offblast.org To: 9fans@9fans.net Message-ID: <411f4ed7862275a46cf5a477a3aff0c4@sigma.offblast.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] pool curalloc bug Topicbox-Message-UUID: 45acc016-ead9-11e9-9d60-3106f5b1d025 does anyone care to take a stab at figuring out why mainmem->curalloc underflows? here's a c program to reproduce. #include #include /* 8c curalloc.c 8l curalloc.8 p=`{8.out >[2=1] | awk '{ print $2 }' | tr -d : } echo '*mainmem' | acid -lpool $p -> curalloc 4294967016 */ void domalloc(int n) { int i; void **a; a = mallocz(n * sizeof(void*), 1); for(i = 0; i < n; i++){ a[i] = malloc(1024*1024*5); } for(i = 0; i < n; i++){ free(a[i]); } free(a); } void main(int argc, char *argv[]) { ARGBEGIN{ }ARGEND domalloc(2); abort(); }