Skip to content

misc/cgo/testshared: TestCgoExecutable fails on linux/arm (Raspberry Pi 2) #15696

Closed
@eliasnaur

Description

@eliasnaur

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go version devel +a101b85 Sun May 15 20:56:39 2016 +0000 linux/arm
  2. What operating system and processor architecture are you using (go env)?
pi@raspberrypi ~/go/src $ uname -a
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux

pi@raspberrypi ~/go/src $ ../bin/go env
GOARCH="arm"
GOBIN=""
GOEXE=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/home/pi/go"
GOTOOLDIR="/home/pi/go/pkg/tool/linux_arm"
CC="gcc"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build235241708=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
  1. What did you do?
    GOROOT_BOOTSTRAP=$HOME/go1.6 ./all.bash
  2. What did you expect to see?
    All tests passed, just like the linux/arm builders on build.golang.org
  3. What did you see instead?
##### ../misc/cgo/testshared
--- FAIL: TestCgoExecutable (13.36s)
    shared_test.go:41: executing ./bin/execgo (cgo executable) failed exit status 2:
        runtime: typeOff 0x165a0 base 0x13d08 not in ranges:
            types 0x76f16820 etypes 0x76f41b80
            types 0x10010 etypes 0x1201c
        fatal error: runtime: type offset base pointer out of range

        runtime stack:
        runtime.throw(0x76f0815b, 0x2e)
            /home/pi/go/src/runtime/panic.go:566 +0x80 fp=0x7ee25398 sp=0x7ee2538c
        runtime.(*_type).typeOff(0x13d08, 0x165a0, 0x2d)
            /home/pi/go/src/runtime/type.go:230 +0x27c fp=0x7ee253d8 sp=0x7ee25398
        runtime.additab(0x76f795f8, 0x1)
            /home/pi/go/src/runtime/iface.go:102 +0xf8 fp=0x7ee25464 sp=0x7ee253d8
        runtime.itabsinit()
            /home/pi/go/src/runtime/iface.go:149 +0xac fp=0x7ee2548c sp=0x7ee25464
        runtime.schedinit()
            /home/pi/go/src/runtime/proc.go:452 +0x7c fp=0x7ee254b0 sp=0x7ee2548c
        runtime.rt0_go(0x7ee25644, 0x76ddc000, 0x7ee25644, 0x1, 0xbea0, 0x0, 0x0, 0xbeb8, 0x0, 0x0, ...)
            /home/pi/go/src/runtime/asm_arm.s:61 +0x94 fp=0x7ee254f0 sp=0x7ee254b0
FAIL
exit status 1
FAIL    _/home/pi/go/misc/cgo/testshared    203.168s
2016/05/16 10:00:31 Failed: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions