Bug 589378 - debugmode: environment variables are not exported
Summary: debugmode: environment variables are not exported
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 592102
TreeView+ depends on / blocked
 
Reported: 2010-05-06 01:35 UTC by Matt McCutchen
Modified: 2014-03-17 03:23 UTC (History)
7 users (show)

Fixed In Version: initscripts-9.12.1-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 592102 (view as bug list)
Environment:
Last Closed: 2010-07-01 18:46:09 UTC


Attachments (Terms of Use)
export environment variables in debugmode (575 bytes, patch)
2010-05-07 12:18 UTC, Petr Lautrbach 👨
no flags Details | Diff

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.


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