Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1184257 - missing debug info
Summary: missing debug info
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: etcd
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Luke Cypret
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1184221 1189928
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-20 21:14 UTC by Jan Kratochvil
Modified: 2015-04-27 12:40 UTC (History)
9 users (show)

Fixed In Version: etcd-2.0.9-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-27 12:25:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
etcd.spec patch (1.03 KB, patch)
2015-01-20 21:14 UTC, Jan Kratochvil
no flags Details | Diff
Updated etcd.spec patch (1019 bytes, patch)
2015-02-08 20:29 UTC, Jan Kratochvil
no flags Details | Diff

Description Jan Kratochvil 2015-01-20 21:14:43 UTC
Created attachment 982040 [details]
etcd.spec patch

Description of problem:
Current etcd.rpm contains neither debug info embedded nor separate etc-debuginfo.rpm.

Version-Release number of selected component (if applicable):
etcd-2.0.0-1.rc1.fc22.x86_64 (not yet in Koji - that's Bug 1176138)

How reproducible:
Always

Steps to Reproduce:
yum install etcd
debuginfo-install etcd
$ readelf -wil /usr/lib/debug/usr/bin/etcd.debug

Actual results:
readelf: Error: '/usr/lib/debug/usr/bin/etcd.debug': No such file
$ readelf -wil /usr/bin/etcd # does not show anything anyway

Expected results:
Raw dump of debug contents of section .debug_line:
[...]
Contents of the .debug_info section:
[...]

Additional info:
Sure the goal is GDB, not readelf.  But readelf is more foolproof.

Patch follows the debuginfo rules I have just updated at:
  https://fedoraproject.org/w/index.php?title=PackagingDrafts%2FGo&diff=401412&oldid=392136

Comment 1 Jan Chaloupka 2015-01-26 14:37:04 UTC
Hi Jan,

building the master branch with your patch (and looking into the draft [1]), I am getting failed builds on armv7hl. Is this expected or is it another golang vs. debuginfo issue? The remaining architectures are fine.

Builds:
http://koji.fedoraproject.org/koji/taskinfo?taskID=8721908
http://koji.fedoraproject.org/koji/taskinfo?taskID=8721862

[1] http://fedoraproject.org/wiki/PackagingDrafts/Go#Debuginfo

Comment 2 Jan Kratochvil 2015-01-26 16:22:41 UTC
extracting debug info from /builddir/build/BUILDROOT/etcd-2.0.0-0.3.rc1.fc22.arm/usr/bin/etcd
Failed to write file: invalid section alignment

(In reply to Jan Chaloupka from comment #1)
> I am getting failed builds on armv7hl. Is this expected or is it another
> golang vs. debuginfo issue? The remaining architectures are fine.

I did not test arm, thanks for the bugreport.
I will update the Bug possibly in a week, just the DWARF from golang is not much sufficient for Go debugging anyway.

Comment 3 Jan Kratochvil 2015-02-08 20:29:28 UTC
Created attachment 989477 [details]
Updated etcd.spec patch

Please retry the build, elfutils-0.161-4.fc22.x86_64 should be now in the buildroots.

Surprisingly my tried scratch build made only x86_64+i686, no arm:
  https://koji.fedoraproject.org/koji/taskinfo?taskID=8868955

Comment 5 Ville Skyttä 2015-02-11 19:22:20 UTC
Debug info is now there, but the -debuginfo package lacks sources. Is this known/intentional? I'm clueless wrt go.

Comment 6 Jan Kratochvil 2015-02-11 19:29:05 UTC
Sources are missing because debugedit in rpm-build needs an update: Bug 1184221

In fact it is correct to keep this Bug open (or one could file a different Bug) as all the Go packages will need a rebuild after the debugedit Bug gets fixed.

Comment 7 Jaroslav Reznik 2015-03-03 17:07:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 8 Jan Chaloupka 2015-04-13 20:01:13 UTC
Hi Jan,

what is status of debug info issue in comment #5? Any progress?

Thanks
Jan

Comment 9 Jan Kratochvil 2015-04-13 20:07:42 UTC
etcd-debuginfo-2.0.9-1.fc23.x86_64.rpm is still broken, pinged the rpm Bug.

Comment 10 Jan Kratochvil 2015-04-27 12:06:55 UTC
It works for me with:
rpm-4.12.0.1-9.fc22.x86_64
golang-1.4.2-2.fc22.x86_64


$ gdb etcd
GNU gdb (GDB) Fedora 7.9-10.fc22
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from etcd...Reading symbols from /usr/lib/debug/usr/bin/etcd.debug...done.
done.
(gdb) l
14	
15	// Package main is a simple wrapper of the real etcd entrypoint package
16	// (located at github.com/coreos/etcd/etcdmain) to ensure that etcd is still
17	// "go getable"; e.g. `go get github.com/coreos/etcd` works as expected and
18	// builds a binary in $GOBIN/etcd
19	//
20	// This package should NOT be extended or modified in any way; to modify the
21	// etcd binary, work in the `github.com/coreos/etcd/etcdmain` package.
22	//
23	
(gdb) start
Temporary breakpoint 1 at 0x415d66: file /usr/src/debug/etcd-2.0.9/src/github.com/coreos/etcd/main.go, line 28.
Starting program: /usr/bin/etcd 
Missing separate debuginfos, use: debuginfo-install glibc-2.21-5.fc22.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff458e700 (LWP 31725)]

Temporary breakpoint 1, main.main () at /usr/src/debug/etcd-2.0.9/src/github.com/coreos/etcd/main.go:28
28	func main() {
Missing separate debuginfos, use: debuginfo-install libgcc-5.1.1-1.fc22.x86_64
(gdb) l
23	
24	package main
25	
26	import "github.com/coreos/etcd/etcdmain"
27	
28	func main() {
29		etcdmain.Main()
30	}
(gdb) info source
Current source file is /usr/src/debug/etcd-2.0.9/src/github.com/coreos/etcd/main.go
Located in /usr/src/debug/etcd-2.0.9/src/github.com/coreos/etcd/main.go
Contains 30 lines.
Source language is go.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.
(gdb)

Comment 11 Jan Chaloupka 2015-04-27 12:25:43 UTC
Thanks Jan. rpm for f21 and f22 is in stable repository, f20 is about to. I have built etcd-2.0.9 in f20-f22. They are waiting for testing.

Comment 12 Jan Kratochvil 2015-04-27 12:35:46 UTC
Confirming as fixed in Rawhide:
etcd-2.0.10-1.fc23.x86_64
etcd-debuginfo-2.0.10-1.fc23.x86_64

Comment 13 Jan Kratochvil 2015-04-27 12:40:48 UTC
Confirming as fixed also for:
etcd-2.0.9-1.fc22.x86_64
etcd-debuginfo-2.0.9-1.fc22.x86_64


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