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

build: remove non-static linux/arm64 binaries/images #4280

Closed
srenatus opened this issue Jan 25, 2022 · 0 comments · Fixed by #4282
Closed

build: remove non-static linux/arm64 binaries/images #4280

srenatus opened this issue Jan 25, 2022 · 0 comments · Fixed by #4282
Labels

Comments

@srenatus
Copy link
Contributor

It's not been part of a release yet, but running the tests on linux/arm64 raised issues we can't easily deal with:

https://github.com/open-policy-agent/opa/runs/4937548221?check_suite_focus=true#step:8:246

SIGILL: illegal instruction
PC=0x5f55acc0b0 m=5 sigcode=2
instruction bytes: 0x50 0x76 0x13 0x1 0x55 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x1 0x4 0x10 0x40

goroutine 0 [idle]:
runtime: unknown pc 0x5f55acc0b0
stack: frame={sp:0x5f55acae50, fp:0x0} stack=[0x553b13a840,0x553c13a440)

runtime: unknown pc 0x5f55acc0b0
stack: frame={sp:0x5f55acae50, fp:0x0} stack=[0x553b13a840,0x553c13a440)


goroutine 118 [syscall]:
runtime.cgocall(0xad7e50, 0x4000101548)
	/usr/local/go/src/runtime/cgocall.go:156 +0x50 fp=0x4000101500 sp=0x40001014c0 pc=0x5b5be0
github.com/bytecodealliance/wasmtime-go._Cfunc_wasmtime_func_call(0x1cf0f60, 0x40001e8950, 0x400012a160, 0x7, 0x40000a24f8, 0x1, 0x40001e8988)
	_cgo_gotypes.go:2076 +0x44 fp=0x4000101540 sp=0x4000101500 pc=0x994844
github.com/bytecodealliance/wasmtime-go.(*Func).Call.func1.1({0x154c040, 0x4000246e90}, 0x40001e8950, 0x400012a160, {0x400012a160, 0x7, 0x7}, 0x40000a24f8, {0x40000a24f8, 0x1, ...}, ...)
	/src/vendor/github.com/bytecodealliance/wasmtime-go/func.go:430 +0xbc fp=0x40001015a0 sp=0x4000101540 pc=0x99b8dc
github.com/bytecodealliance/wasmtime-go.(*Func).Call.func1(0x40001e8988)
	/src/vendor/github.com/bytecodealliance/wasmtime-go/func.go:430 +0xa8 fp=0x4000101620 sp=0x40001015a0 pc=0x99b7f8
github.com/bytecodealliance/wasmtime-go.enterWasm({0x154c040, 0x4000246e90}, 0x4000101798)
	/src/vendor/github.com/bytecodealliance/wasmtime-go/func.go:513 +0x60 fp=0x4000101670 sp=0x4000101620 pc=0x99bc80
github.com/bytecodealliance/wasmtime-go.(*Func).Call(0x40001e8950, {0x154c040, 0x4000246e90}, {0x400014a070, 0x7, 0x7})
	/src/vendor/github.com/bytecodealliance/wasmtime-go/func.go:414 +0x1b8 fp=0x40001017f0 sp=0x4000101670 pc=0x99b0e8
github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.callOrCancel.func2(0x40003ea600, 0x40001e8950, 0x40001b8400, {0x400014a070, 0x7, 0x7})
	/src/internal/wasm/sdk/internal/wasm/vm.go:743 +0xb8 fp=0x4000101880 sp=0x40001017f0 pc=0xa400e8
github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.callOrCancel({0x1559080, 0x40001b3280}, 0x40001b8400, {0x14886f9, 0x8}, {0x4000101a1c, 0x7, 0x7})
	/src/internal/wasm/sdk/internal/wasm/vm.go:745 +0x198 fp=0x4000101940 sp=0x4000101880 pc=0xa3fd78
github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.call({0x1559080, 0x40001b3280}, 0x40001b8400, {0x14886f9, 0x8}, {0x4000101a1c, 0x7, 0x7})
	/src/internal/wasm/sdk/internal/wasm/vm.go:686 +0x60 fp=0x40001019b0 sp=0x4000101940 pc=0xa3fb60
github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.newVM.func6({0x1559080, 0x40001b3280}, 0x0, 0x0, 0x0, 0x0, 0x1d5f8)
	/src/internal/wasm/sdk/internal/wasm/vm.go:138 +0x9c fp=0x4000101a40 sp=0x40001019b0 pc=0xa3da0c
