https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Bug ID: 1184257 Summary: missing debug info Product: Fedora Version: rawhide Component: etcd Assignee: lacypret@gmail.com Reporter: jan.kratochvil@redhat.com QA Contact: extras-qa@fedoraproject.org CC: eparis@redhat.com, golang@lists.fedoraproject.org, jchaloup@redhat.com, lacypret@gmail.com, lemenkov@gmail.com, lsm5@redhat.com, walters@redhat.com
Created attachment 982040 --> https://bugzilla.redhat.com/attachment.cgi?id=982040&action=edit 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=40...
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jan.kratochvil@redhat.com Flags| |needinfo?(jan.kratochvil@re | |dhat.com)
--- Comment #1 from Jan Chaloupka jchaloup@redhat.com --- 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
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
--- Comment #2 from Jan Kratochvil jan.kratochvil@redhat.com --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Kratochvil jan.kratochvil@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1189928
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1189928 [Bug 1189928] Consider sh_addralign 0 as 1
https://bugzilla.redhat.com/show_bug.cgi?id=1184257 Bug 1184257 depends on bug 1189928, which changed state.
Bug 1189928 Summary: Consider sh_addralign 0 as 1 https://bugzilla.redhat.com/show_bug.cgi?id=1189928
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |RAWHIDE
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Kratochvil jan.kratochvil@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #982040|0 |1 is obsolete| | Flags|needinfo?(jan.kratochvil@re | |dhat.com) |
--- Comment #3 from Jan Kratochvil jan.kratochvil@redhat.com --- Created attachment 989477 --> https://bugzilla.redhat.com/attachment.cgi?id=989477&action=edit 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
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Fixed In Version| |etcd-2.0.0-0.5.fc22
--- Comment #4 from Jan Chaloupka jchaloup@redhat.com --- https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20150209/1...
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |RAWHIDE Last Closed| |2015-02-09 04:25:01
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Ville Skyttä ville.skytta@iki.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ASSIGNED CC| |ville.skytta@iki.fi Resolution|RAWHIDE |--- Keywords| |Reopened
--- Comment #5 from Ville Skyttä ville.skytta@iki.fi --- Debug info is now there, but the -debuginfo package lacks sources. Is this known/intentional? I'm clueless wrt go.
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Kratochvil jan.kratochvil@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1184221
--- Comment #6 from Jan Kratochvil jan.kratochvil@redhat.com --- 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.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1184221 [Bug 1184221] debugedit: .debug_line from golang is not updated
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(jan.kratochvil@re | |dhat.com)
--- Comment #8 from Jan Chaloupka jchaloup@redhat.com --- Hi Jan,
what is status of debug info issue in comment #5? Any progress?
Thanks Jan
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
--- Comment #9 from Jan Kratochvil jan.kratochvil@redhat.com --- etcd-debuginfo-2.0.9-1.fc23.x86_64.rpm is still broken, pinged the rpm Bug.
https://bugzilla.redhat.com/show_bug.cgi?id=1184257 Bug 1184257 depends on bug 1184221, which changed state.
Bug 1184221 Summary: debugedit: .debug_line from golang is not updated https://bugzilla.redhat.com/show_bug.cgi?id=1184221
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Kratochvil jan.kratochvil@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(jan.kratochvil@re | |dhat.com) |
--- Comment #10 from Jan Kratochvil jan.kratochvil@redhat.com --- 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)
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Fixed In Version|etcd-2.0.0-0.5.fc22 |etcd-2.0.9-1.fc22 Resolution|--- |CURRENTRELEASE Last Closed|2015-02-09 04:25:01 |2015-04-27 08:25:43
--- Comment #11 from Jan Chaloupka jchaloup@redhat.com --- 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
--- Comment #12 from Jan Kratochvil jan.kratochvil@redhat.com --- Confirming as fixed in Rawhide: etcd-2.0.10-1.fc23.x86_64 etcd-debuginfo-2.0.10-1.fc23.x86_64
https://bugzilla.redhat.com/show_bug.cgi?id=1184257
--- Comment #13 from Jan Kratochvil jan.kratochvil@redhat.com --- Confirming as fixed also for: etcd-2.0.9-1.fc22.x86_64 etcd-debuginfo-2.0.9-1.fc22.x86_64
golang@lists.fedoraproject.org