-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
The example work, but fails during test
in go 1.18 I get the following message:
user@MACHINE universal % go test
map[_Runme:5037686692]
2022/07/12 11:41:14 334dad5e4 20895d640
unexpected fault address 0x334dad5e4
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x334dad5e4 pc=0x334dad5e4]
goroutine 21 [running]:
runtime.throw({0x104316c0e?, 0x40?})
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/panic.go:992 +0x50 fp=0x140000b5dc0 sp=0x140000b5d90 pc=0x10424aa20
runtime.sigpanic()
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/signal_unix.go:825 +0x1a4 fp=0x140000b5df0 sp=0x140000b5dc0 pc=0x104260284
github.com/awgh/cppgo/asmcall/cdecl.call1(0x334dad5e4, 0x7)
/Users/user/go/pkg/mod/github.com/awgh/cppgo@v0.0.0-20210224085512-3d24bca8edc0/asmcall/cdecl/cdecl_posix_arm64.s:13 +0x18 fp=0x140000b5e30 sp=0x140000b5e00 pc=0x104312218
github.com/awgh/cppgo/asmcall/cdecl.Call(0x104316f68?, {0x140000b5ed8?, 0x140000b5f38?, 0x6?})
/Users/user/go/pkg/mod/github.com/awgh/cppgo@v0.0.0-20210224085512-3d24bca8edc0/asmcall/cdecl/cdecl.go:21 +0x44 fp=0x140000b5e80 sp=0x140000b5e30 pc=0x104311fc4
github.com/Binject/universal.Test_Darwin_arm64_1(0x14000083d40)
/Users/user/go-projects/universal/darwin_test.go:71 +0x208 fp=0x140000b5f60 sp=0x140000b5e80 pc=0x104315fe8
testing.tRunner(0x14000083d40, 0x10437d010)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/testing/testing.go:1439 +0x110 fp=0x140000b5fb0 sp=0x140000b5f60 pc=0x1042ca480
testing.(*T).Run.func1()
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/testing/testing.go:1486 +0x30 fp=0x140000b5fd0 sp=0x140000b5fb0 pc=0x1042cb1f0
runtime.goexit()
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/asm_arm64.s:1263 +0x4 fp=0x140000b5fd0 sp=0x140000b5fd0 pc=0x10427a374
created by testing.(*T).Run
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/testing/testing.go:1486 +0x300
goroutine 1 [chan receive]:
fatal error: unexpected signal during runtime execution
panic during panic
[signal SIGSEGV: segmentation violation code=0x2 addr=0x118 pc=0x10426f2bc]
runtime stack:
runtime.throw({0x10431f22d?, 0x104423420?})
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/panic.go:992 +0x50
runtime.sigpanic()
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/signal_unix.go:802 +0x1e8
runtime.gentraceback(0x10427ae90?, 0x16bd86bd8?, 0x1?, 0x140000021a0, 0x0, 0x0, 0x64, 0x0, 0x16bd86bd0?, 0x0)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/traceback.go:242 +0x49c
runtime.traceback1(0x140000021a0?, 0x0?, 0x3?, 0x140000021a0, 0x16bd86da8?)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/traceback.go:835 +0x14c
runtime.traceback(...)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/traceback.go:782
runtime.tracebackothers.func1(0x140000021a0)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/traceback.go:1051 +0x104
runtime.forEachGRace(0x16bd86df8)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/proc.go:590 +0x64
runtime.tracebackothers(0x14000083a00?)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/traceback.go:1037 +0xd0
runtime.dopanic_m(0x14000083a00, 0x104277dbc?, 0x104316c0e?)
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/panic.go:1192 +0x25c
runtime.fatalthrow.func1()
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/panic.go:1047 +0x48
runtime.systemstack()
/Users/user/homebrew/Cellar/go/1.18.3/libexec/src/runtime/asm_arm64.s:241 +0x6c
exit status 2
FAIL github.com/Binject/universal 1.349s
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels