-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix carton dev
crashing with SO sanitizer
#239
Conversation
loadingMessage: "Compiling...", | ||
parser: DiagnosticsParser(), | ||
parser: nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @carson-katri I'm disabling this parser for now since it sometimes fails to parse project errors, but lets through the GTK warning. This causes confusing diagnostic messages as reported in #241. A better long-term solution would be to implement #181 instead, I hope to get to it at some point, unless someone else is willing to take this over.
ffd3a27
to
63e25f8
Compare
Previously, the file we need to include with the build to enable the stack overflow sanitizer was written as a temporary file. This didn't happen though on watcher rebuilds with
carton dev
and caused crashes when a code line containingtry!
relying on this file to be present was executed.I think it's easier and more efficient to bundle this file in the
static.zip
file that already includes our JS entrypoints. We requirestatic.zip
to be downloaded and unpacked successfully into~/.carton/static
before every build anyway. It makes more sense to sense the sanitizer file in~/.carton/static/so_sanitizer.wasm
and use that instead writing and deleting it at a temporary path on every build.I've also updated the JSKit dependency and cleaned up some linter warnings by moving large tuple values into a separate
BuildDescription
type.