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

macOS build crashes as soon as you want to start a scenario #40

Closed
marijnvdwerf opened this issue Jan 24, 2018 · 4 comments
Closed

macOS build crashes as soon as you want to start a scenario #40

marijnvdwerf opened this issue Jan 24, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@marijnvdwerf
Copy link
Member

Stack alignment issue, but I don't understand where it comes from. AFAIK I hooked all library calls, yet those don't get mentioned during the crash.

* thread #1: tid = 0x2213952, 0xa16bb200 libdyld.dylib`misaligned_stack_error_, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0xa16bb200 libdyld.dylib`misaligned_stack_error_
@IntelOrca
Copy link
Collaborator

IntelOrca commented Jan 24, 2018

It is probably the esp jmp stuff that happens, a.k.a. premature tick termination. I don't have a solution for that other than to implement the places that do it.

@marijnvdwerf
Copy link
Member Author

Adding an align attribute indeed fixes it. [](registers& regs) __attribute__((force_align_arg_pointer)) -> uint8_t {

@rwjuk rwjuk added the bug Something isn't working label Jan 25, 2018
@IntelOrca
Copy link
Collaborator

@marijnvdwerf Is this fixed now?

@marijnvdwerf
Copy link
Member Author

Yes, it was tackled in #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants