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

Fix carton dev crashing with SO sanitizer #239

Merged
merged 20 commits into from
May 24, 2021
Merged

Conversation

MaxDesiatov
Copy link
Collaborator

@MaxDesiatov MaxDesiatov commented May 23, 2021

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 containing try! 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 require static.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.

@MaxDesiatov MaxDesiatov added bug Something isn't working refactor No user-visible functionality change labels May 23, 2021
@MaxDesiatov MaxDesiatov changed the base branch from main to fix-ci May 23, 2021 12:45
@MaxDesiatov MaxDesiatov requested a review from a team May 23, 2021 13:30
Base automatically changed from fix-ci to main May 23, 2021 14:06
j-f1
j-f1 previously approved these changes May 23, 2021
loadingMessage: "Compiling...",
parser: DiagnosticsParser(),
parser: nil,
Copy link
Collaborator Author

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.

@MaxDesiatov MaxDesiatov linked an issue May 23, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor No user-visible functionality change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

carton test command unable to find gtk+3 using --template tokamak
2 participants