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

gomonkey tests failing on Mac M3 (arm64) with Go 1.21 #169

Open
LinxiItIs opened this issue Aug 20, 2024 · 1 comment
Open

gomonkey tests failing on Mac M3 (arm64) with Go 1.21 #169

LinxiItIs opened this issue Aug 20, 2024 · 1 comment

Comments

@LinxiItIs
Copy link

LinxiItIs commented Aug 20, 2024

Description:

  1. Environment:
    • Machine: Mac with M3 chip
    • Architecture: arm64
    • Go version: 1.21
  2. Initial problem:
    • I cloned the gomonkey repository to my Mac.
    • When running the test functions in the test package, many tests failed.
    • The reason provided was "inline".
    • image
  3. Attempted solution:
    • I set the compiler flag "-gcflags=all=-l" to disable inlining.
    • image
  4. New problem after applying the solution:
    • The tests now panic with the following error: "[signal SIGBUS: bus error code=0x1 addr=0x100c981c8 pc=0x100c981c8]"
    • image
  5. Question: Has anyone encountered a similar issue when running gomonkey tests on an ARM-based Mac? If so, were you able to resolve it? Any suggestions or solutions would be greatly appreciated.
@xhd2015
Copy link

xhd2015 commented Aug 20, 2024

can try xgo (which has similar APIs) to avoid such problems: https://github.com/xhd2015/xgo

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

No branches or pull requests

2 participants