'go vet' falls over on expressions like C.f(*p(**q))
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
Medium
|
Unassigned | ||
golang (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This file is enough to cause it: http://
And this is the result:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x28 pc=0x40b5a3]
goroutine 1 [running]:
main.cgoBaseTyp
/usr/lib/
main.checkCgoCa
/usr/lib/
main.(*
/usr/lib/
go/ast.
/usr/lib/
go/ast.
/usr/lib/
go/ast.
/usr/lib/
go/ast.
/usr/lib/
go/ast.
/usr/lib/
go/ast.
/usr/lib/
main.(*
/usr/lib/
main.doPackage(
/usr/lib/
main.main()
/usr/lib/
exit status 2
adding parentheses to that, i.e. C.f((*p(**q))), is enough to make go vet happy again.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: golang-go 2:1.6~beta2-
ProcVersionSign
Uname: Linux 4.3.0-5-generic x86_64
ApportVersion: 2.19.4-0ubuntu1
Architecture: amd64
Date: Tue Feb 2 16:38:20 2016
InstallationDate: Installed on 2014-04-27 (645 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: golang
SystemImageInfo: Error: command ['system-
UpgradeStatus: Upgraded to xenial on 2015-06-18 (228 days ago)
Changed in hundredpapercuts: | |
status: | New → Confirmed |
Changed in golang (Ubuntu): | |
importance: | Undecided → Medium |
Changed in hundredpapercuts: | |
importance: | Undecided → Medium |
Changed in golang (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in hundredpapercuts: | |
status: | Confirmed → Fix Released |
Reproduced. Filed upstream: https:/ /github. com/golang/ go/issues/ 14201. I guess it's very late to get fixed for 1.6 but we'll see...