Bug 746599

Summary: cman debuginfo package does not contain all symbols
Product: Red Hat Enterprise Linux 5 Reporter: Fabio Massimo Di Nitto <fdinitto>
Component: cmanAssignee: Fabio Massimo Di Nitto <fdinitto>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8CC: cluster-maint, edamato, mjuricek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cman-2.0.115-93.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 05:25:24 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:
Attachments:
Description Flags
patch from sdake none

Description Fabio Massimo Di Nitto 2011-10-17 08:16:45 UTC
Description of problem:

cman lcrso service is built without "-g" CFLAGS option that causes
gcc to build without debugging symbols.

This makes all gdb stack trace useless.

See for example: bz#590101

The fix does not affect runtime at any way.

Comment 1 Fabio Massimo Di Nitto 2011-10-17 08:17:31 UTC
Created attachment 528487 [details]
patch from sdake

Comment 2 Fabio Massimo Di Nitto 2011-10-17 08:18:53 UTC
Patch from Steven

diff -uNr cman-2.0.115/cman/daemon/Makefile cman-2.0.115.dashg/cman/daemon/Makefile
--- cman-2.0.115/cman/daemon/Makefile	2009-08-05 05:16:27.000000000 -0700
+++ cman-2.0.115.dashg/cman/daemon/Makefile	2010-05-11 12:00:31.439550962 -0700
@@ -21,7 +21,7 @@
 ifeq ($(DEBUG),y)
 CFLAGS+= -O0 -g -DDEBUG
 else
-CFLAGS+= -O2
+CFLAGS+= -O2 -g
 endif
 
 TARGET=service_cman.lcrso

Comment 6 errata-xmlrpc 2012-02-21 05:25:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0167.html