github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.(*VM).Eval(0x40001b8400, {0x1559080, 0x40001b3280}, 0x0, 0x0, {0x155f6e0, 0x40000581c0}, {0x0, 0x0}, {0x0, ...}, ...)
	/src/internal/wasm/sdk/internal/wasm/vm.go:335 +0x584 fp=0x4000101bc0 sp=0x4000101a40 pc=0xa3e564
github.com/open-policy-agent/opa/internal/wasm/sdk/opa.(*OPA).Eval(0x400014a000, {0x1559080, 0x40001b3280}, {0x0, 0x0, {0x0, 0x0}, {0x0, 0x0, 0x0}, ...})
	/src/internal/wasm/sdk/opa/opa.go:193 +0x330 fp=0x4000101ce0 sp=0x4000101bc0 pc=0xa42280
github.com/open-policy-agent/opa/internal/wasm/sdk/opa_test.TestOPA.func1(0x4000082820)
	/src/internal/wasm/sdk/opa/opa_test.go:313 +0x5f8 fp=0x4000101f70 sp=0x4000101ce0 pc=0xad5048
testing.tRunner(0x4000082820, 0x40001f2060)
	/usr/local/go/src/testing/testing.go:1259 +0xf8 fp=0x4000101fc0 sp=0x4000101f70 pc=0x6bae28
runtime.goexit()
	/usr/local/go/src/runtime/asm_arm64.s:1133 +0x4 fp=0x4000101fc0 sp=0x4000101fc0 pc=0x61fc04
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1306 +0x350

goroutine 1 [chan receive]:
testing.(*T).Run(0x40001136c0, {0x1487edc, 0x7}, 0x14b1848)
	/usr/local/go/src/testing/testing.go:1307 +0x36c
testing.runTests.func1(0x40001136c0)
	/usr/local/go/src/testing/testing.go:1598 +0x80
testing.tRunner(0x40001136c0, 0x400019fce8)
	/usr/local/go/src/testing/testing.go:1259 +0xf8
testing.runTests(0x400000fde8, {0x1ba1740, 0x2, 0x2}, {0xc0741e79ca672ce8, 0x8bbb629d06, 0x1c210e0})
	/usr/local/go/src/testing/testing.go:1596 +0x3f8
testing.(*M).Run(0x400014e580)
	/usr/local/go/src/testing/testing.go:1504 +0x510
main.main()
	_testmain.go:113 +0x228

goroutine 4 [chan receive]:
testing.(*T).Run(0x4000113860, {0x149b6ba, 0x24}, 0x40001f2060)
	/usr/local/go/src/testing/testing.go:1307 +0x36c
github.com/open-policy-agent/opa/internal/wasm/sdk/opa_test.TestOPA(0x4000113860)
	/src/internal/wasm/sdk/opa/opa_test.go:268 +0x890
testing.tRunner(0x4000113860, 0x14b1848)
	/usr/local/go/src/testing/testing.go:1259 +0xf8
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:1306 +0x350

goroutine 126 [select]:
github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.callOrCancel.func1({0x1559080, 0x40001b3280}, 0x40001b8400, 0x40003ea600, 0x40003ea660)
	/src/internal/wasm/sdk/internal/wasm/vm.go:715 +0x70
created by github.com/open-policy-agent/opa/internal/wasm/sdk/internal/wasm.callOrCancel
	/src/internal/wasm/sdk/internal/wasm/vm.go:714 +0x134

r0      0x4000082340
r1      0x0
r2      0x400008a000
r3      0x55011379d8
r4      0x0
r5      0x17f
r6      0x200069560d0543
r7      0x6474e550
r8      0x84
r9      0x4
r10     0x1
r11     0x0
r12     0x1e43f10
r13     0x55011379d8
r14     0x0
r15     0xffffffff
r16     0x1
r17     0x5501108a40
r18     0x0
r19     0x0
r20     0x5f55acc580
r21     0x5f55acc1c0
r22     0x0
r23     0xfaec3c
r24     0x1d2cd
r25     0xffc0
r26     0xff90
r27     0x1d904
r28     0x28
r29     0x5f55acc0a0
lr      0x5f55acc0b0
sp      0x5f55acae50
pc      0x5f55acc0b0
fault   0xffffffffbfa38000
FAIL	github.com/open-policy-agent/opa/internal/wasm/sdk/opa	17.683s

Until there's an upstream fix (could this be bytecodealliance/wasmtime#3183?), we should remove the linux/arm64 builds that include wasm, i.e., the non-static ones, from our release builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant