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

Apple M2 #19

Open
JetSetIlly opened this issue Aug 16, 2022 · 1 comment
Open

Apple M2 #19

JetSetIlly opened this issue Aug 16, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@JetSetIlly
Copy link
Owner

JetSetIlly commented Aug 16, 2022

Would anyone with access to a Mac with an M2 processor be able to help me debug an issue I'm having with Gopher2600?

The emulator has worked well for several years on Linux, Windows and MacOS
(Intel CPUs) but will immediately crash when compiled for MacOS with an M2.

The problem I'm having is that I don't have M2 hardware immediately available:

The error printed to stdout in the event of the crash is:

"signal 16 received but handler not on signal stack
fatal error: non-Go code set up signal handler without SA_ONSTACK flag"

Looking at the go.mod file we can see there are a couple of packages that might
be the cause of this and the documentation for the signal package explains why.

https://pkg.go.dev/os/signal#hdr-Go_programs_that_use_cgo_or_SWIG

Yes, this should be fixed but more importantly, there is some other error,
probably in my Go code, that is causing the signal to be raised.

The help I need therefore is:

  1. Figuring out which package is not setting up a signal handler correctly
  2. Finding the reason why the signal is being raised.
@JetSetIlly JetSetIlly added bug Something isn't working help wanted Extra attention is needed labels Aug 16, 2022
@JetSetIlly
Copy link
Owner Author

The remote testing I've managed to do so far, has established that the error is
in the GUI part of the program. If I run the emulator in terminal mode, there
is no crash.

My current educated guess is that it's a problem with how I'm using the GPU texture units and/or how I'm setting up the shaders.

@JetSetIlly JetSetIlly pinned this issue Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant