bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glibc bug with malloc_stats


From: Peter Jay Salzman
Subject: glibc bug with malloc_stats
Date: Tue, 29 Apr 2003 11:24:07 -0700
User-agent: Mutt/1.5.3i

i think this might be a bug:

this program runs fine when FULL is defined and segfaults when it's not.

i've seen this behavior on sarge (glibc 2.3.1), but it doesn't appear to
happen on glibc 2.2.5 and 2.1.x.

if you have any further questions, please email me since i'm not on the
glibc-bug mailing list.

pete




#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
// #define FULL

int main(void)
{

#ifdef FULL
   char *p = (char *) malloc(20*sizeof(char));
#endif

   malloc_stats();

#ifdef FULL
      free(p);
      malloc_stats();
#endif

   return 0;
}

-- 
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D




reply via email to

[Prev in Thread] Current Thread [Next in Thread]