-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin: test fails with segmentation fault on ARMv7 board #18397
Comments
CC @crawshaw |
CL https://golang.org/cl/35566 mentions this issue. |
This is unfortunate, but since plugin support is experimental in Go 1.8, we won't block the release for it. |
Still seeing testplugin fail on ARMv7:
This is on a Scaleway ARMv7 instance, which, IIRC, is what the ARM builders are. |
Still seeing this on tip (ccae744). Just saw it on a Scaleway instance running Arch. GCC 6.3.1, ld 2.27. What's different in the builder environment? |
Our Scaleway builders run Debian Jessie with Linux 3.2.34 and gcc 4.9.2. They might be due for an update, but that's what we've got at the moment (50 of them). |
Hmm. Okay. Ben's board was also running Debian and gcc 4.9.2, so it's probably not a C toolchain issue. Here's a complete
Could it be that this fails when |
Nope. Unfortunately, the core dump is pretty useless, too. Looks like a return address got clobbered with something that is obviously not a return address.
|
This failure still exists on my raspberry 2 with the newest master branch. |
pi 3 same issue :) |
This also happens to me in a raspi 3 on release-branch.go1.8 with following env:
with go1.7.linux-armv6l as bootstrap |
To by-pass the problem in the testpluging "go/misc/cgo/testplugin/src/host/host.go", I commented the following lines in "go/src/cmd/dist/test.go" for the build to succeed.
Output
Tested on Raspberry Pi 3 with Go 1.8.3 (master branch). |
It still exist on raspberry 3 with go1.8.3 |
I checked out the latest source from the master and compiled it with my raspi. All tests are passing and my application can load plugins without any problems. Very nice 😄 👍
|
Can confirm Raspberry Pi 3 Model B, Raspbian.
On branch master (51ba2bb) |
This issue disappeared on my RPI2 with the latest commit 33484a6 . Here is the log. Building Go bootstrap tool.cmd/dist Building Go toolchain using /usr/local/go-1.8.3/.bootstrap/cmd/internal/dwarf Building go_bootstrap for host, linux/arm.runtime/internal/sys Building packages and commands for linux/arm.runtime/internal/sys cmd/go terminal testPASS Testing packages.ok archive/tar 0.713s GOMAXPROCS=2 runtime -cpu=1,2,4ok runtime 271.226s sync -cpu=10ok sync 2.163s ../misc/cgo/stdio../misc/cgo/life../misc/cgo/testPASS ../misc/cgo/testgodefs../misc/cgo/testso../misc/cgo/testsovar../misc/cgo/testcsharedPASS ../misc/cgo/testsharedPASS ../misc/cgo/testpluginPASS ../misc/cgo/errors../misc/cgo/testsigfwd../test/bench/go1testing: warning: no tests to run ../testAPI check+pkg archive/tar, type Header struct, SparseHoles []SparseEntry ALL TESTS PASSED Installed Go for linux/arm in /home/pi/go |
Should we close this issue now? |
It is not reproducible. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?The newest go of the master branch (Dec 21, 2016)
What operating system and processor architecture are you using (
go env
)?Raspberry Pi 2 board:
Quad core ARMv7
Debian 8
GCC 4.9.2
gold 1.11 (binutils 2.25)
go1.7.4 as bootstrap
glibc 2.19
What did you do?
I try to build golang from source with the following steps,
What did you expect to see?
Regression test passed.
What did you see instead?
Errors as follow.
pi@raspberrypi:~/go/src $ ./all.bash
Building Go bootstrap tool.
cmd/dist
Building Go toolchain using /home/pi/go1.4.
bootstrap/cmd/internal/sys
bootstrap/cmd/internal/gcprog
bootstrap/cmd/internal/dwarf
bootstrap/cmd/asm/internal/flags
bootstrap/cmd/internal/bio
bootstrap/cmd/compile/internal/syntax
bootstrap/math/big
bootstrap/cmd/internal/obj
bootstrap/debug/pe
bootstrap/cmd/internal/obj/arm
bootstrap/cmd/internal/obj/arm64
bootstrap/cmd/internal/obj/mips
bootstrap/cmd/internal/obj/ppc64
bootstrap/cmd/internal/obj/s390x
bootstrap/cmd/internal/obj/x86
bootstrap/cmd/asm/internal/lex
bootstrap/cmd/link/internal/ld
bootstrap/cmd/compile/internal/ssa
bootstrap/cmd/asm/internal/arch
bootstrap/cmd/asm/internal/asm
bootstrap/cmd/asm
bootstrap/cmd/link/internal/amd64
bootstrap/cmd/link/internal/arm
bootstrap/cmd/link/internal/arm64
bootstrap/cmd/link/internal/mips
bootstrap/cmd/link/internal/mips64
bootstrap/cmd/link/internal/ppc64
bootstrap/cmd/link/internal/s390x
bootstrap/cmd/link/internal/x86
bootstrap/cmd/link
bootstrap/cmd/compile/internal/gc
bootstrap/cmd/compile/internal/amd64
bootstrap/cmd/compile/internal/arm
bootstrap/cmd/compile/internal/arm64
bootstrap/cmd/compile/internal/mips
bootstrap/cmd/compile/internal/mips64
bootstrap/cmd/compile/internal/ppc64
bootstrap/cmd/compile/internal/s390x
bootstrap/cmd/compile/internal/x86
bootstrap/cmd/compile
Building go_bootstrap for host, linux/arm.
runtime/internal/sys
runtime/internal/atomic
runtime
^C
pi@raspberrypi:
/go/src $ cd ../go $ git pullpi@raspberrypi:
Already up-to-date.
pi@raspberrypi:
/go $ cd src//go/src $ ./all.bashpi@raspberrypi:
Building Go bootstrap tool.
cmd/dist
Building Go toolchain using /home/pi/go1.4.
bootstrap/cmd/internal/sys
bootstrap/cmd/internal/dwarf
bootstrap/cmd/internal/bio
bootstrap/cmd/asm/internal/flags
bootstrap/cmd/compile/internal/syntax
bootstrap/cmd/internal/gcprog
bootstrap/cmd/internal/obj
bootstrap/math/big
bootstrap/debug/pe
bootstrap/cmd/internal/obj/arm
bootstrap/cmd/internal/obj/arm64
bootstrap/cmd/internal/obj/mips
bootstrap/cmd/internal/obj/ppc64
bootstrap/cmd/internal/obj/s390x
bootstrap/cmd/internal/obj/x86
bootstrap/cmd/asm/internal/lex
bootstrap/cmd/link/internal/ld
bootstrap/cmd/asm/internal/arch
bootstrap/cmd/compile/internal/ssa
bootstrap/cmd/asm/internal/asm
bootstrap/cmd/asm
bootstrap/cmd/link/internal/amd64
bootstrap/cmd/link/internal/arm
bootstrap/cmd/link/internal/arm64
bootstrap/cmd/link/internal/mips
bootstrap/cmd/link/internal/mips64
bootstrap/cmd/link/internal/ppc64
bootstrap/cmd/link/internal/s390x
bootstrap/cmd/link/internal/x86
bootstrap/cmd/link
bootstrap/cmd/compile/internal/gc
bootstrap/cmd/compile/internal/amd64
bootstrap/cmd/compile/internal/arm64
bootstrap/cmd/compile/internal/arm
bootstrap/cmd/compile/internal/mips
bootstrap/cmd/compile/internal/mips64
bootstrap/cmd/compile/internal/ppc64
bootstrap/cmd/compile/internal/s390x
bootstrap/cmd/compile/internal/x86
bootstrap/cmd/compile
Building go_bootstrap for host, linux/arm.
runtime/internal/sys
runtime/internal/atomic
runtime
unicode/utf8
sync/atomic
math
unicode
unicode/utf16
internal/syscall/windows/sysdll
internal/race
encoding
errors
sync
internal/singleflight
syscall
io
hash
hash/adler32
strconv
bytes
strings
bufio
path
encoding/base64
reflect
crypto
crypto/sha1
internal/syscall/windows
internal/syscall/windows/registry
time
os
os/signal
fmt
sort
encoding/binary
container/heap
path/filepath
regexp/syntax
io/ioutil
context
net/url
go/token
text/template/parse
flag
log
debug/dwarf
compress/flate
encoding/json
go/scanner
os/exec
regexp
go/ast
compress/zlib
text/template
debug/macho
debug/elf
go/parser
go/doc
go/build
cmd/go
Building packages and commands for linux/arm.
runtime/internal/sys
runtime/internal/atomic
runtime
internal/race
sync/atomic
errors
unicode
unicode/utf8
math
sync
container/list
io
syscall
hash
hash/adler32
hash/crc32
container/ring
crypto/subtle
crypto/cipher
bytes
strconv
strings
bufio
text/tabwriter
path
reflect
crypto
crypto/aes
math/rand
time
crypto/sha512
crypto/hmac
crypto/internal/cipherhw
crypto/md5
internal/syscall/unix
crypto/rc4
crypto/sha1
crypto/sha256
encoding/base64
internal/nettrace
internal/singleflight
vendor/golang_org/x/crypto/poly1305
vendor/golang_org/x/crypto/curve25519
encoding
encoding/ascii85
encoding/base32
unicode/utf16
vendor/golang_org/x/text/transform
hash/crc64
hash/fnv
html
image/color
os
image
image/color/palette
internal/syscall/windows
internal/syscall/windows/registry
internal/syscall/windows/sysdll
runtime/trace
math/cmplx
runtime/race
cmd/compile/internal/test
cmd/vet/internal/whitelist
os/signal
image/internal/imageutil
image/draw
image/jpeg
fmt
encoding/binary
sort
path/filepath
regexp/syntax
cmd/internal/sys
compress/bzip2
io/ioutil
container/heap
crypto/des
encoding/pem
vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20
runtime/debug
vendor/golang_org/x/crypto/chacha20poly1305
cmd/internal/dwarf
flag
log
debug/dwarf
compress/flate
debug/gosym
cmd/internal/obj
debug/plan9obj
cmd/vendor/golang.org/x/arch/arm/armasm
compress/zlib
cmd/vendor/golang.org/x/arch/ppc64/ppc64asm
debug/elf
debug/macho
cmd/internal/goobj
debug/pe
cmd/vendor/golang.org/x/arch/x86/x86asm
regexp
archive/tar
archive/zip
compress/gzip
compress/lzw
context
math/big
encoding/hex
go/token
os/exec
go/scanner
cmd/internal/objfile
go/ast
database/sql/driver
database/sql
cmd/addr2line
crypto/dsa
crypto/elliptic
encoding/asn1
crypto/rand
crypto/rsa
go/parser
go/printer
encoding/csv
crypto/ecdsa
crypto/x509/pkix
encoding/gob
encoding/json
encoding/xml
cmd/cgo
vendor/golang_org/x/net/http2/hpack
vendor/golang_org/x/net/idna
vendor/golang_org/x/text/unicode/norm
vendor/golang_org/x/text/width
mime
mime/quotedprintable
net/http/internal
net/url
text/template/parse
go/constant
go/format
text/template
text/scanner
go/types
image/gif
image/png
index/suffixarray
go/doc
html/template
runtime/cgo
go/build
internal/pprof/profile
testing
net
internal/testenv
internal/trace
runtime/pprof/internal/protopprof
runtime/pprof
net/internal/socktest
os/user
go/internal/gccgoimporter
go/internal/gcimporter
plugin
go/importer
testing/internal/testdeps
testing/iotest
testing/quick
cmd/api
cmd/internal/obj/arm
cmd/internal/obj/arm64
cmd/internal/obj/mips
cmd/internal/obj/ppc64
cmd/internal/obj/s390x
cmd/internal/obj/x86
crypto/x509
vendor/golang_org/x/net/lex/httplex
net/textproto
log/syslog
crypto/tls
cmd/asm/internal/flags
mime/multipart
net/mail
cmd/asm/internal/arch
cmd/asm/internal/lex
cmd/internal/bio
cmd/compile/internal/ssa
cmd/compile/internal/syntax
cmd/asm/internal/asm
cmd/asm
net/http/httptrace
net/http
net/smtp
cmd/internal/gcprog
cmd/internal/browser
cmd/cover
cmd/dist
cmd/doc
cmd/fix
cmd/gofmt
cmd/link/internal/ld
cmd/nm
expvar
net/http/cgi
net/http/cookiejar
net/http/fcgi
net/http/httptest
net/http/httputil
net/http/pprof
net/rpc
cmd/go
net/rpc/jsonrpc
cmd/objdump
cmd/pack
cmd/pprof/internal/plugin
cmd/link/internal/amd64
cmd/link/internal/arm
cmd/link/internal/arm64
cmd/link/internal/mips
cmd/link/internal/mips64
cmd/link/internal/ppc64
cmd/link/internal/s390x
cmd/link/internal/x86
cmd/pprof/internal/report
cmd/link
cmd/pprof/internal/svg
cmd/pprof/internal/tempfile
cmd/pprof/internal/commands
cmd/pprof/internal/fetch
cmd/pprof/internal/driver
cmd/pprof/internal/symbolizer
cmd/pprof/internal/symbolz
cmd/trace
cmd/pprof
cmd/vet/internal/cfg
cmd/vet
cmd/compile/internal/gc
cmd/compile/internal/amd64
cmd/compile/internal/arm
cmd/compile/internal/arm64
cmd/compile/internal/mips
cmd/compile/internal/mips64
cmd/compile/internal/ppc64
cmd/compile/internal/s390x
cmd/compile/internal/x86
cmd/compile
cmd/go terminal test
PASS
ok _/home/pi/go/src/cmd/go/testdata/testterminal18153 0.012s
Testing packages.
ok archive/tar 0.216s
ok archive/zip 32.868s
ok bufio 0.710s
ok bytes 1.593s
ok compress/bzip2 0.737s
ok compress/flate 12.173s
ok compress/gzip 0.188s
ok compress/lzw 0.051s
ok compress/zlib 0.251s
ok container/heap 0.025s
ok container/list 0.082s
ok container/ring 0.198s
ok context 1.078s
ok crypto/aes 0.243s
ok crypto/cipher 0.050s
ok crypto/des 0.231s
ok crypto/dsa 0.108s
ok crypto/ecdsa 0.912s
ok crypto/elliptic 0.237s
ok crypto/hmac 0.038s
ok crypto/md5 0.029s
ok crypto/rand 0.176s
ok crypto/rc4 0.941s
ok crypto/rsa 3.468s
ok crypto/sha1 0.044s
ok crypto/sha256 0.025s
ok crypto/sha512 0.040s
ok crypto/subtle 0.044s
ok crypto/tls 14.576s
ok crypto/x509 9.402s
ok database/sql 0.501s
ok database/sql/driver 0.021s
ok debug/dwarf 0.080s
ok debug/elf 0.193s
ok debug/gosym 0.054s
ok debug/macho 0.035s
ok debug/pe 0.075s
ok debug/plan9obj 0.028s
ok encoding/ascii85 0.038s
ok encoding/asn1 0.058s
ok encoding/base32 0.075s
ok encoding/base64 0.029s
ok encoding/binary 0.032s
ok encoding/csv 0.023s
ok encoding/gob 0.407s
ok encoding/hex 0.024s
ok encoding/json 4.428s
ok encoding/pem 0.242s
ok encoding/xml 0.109s
ok errors 0.026s
ok expvar 0.034s
ok flag 0.038s
ok fmt 0.689s
ok go/ast 0.060s
ok go/build 1.417s
ok go/constant 0.038s
ok go/doc 0.584s
ok go/format 0.062s
ok go/internal/gccgoimporter 0.078s
ok go/internal/gcimporter 3.310s
ok go/parser 0.281s
ok go/printer 3.521s
ok go/scanner 0.039s
ok go/token 0.222s
ok go/types 6.443s
ok hash/adler32 0.043s
ok hash/crc32 0.038s
ok hash/crc64 0.061s
ok hash/fnv 0.029s
ok html 0.022s
ok html/template 0.482s
ok image 1.001s
ok image/color 0.462s
ok image/draw 0.602s
ok image/gif 0.736s
ok image/jpeg 1.288s
ok image/png 0.396s
ok index/suffixarray 0.107s
ok internal/pprof/profile 0.017s
ok internal/singleflight 0.030s
ok internal/trace 3.988s
ok io 0.069s
ok io/ioutil 0.029s
ok log 0.028s
ok log/syslog 1.325s
ok math 0.030s
ok math/big 19.047s
ok math/cmplx 0.021s
ok math/rand 0.615s
ok mime 0.070s
ok mime/multipart 3.410s
ok mime/quotedprintable 1.822s
ok net 7.348s
ok net/http 18.634s
ok net/http/cgi 2.597s
ok net/http/cookiejar 0.075s
ok net/http/fcgi 0.049s
ok net/http/httptest 0.100s
ok net/http/httptrace 0.081s
ok net/http/httputil 0.365s
ok net/http/internal 0.027s
ok net/internal/socktest 0.019s
ok net/mail 0.077s
ok net/rpc 0.129s
ok net/rpc/jsonrpc 0.087s
ok net/smtp 0.181s
ok net/textproto 0.027s
ok net/url 0.142s
ok os 1.043s
ok os/exec 2.220s
ok os/signal 4.502s
ok os/user 0.029s
ok path 0.031s
ok path/filepath 0.083s
ok reflect 0.760s
ok regexp 1.267s
ok regexp/syntax 5.003s
ok runtime 184.789s
ok runtime/debug 0.073s
ok runtime/internal/atomic 0.814s
ok runtime/internal/sys 0.048s
ok runtime/pprof 6.734s
ok runtime/pprof/internal/protopprof 0.051s
ok runtime/trace 18.681s
ok sort 0.446s
ok strconv 4.684s
ok strings 1.187s
ok sync 1.152s
ok sync/atomic 0.425s
ok syscall 0.222s
ok testing 2.417s
ok testing/quick 0.509s
ok text/scanner 0.049s
ok text/tabwriter 0.026s
ok text/template 4.360s
ok text/template/parse 0.091s
ok time 5.065s
ok unicode 0.078s
ok unicode/utf16 0.033s
ok unicode/utf8 0.051s
ok vendor/golang_org/x/crypto/chacha20poly1305 2.197s
ok vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20 0.028s
ok vendor/golang_org/x/crypto/curve25519 2.004s
ok vendor/golang_org/x/crypto/poly1305 0.034s
ok vendor/golang_org/x/net/http2/hpack 0.085s
ok vendor/golang_org/x/net/idna 0.079s
ok vendor/golang_org/x/net/lex/httplex 0.037s
ok cmd/addr2line 7.326s
ok cmd/api 0.114s
ok cmd/asm/internal/asm 2.624s
ok cmd/asm/internal/lex 0.068s
ok cmd/compile 54.931s
ok cmd/compile/internal/gc 67.746s
ok cmd/compile/internal/ssa 1.888s
ok cmd/compile/internal/syntax 0.056s
ok cmd/compile/internal/test 0.017s [no tests to run]
ok cmd/cover 10.821s
ok cmd/doc 0.301s
ok cmd/fix 0.221s
ok cmd/go 24.746s
ok cmd/gofmt 0.317s
ok cmd/internal/goobj 0.016s
ok cmd/internal/obj 0.048s
ok cmd/internal/obj/arm64 0.034s
ok cmd/internal/obj/x86 0.020s
ok cmd/link 0.045s
ok cmd/nm 4.930s
ok cmd/objdump 10.864s
ok cmd/pack 13.316s
ok cmd/trace 0.043s
ok cmd/vendor/golang.org/x/arch/arm/armasm 0.067s
ok cmd/vendor/golang.org/x/arch/ppc64/ppc64asm 0.028s
ok cmd/vendor/golang.org/x/arch/x86/x86asm 1.451s
ok cmd/vet 19.389s
ok cmd/vet/internal/cfg 0.020s
GOMAXPROCS=2 runtime -cpu=1,2,4
ok runtime 292.076s
sync -cpu=10
ok sync 1.026s
../misc/cgo/stdio
../misc/cgo/life
../misc/cgo/test
PASS
ok _/home/pi/go/misc/cgo/test 56.216s
PASS
ok _/home/pi/go/misc/cgo/test 57.004s
PASS
ok _/home/pi/go/misc/cgo/test 56.994s
PASS
ok _/home/pi/go/misc/cgo/testtls 0.020s
PASS
ok _/home/pi/go/misc/cgo/testtls 0.019s
PASS
ok _/home/pi/go/misc/cgo/testtls 0.014s
PASS
ok _/home/pi/go/misc/cgo/nocgo 0.033s
PASS
ok _/home/pi/go/misc/cgo/nocgo 0.034s
PASS
ok _/home/pi/go/misc/cgo/nocgo 0.040s
PASS
ok _/home/pi/go/misc/cgo/test 30.053s
PASS
ok _/home/pi/go/misc/cgo/testtls 0.024s
PASS
ok _/home/pi/go/misc/cgo/nocgo 0.059s
../misc/cgo/testgodefs
../misc/cgo/testso
../misc/cgo/testsovar
../misc/cgo/testcshared
ok
../misc/cgo/testshared
PASS
ok _/home/pi/go/misc/cgo/testshared 175.317s
../misc/cgo/testplugin
./test.bash: line 34: 10575 Segmentation fault LD_LIBRARY_PATH=$(pwd) ./host
2016/12/21 02:46:09 Failed: exit status 139
../misc/cgo/errors
../misc/cgo/testsigfwd
../test/bench/go1
testing: warning: no tests to run
PASS
ok _/home/pi/go/test/bench/go1 8.534s
../test
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
skipped due to earlier error
API check
skipped due to earlier error
2016/12/21 02:46:09 FAILED
The text was updated successfully, but these errors were encountered: