Bug 354131 - use MALLOC_CHECK_ (not _MALLOC_CHECK)
Summary: use MALLOC_CHECK_ (not _MALLOC_CHECK)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-26 14:29 UTC by John Reiser
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-26 14:42:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2007-10-26 14:29:45 UTC
Description of problem: The environment variable that triggers the extra
checking inside malloc/free/realloc by glibc is spelled MALLOC_CHECK_ with a
trailing underscore, not _MALLOC_CHECK with a leading underscore.  All the
execve from anaconda specify the wrong one.


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


How reproducible: always


Steps to Reproduce:
1. as soon as vtty2 is available:
strace -v -e trace=execve -s 400 -p <pid-of-anaconda>
(supply 'strace' on a USB flash memory device before boot, and mount the device
yourself.)
2. look at the environment variables in execve().
3.
  
Actual results:
735   execve("/usr/bin/loadkeys", ["/usr/bin/loadkeys"..., "us"...],
["PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/X11R6/bin:/sbin:/usr/sbin"...,
"_MALLOC_CHECK=2"..., "MALLOC_PERTURB_=204"...,

Expected results: "MALLOC_CHECK_=2"


Additional info: The spelling is listed as MALLOC_CHECK_ (with a trailing
underscore) in "man 3 malloc", and in "info libc".  The code is in
glibc/malloc/arena.c, function ptmnalloc_init(), around line 559 in glibc-2.7-2.

Comment 1 Chris Lumens 2007-10-26 14:42:59 UTC
Thanks, this will be fixed in the next build of anaconda.


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