Bug 763750 (GLUSTER-2018) - RPM package does not have debug symbols
Summary: RPM package does not have debug symbols
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2018
Product: GlusterFS
Classification: Community
Component: build
Version: 3.1.0
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lakshmipathi G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-26 22:06 UTC by Vikas Gorur
Modified: 2015-12-01 16:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Harshavardhana 2010-10-26 19:32:53 UTC
(In reply to comment #0)
> The GlusterFS RPM packages should be built with debug symbols. Without them it
> is impossible to get any information if a crash happens on a production
> deployment.
> 
> I don't think it is useful to have a "debuginfo" package like it was done in
> earlier versions. It would be better to simply build the default package with
> debuginfo. Any sysadmin who really doesn't want the symbols can always strip
> them.
It seems to be assumed that adding CFLAGS during configure would fix this issue. In fact the rpm flag %{_smp_flags} adds new flags which makes it override the configure default resulting in no debug symbols. 

Adding CFLAGS="-O0 -g -ggdb" in place of _smp_flags makes it work properly.

Comment 1 Vikas Gorur 2010-10-26 22:06:58 UTC
The GlusterFS RPM packages should be built with debug symbols. Without them it is impossible to get any information if a crash happens on a production deployment.

I don't think it is useful to have a "debuginfo" package like it was done in earlier versions. It would be better to simply build the default package with debuginfo. Any sysadmin who really doesn't want the symbols can always strip them.

Comment 2 Lakshmipathi G 2011-09-30 06:06:53 UTC
Seems like there is another method - 

Adding following entry to ~/.rpmmacros file 
%debug_package %{nil}

creates binary that's not striped and didn't not create separate debuginfo package.

#file /opt/glusterfs/3.2.3qa5/sbin/glusterfsd 
/opt/glusterfs/3.2.3qa5/sbin/glusterfsd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped

Will include one of these two methods in version >=3.2.4

Comment 3 Lakshmipathi G 2011-09-30 12:01:53 UTC
Fixed with 3.2.4


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