Bug 455355 - malloc debugging is noisy, messes up uname output
malloc debugging is noisy, messes up uname output
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-07-14 20:41 EDT by Kevin Kofler
Modified: 2016-11-24 10:47 EST (History)
6 users (show)

See Also:
Fixed In Version: 2.8.90-9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-20 04:58:10 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kevin Kofler 2008-07-14 20:41:55 EDT
Description of problem:
When malloc debugging is enabled, which the latest initscripts-8.79-1.fc10 
does system-wide, glibc prints a message to stderr (or is it stdout?) for 
every single program starting up:

malloc: using debugging hooks

That breaks programs like uname, at least cmake gets confused by the uname 
output and prints:

System is unknown to cmake, create:
Platform/malloc: using debugging hooks
Linux to use this system, please send your config file to cmake@www.cmake.org 
so it can be added to cmake

and errors, breaking KDE package builds. If debugging is to be enabled 
system-wide in Rawhide, it has to be silent unless/until an error occurs.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Try running a build with the latest glibc and initscripts.
Actual results:
build.log gets spammed with "malloc: using debugging hooks", cmake gets 
confused and errors.

Expected results:
Use of debugging hooks is silent.

Additional info:
See also http://fedorahosted.org/rel-eng/ticket/733
Comment 1 Ulrich Drepper 2008-07-20 04:58:10 EDT
Changed in 2.8.90-9.
Comment 2 Kirby Zhou 2009-10-08 11:26:39 EDT
The same problem is in RHEL-5
Comment 3 Goran P 2011-05-19 08:45:44 EDT
Debugging hooks is ON.
check: echo $MALLOC_CHECK_
It is probably in 1. To solve your problem, enter: export MALLOC_CHECK_=0

Note You need to log in before you can comment on or make changes to this bug.