rpc: TestChangeAPI hits an assertion error with gccgo

Bug #1251076 reported by Michael Hudson-Doyle on 2013-11-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dave Cheney

Bug Description

Like this:

../../../src/libgo/runtime/go-reflect-call.c:325: libgo assertion failure

It's the call to NewlyAvailable after the call to ChangeAPIMethods that explodes.

Related branches

Dave Cheney (dave-cheney) wrote :

Bug reported upstream, we should probably attempt a workaround.

Michael Hudson-Doyle (mwhudson) wrote :

This seems to be down to the fact that gccgo does not support calling a function that returns a struct via reflect.Call. This fails in the same way:

package main

import (

type aStruct struct{}

func StructReturn () aStruct {
 return aStruct{}

func main () {
 f := reflect.ValueOf(StructReturn)

Curtis Hovey (sinzui) on 2013-11-18
tags: added: gccgo test-failure
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui) on 2014-02-10
Changed in juju-core:
milestone: none → 1.18.0
Dave Cheney (dave-cheney) wrote :

Fails on linux/ppc64el

ubuntu@winton-02:~/src/launchpad.net/juju-core$ go test ./rpc
# launchpad.net/juju-core/rpc_test
/tmp/ccRpWkRW.s: Assembler messages:
/tmp/ccRpWkRW.s:16660: Warning: setting incorrect section attributes for .rodata.__go_tdn_launchpad.net_juju_core_rpc_test.ErrorMethods
/tmp/ccRpWkRW.s:18589: Warning: setting incorrect section attributes for .rodata.__go_tdn_launchpad.net_juju_core_rpc_test.SimpleMethods
/tmp/ccRpWkRW.s:19044: Warning: setting incorrect section attributes for .rodata.__go_tdn_launchpad.net_juju_core_rpc_test..launchpad.net_juju_core_rpc_test.callInfo
panic: interface conversion: interface is nil, not error

goroutine 53 [running]:
created by launchpad.net_juju_core_rpc.handleRequest.pN32_launchpad.net_juju_core_rpc.Conn

tags: added: ppc64el
summary: - TestChangeAPI hits an assertion error with gccgo
+ rpc: TestChangeAPI hits an assertion error with gccgo
Changed in juju-core:
assignee: nobody → Dave Cheney (dave-cheney)
milestone: 1.20.0 → 2.0
status: Triaged → In Progress
milestone: 2.0 → 1.17.8
Curtis Hovey (sinzui) on 2014-04-02
Changed in juju-core:
milestone: 1.17.8 → 1.19.0
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui) on 2014-04-15
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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