Skip to content
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

x/crypto: blake2b asm: invalid instruction on linux amd64 #25510

Closed
GlenDC opened this issue May 23, 2018 · 3 comments
Closed

x/crypto: blake2b asm: invalid instruction on linux amd64 #25510

GlenDC opened this issue May 23, 2018 · 3 comments

Comments

@GlenDC
Copy link

@GlenDC GlenDC commented May 23, 2018

What version of Go are you using (go version)?

Go Tip

go version devel +5776bd558f Wed May 23 05:54:14 2018 +0000 linux/amd64

Does this issue reproduce with the latest release?

No.

What operating system and processor architecture are you using (go env)?

Linux Machine on travis-ci.org:

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/travis/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/travis/gopath"
GORACE=""
GOROOT="/home/travis/.gimme/versions/go"
GOTMPDIR=""
GOTOOLDIR="/home/travis/.gimme/versions/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build933923010=/tmp/go-build -gno-record-gcc-switches"
Using Go 1.5 Vendoring, not checking for Godeps

What did you do?

go build -race -tags='dev debug profile' -ldflags '-X github.com/rivine/rivine/build.rawVersion=v1.0.5-d26af21' -o /home/travis/gopath/bin/rivined ./cmd/rivined

This is as part of our CI tests of github.com/rivine/rivine.
Note that golang.org/x/crypto is vendored, in this failure it was at version d6449816ce06963d9d136eee5a56fca5b0616e7e. However I tried upgrading golang.org/x/crypto to master latest (1a580b3eff7814fc9b40602fd35256c63b50f491 ), and even force it at a commit a bit older db7d12313a59cd5b727192a287195e2cdfa40049 (as to try some commits prior to resent changes to the logic, I assumed), but none of it helps, and the build failure continues on Go tip.

What did you expect to see?

A successful build.

What did you see instead?

# github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b
asm: invalid instruction: 00350 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:325)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 00434 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:325)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 00667 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:332)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 00751 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:332)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 00947 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:334)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01031 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:334)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01234 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:336)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01318 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:336)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01521 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:338)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01605 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:338)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01808 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:340)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 01892 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:340)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02089 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:342)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02173 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:342)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02376 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:344)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02460 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:344)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02649 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:346)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02733 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:346)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 02930 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:348)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 03014 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:348)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 03099 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:350)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 03185 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:350)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 03277 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:351)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 03369 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:351)	VPSHUFD	$-79, Y3, Y3
asm: invalid instruction: 00318 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:634)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 00318 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:634)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 00585 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:641)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 00585 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:641)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 00861 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:649)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 00861 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:649)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 01130 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:656)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 01130 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:656)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 01362 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:660)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 01362 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:660)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 01602 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:663)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 01602 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:663)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 01842 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:667)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 01842 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:667)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 02081 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:670)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 02081 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:670)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 02320 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:674)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 02320 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:674)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 02560 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:677)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 02560 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:677)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 02799 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:681)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 02799 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:681)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 03039 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:684)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 03039 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:684)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 03279 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:688)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 03279 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:688)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 03515 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:691)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 03515 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:691)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 03755 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:695)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 03755 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:695)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 03998 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:698)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 03998 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:698)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 04241 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:702)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 04241 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:702)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 04469 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:705)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 04469 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:705)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 04709 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:709)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 04709 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:709)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 04952 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:712)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 04952 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:712)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 05146 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:715)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 05146 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:715)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 05342 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:717)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 05342 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:717)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 05547 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:720)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 05547 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:720)	VPSHUFD	$-79, X7, X7
asm: invalid instruction: 05755 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:722)	VPSHUFD	$-79, X6, X6
asm: invalid instruction: 05755 (/home/travis/gopath/src/github.com/rivine/rivine/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s:722)	VPSHUFD	$-79, X7, X7
asm: assembly failed

This is extracted from a travis-ci.org job log: https://travis-ci.org/rivine/rivine/jobs/382530495

@gopherbot gopherbot added this to the Unreleased milestone May 23, 2018
@mundaym mundaym modified the milestones: Unreleased, Go1.11 May 23, 2018
@mundaym
Copy link
Member

@mundaym mundaym commented May 23, 2018

@quasilyte
Copy link
Contributor

@quasilyte quasilyte commented May 23, 2018

Thanks for filling an issue.

Fix is on review: https://golang.org/cl/114136.
I will reference this issue from next patch set to close this one as it gets merged.

@gopherbot
Copy link

@gopherbot gopherbot commented May 23, 2018

Change https://golang.org/cl/114136 mentions this issue: cmd/internal/obj/x86: add missing Yi8 for VEX ytabs

@gopherbot gopherbot closed this in 67fe8b5 May 23, 2018
@golang golang locked and limited conversation to collaborators May 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.