[Bug 1283626] [NEW] /usr/share/go/src/pkg/runtime/runtime-gdb.py is not valiad python3
Geoff Teale
geoffrey.teale at canonical.com
Sun Feb 23 03:26:07 UTC 2014
Public bug reported:
On trusty the file /usr/share/go/src/pkg/runtime/runtime-gdb.py is
evaluated in python 3 when it is sourced by gdb. Unfortunately this
file uses python 2 syntax.
To reproduce this error:
$ mkdir -p ~/go/src/foo
$ cd ~/go/src/foo
$ echo -e "package main\n\nimport \"fmt\"\n\nfunc main(){\n fmt.Printf(\"Foo\")\n}\n" > foo.go
$ export GOPATH=~/go/src
$ go build
$ gdb foo
(gdb) source /usr/share/go/src/pkg/runtime/runtime-gdb.py
The error can be trivially resolved by running the following command:
$ sudo 2to3 -w /usr/share/go/src/pkg/runtime/runtime-gdb.py
Note also, if bug #1076454 is resolved then the "source.." line in gdb,
used above, will happen automatically.
** Affects: golang (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to golang in Ubuntu.
https://bugs.launchpad.net/bugs/1283626
Title:
/usr/share/go/src/pkg/runtime/runtime-gdb.py is not valiad python3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1283626/+subscriptions
More information about the Ubuntu-server-bugs
mailing list