-
Notifications
You must be signed in to change notification settings - Fork 17
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
panic: permission denied #19
Comments
may you provide a demo to reproduce this panic? |
same error got. when patch |
reproduce code: package main import _ "github.com/google/gopacket/pcap" func main() {
} |
I suspect the issue the same one discussed elsewhere on this issue on M1 Macs. In
fails on Apple silicon. Diving through threads, first this seemed to be a bug, but now Apple says this is working as intended and you're supposed to use Alas, I have no idea how you would call that in Go, barring using C extensions. |
panic: permission denied [recovered]
panic: permission denied
goroutine 162 [running]:
testing.tRunner.func1.2({0x4b819e0, 0x55a90a8})
/usr/local/go/src/testing/testing.go:1209 +0x24e
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1212 +0x218
panic({0x4b819e0, 0x55a90a8})
/usr/local/go/src/runtime/panic.go:1038 +0x215
github.com/cch123/supermonkey/internal/bouk.mprotectCrossPage(0x461f6e0, 0xc, 0x10)
/Users/sangtianyu/go/pkg/mod/github.com/cch123/[email protected]/internal/bouk/replace_unix.go:15 +0xc5
github.com/cch123/supermonkey/internal/bouk.CopyToLocation(0x461f6e0, {0xc000651cc4, 0xc, 0xc000384108})
/Users/sangtianyu/go/pkg/mod/github.com/cch123/[email protected]/internal/bouk/replace_unix.go:26 +0x5c
github.com/cch123/supermonkey/internal/bouk.ReplaceFunction(0x461f6e0, 0x4cf9f08)
/Users/sangtianyu/go/pkg/mod/github.com/cch123/[email protected]/internal/bouk/replace.go:29 +0xb2
github.com/cch123/supermonkey/internal/bouk.patchValue({0x4b4e800, 0x4cf9f08, 0x0}, {0x4b4e800, 0x4cf9c18, 0x13}, 0x0)
/Users/sangtianyu/go/pkg/mod/github.com/cch123/[email protected]/internal/bouk/monkey.go:96 +0x2b6
github.com/cch123/supermonkey/internal/bouk.Patch({0x4b4e800, 0x4cf9f08}, {0x4b4e800, 0x4cf9c18})
/Users/sangtianyu/go/pkg/mod/github.com/cch123/[email protected]/internal/bouk/monkey.go:50 +0x17a
github.com/cch123/supermonkey.Patch({0x4b4e800, 0x4cf9f08}, {0x4b4e800, 0x4cf9c18})
/Users/sangtianyu/go/pkg/mod/github.com/cch123/[email protected]/supermonkey.go:23 +0x2d
go env
GO111MODULE="on"
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
The text was updated successfully, but these errors were encountered: