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 -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs