You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
internal/metal: Metal compute dispatch SIGSEGVs on darwin/amd64 (exposed by #171 fix) #173
On darwin/amd64, internal/gpuapi Metal tests (e.g. TestMetal_Add) SIGSEGV
(SEGV_MAPERR) inside a real Metal dispatch. This is a pre-existing latent defect
in the hand-rolled internal/metal objc/Metal binding that was masked until
now by #171: before #172, execution crashed earlier at the dlopen/dlsym probe
(the #171 bug), so the Metal path never reached an actual objc_msgSend/Metal
dispatch. With #171 fixed, dlsym works and the test proceeds into a genuine
Metal call that faults.
Repro (darwin/amd64, Go 1.26.2)
go test -race ./internal/gpuapi/ -run TestMetal_Add
Likely a bad pointer/argument marshalling into MsgSend/Dispatch (the raw
objc bridge). Needs a look at internal/metal/purego.go:149 and internal/metal/compute.go:233 argument passing.
Activity