Bug 731587

Summary: malloc-debug.sh should not be shipped with the system
Product: [openSUSE] openSUSE 12.1 Reporter: Forgotten User vUH3ZJOAkB <forgotten_vUH3ZJOAkB>
Component: BasesystemAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: lnussel
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User vUH3ZJOAkB 2011-11-20 05:28:17 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.854.0 Safari/535.2 SUSE/15.0.854.0

In OpenSuSE 12.1 directory /etc/profile.d contains malloc-debug.sh and malloc-debug.csh. Both files have a note on the top "# remove this file before shipment".

These files enable  MALLOC_CHECK_ and MALLOC_PERTURB_. Both slow down memory allocation and shouldn't be used in production code.

Reproducible: Always

Steps to Reproduce:
1.open /etc/profile.d directory and check for files.
2.
3.
Actual Results:  
Files malloc-debug.* are present.

Expected Results:  
Files malloc-debug.* should not be present.
Comment 1 Ludwig Nussel 2011-11-21 10:33:08 UTC
The following line needs to be removed from the prjconf of 12.1:
%_with_aaa_base_malloc_debug 0

IIRC rpm unfortunately doesn't evaluate the value of %_with* but only checks whether the macro is defined.
Comment 2 Stephan Kulow 2011-11-21 10:43:29 UTC
I don't get why we can't have an easy controllable switch in the aaa_base package and remove that project config crap.

Please start update
Comment 3 Ludwig Nussel 2011-11-21 10:58:55 UTC
wasn't that the case before and didn't work out well either?
Comment 4 Stephan Kulow 2011-11-21 11:06:16 UTC
I can't remember a release where we had to do an aaa_base maintenance update to fix malloc_debug - but perhaps you do.
Comment 5 Benjamin Brunner 2011-11-21 17:05:16 UTC
Ludwig, could you submit the fix to openSUSE:12.1:Update:Test please?
Comment 6 Stephan Kulow 2011-11-22 08:43:41 UTC
I created rq92996
Comment 7 Bernhard Wiedemann 2011-11-22 09:00:34 UTC
This is an autogenerated message for OBS integration:
This bug (731587) was mentioned in
https://build.opensuse.org/request/show/92996 12.1 / aaa_base
Comment 8 Benjamin Brunner 2011-12-13 12:05:45 UTC
Update already released. Resolved fixed.