Scopes fail to run when built with go 1.6

Bug #1630370 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
go-unityscopes
Opinion
Critical
Unassigned

Bug Description

Despite the fixes in revision 74 of lp:go-unityscopes/v2 and the passing tests within go-unityscopes, a scope built with the new revision is still failing to run:

: ../../../bin/store -runtime "" -scope store/snappy-store.ini
panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running]:
panic(0x819340, 0xc82000fee0)
 /usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
launchpad.net/unity-scope-snappy/vendor/launchpad.net/go-unityscopes/v2._cgoCheckPointer0(0x76f9a0, 0xc82000fec0, 0xc82000fed0, 0x1, 0x1, 0x7568e0)
 ??:0 +0x4d
launchpad.net/unity-scope-snappy/vendor/launchpad.net/go-unityscopes/v2.Run(0x7f46e722da80, 0xc82000f120, 0x0, 0x0)
 /home/dobey/gosucks/src/launchpad.net/unity-scope-snappy/vendor/launchpad.net/go-unityscopes/v2/unityscope.go:257 +0x555
main.main()
 /home/dobey/gosucks/src/launchpad.net/unity-scope-snappy/store/main.go:39 +0x189

It seems there's no unit tests in go-unityscopes for the Run() method, and looking at the code, it seems to still be using a void* here, also passing a Go interface in, and attempting to pass that over to a method which expects a unity::scopes;:ScopeBase type in C++.

The code in main.go here is just creating an object which implements the go-unityscopes Scope interface, and passes it as an arg in scopes.Run(scope).

dobey (dobey)
Changed in go-unityscopes:
importance: Undecided → Critical
Changed in go-unityscopes:
status: New → Confirmed
dobey (dobey)
Changed in go-unityscopes:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.