Bug 589378

Summary: debugmode: environment variables are not exported
Product: [Fedora] Fedora Reporter: Matt McCutchen <matt>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: herrold, iarlyy, jonathan, mschmidt, notting, plautrba, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: initscripts-9.12.1-1.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 592102 (view as bug list) Environment:
Last Closed: 2010-07-01 18:46:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 592102    
Attachments:
Description Flags
export environment variables in debugmode none

Description Matt McCutchen 2010-05-06 01:35:53 UTC
Description of problem:
The environment variables set by the "debugmode" package are not exported (at least in bash), so the only processes that receive the benefits of debug mode are interactive shells.  The variables should be exported.

Version-Release number of selected component (if applicable):
debugmode-9.02.2-1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Make sure the "debugmode" package is installed and enabled.
2. env | grep -e MALLOC_ -e G_SLICE

Actual results:
No output.

Expected results (example):
MALLOC_CHECK_=1
G_SLICE=debug-blocks
MALLOC_PERTURB_=141

Comment 1 Petr Lautrbach 2010-05-07 12:18:50 UTC
Created attachment 412323 [details]
export environment variables in debugmode

/etc/profile.d/debug.sh: export all non-comment lines instead of sourcing /etc/sysconfig/debug

Comment 2 Matt McCutchen 2010-05-07 15:53:45 UTC
Gah, more sed mess.  Maybe the design should be fixed first (I entered bug 590063).

Comment 3 Bill Nottingham 2010-05-13 20:50:45 UTC
Cheesier-but-more-efficient fix committed as http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=deb0df0124fbe9b645755a0a44c7cb8044f24719
(debug.csh was set up to handle this already.)

Will be in 9.13-1, backported to F-12 and F-13 branches for future updates.

Comment 4 Fedora Update System 2010-06-24 19:32:35 UTC
initscripts-9.12.1-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/initscripts-9.12.1-1.fc13

Comment 5 Fedora Update System 2010-06-25 18:14:19 UTC
initscripts-9.12.1-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update initscripts'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/initscripts-9.12.1-1.fc13

Comment 6 Fedora Update System 2010-07-01 18:45:34 UTC
initscripts-9.12.1-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.