[Bug 1192742] New: Fix DWARF for variable references
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1192742
Bug ID: 1192742
Summary: Fix DWARF for variable references
Product: Fedora
Version: rawhide
Component: golang
Assignee: vbatts(a)redhat.com
Reporter: jan.kratochvil(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: admiller(a)redhat.com, golang(a)lists.fedoraproject.org,
lemenkov(a)gmail.com, lsm5(a)redhat.com,
renich(a)woralelandia.com, s(a)shk.io, vbatts(a)redhat.com
Created attachment 991800
--> https://bugzilla.redhat.com/attachment.cgi?id=991800&action=edit
A bit hacky fix
Description of problem:
https://sourceware.org/gdb/wiki/GoDebugging#golang_Wrong_DW_TAG_variable
golang provides &name variable names and the DWARF interface uses one more
pointer than in the source.
Version-Release number of selected component (if applicable):
golang-1.4.1-1.fc22.x86_64
How reproducible:
Always.
Steps to Reproduce:
-------------------
package main
func main () {
var i int
ip:=&i
ipp:=&ip
go func() {
**ipp++
}()
}
-------------------
Actual results:
(gdb) b 8
(gdb) r
(gdb) p i
No symbol "i" in current context.
(gdb) p &i
No symbol "i" in current context.
(gdb) p '&i'
Invalid character constant.
(gdb) p ' &i'
$1 = (int *) 0xc20800a080
(gdb) p *' &i'
$2 = 0
(gdb) p ' &ip'
$3 = (int **) 0xc20803a000
(gdb) p *' &ip'
$4 = (int *) 0xc20800a080
(gdb) p **' &ip'
$5 = 0
(gdb) p ' &ipp'
$6 = (int ***) 0xc20803a008
(gdb) p *' &ipp'
$7 = (int **) 0xc20803a000
(gdb) p **' &ipp'
$8 = (int *) 0xc20800a080
(gdb) p ***' &ipp'
$9 = 0
Expected results:
(gdb) b 8
(gdb) r
(gdb) p i
$1 = (int &) @0xc20800a080: 0
(gdb) p ip
$2 = (int *&) @0xc20803a000: 0xc20800a080
(gdb) p *ip
$3 = 0
(gdb) p ipp
$4 = (int **&) @0xc20803a008: 0xc20803a000
(gdb) p *ipp
$5 = (int *) 0xc20800a080
(gdb) p **ipp
$6 = 0
(gdb) whatis i
type = int &
(gdb) whatis ip
type = int *&
(gdb) whatis ipp
type = int **&
Additional info:
But you said golang upstream is writing some new linker so maybe this hack is
not much relevant for upstream. DW_AT_name of the reference types is IMO
incorrect but I do not think it matters much for GDB; for 'ipp' with this patch
there is:
<fe78> DW_AT_name : &(***int)
--
You are receiving this mail because:
You are on the CC list for the bug.
8 years, 12 months
[Bug 1200899] New: F21 has newer NVR than F22
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1200899
Bug ID: 1200899
Summary: F21 has newer NVR than F22
Product: Fedora
Version: 22
Component: docker-io
Severity: low
Assignee: lsm5(a)redhat.com
Reporter: jpopelka(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: adimania(a)gmail.com, admiller(a)redhat.com,
golang(a)lists.fedoraproject.org, hushan.jia(a)gmail.com,
jchaloup(a)redhat.com, jperrin(a)centos.org,
lsm5(a)redhat.com, mattdm(a)redhat.com,
mgoldman(a)redhat.com, miminar(a)redhat.com, s(a)shk.io,
thrcka(a)redhat.com, vbatts(a)redhat.com
F21 contains docker-io-1.5.0-1.fc21 (or docker-io-1.5.0-2.fc21 in
updates-testing) while there's still docker-io-1.4.1-27.git76baa35.fc22 in F22
--
You are receiving this mail because:
You are on the CC list for the bug.
8 years, 12 months