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

Crash on Windows when throwing error #30

Open
dibyendumajumdar opened this issue Apr 25, 2015 · 7 comments
Open

Crash on Windows when throwing error #30

dibyendumajumdar opened this issue Apr 25, 2015 · 7 comments

Comments

@dibyendumajumdar
Copy link
Owner

On Windows there is occasionally a crash when Lua attempts a Longjmp because an error has been raised. Windows complains about misaligned or invalid stack.

The error does not occur on Linux or MAC OSX (Yosemite).

@dibyendumajumdar
Copy link
Owner Author

@dibyendumajumdar dibyendumajumdar self-assigned this Apr 26, 2015
@dibyendumajumdar
Copy link
Owner Author

It appears that this crashes are happening because LLVM generated JIT code lacks information required by Windows for proper stack unwinding.

http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-April/084918.html

@dibyendumajumdar dibyendumajumdar changed the title Window crash when throwing error Crash on Windows when throwing error Apr 28, 2015
@dibyendumajumdar
Copy link
Owner Author

It seems the error occurs usually in Release Debug builds. Full Release builds or full Debug builds are probably ok.

@dibyendumajumdar
Copy link
Owner Author

@dibyendumajumdar
Copy link
Owner Author

From v0.11 building 32-bit binaries - these do not appear to suffer from the issue

@dibyendumajumdar
Copy link
Owner Author

Since LLVM 4.0 looks like Windows 64-bit support has improved. Keeping this issue open until more testing is done.

@dibyendumajumdar
Copy link
Owner Author

Github bug ticket llvm/llvm-project#24607

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

No branches or pull requests

1 participant