From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903 Description of problem: When allocating memory with the MALLOC_CHECK_=3 environment variable set, glibc will display an error message: malloc: top chunk is corrupt (RHEL3) *** glibc detected *** : malloc top chunk is corrupt: <ptr> (RHEL4) If the MALLOC_CHECK_ environment variable is not set, no message is displayed Version-Release number of selected component (if applicable): glibc-2.3.3-53 && glibc-2.3.2-95.27 (RHEL3) How reproducible: Always Steps to Reproduce: 1. Turn on malloc check: export MALLOC_CHECK_=3 2. Run mtest utility 3. Actual Results: Error message is displayed and the program exits Expected Results: glibc should return NULL for malloc() Additional info: Message is not displayed for glibc 2.2.4-32 or glibc-2.2.5-164
Created attachment 111248 [details] mtest.c - causes glibc error message if MALLOC_CHECK_=3 is set
glibc-2.3.3-53 is not what is shipped in RHEL4. With glibc-2.3.4-2 I can't reproduce this both on i686 and x86_64 running 32-bit program: MALLOC_CHECK_=3 ./mtest malloc: using debugging hooks .........................success: 5fec ALLOC_CHECK_=3 ./mtest malloc: using debugging hooks .................................success: 7fee Though I can reproduce it with glibc-2.3.2-95.30.
I believe the fix was BZ#457, will check.
Yeah, fixes this for RHEL3. Queued for RHEL3 U5.
So appears this is a RHEL3 bug only . . . RHEL4 isn't affected, right? If that's the case, then I'll switch the product/version to be appropriate.
A fixed RHEL3 glibc candidate at ftp://people.redhat.com/jakub/glibc/2.3.2-95.33/
This is fixed in RHEL3 U5 beta, glibc-2.3.2-95.33
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2005-256.html