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

Set environment variable LIBCLANG_DISABLE_CRASH_RECOVERY=1 as possible fix for sbcl crashing. #10

Open
jolby opened this issue Jul 13, 2022 · 1 comment

Comments

@jolby
Copy link

jolby commented Jul 13, 2022

Reference:
https://reviews.llvm.org/D23662

Before setting this environment variable sbcl crashes nearly every time I run claw (as per the warning on the project front page). After setting this, sbcl has successfully run on some fairly large bindings (aw-skia). Note that while libclang has the exported function: clang_toggleCrashRecovery, this is not sufficient because libclang will destructively install its own signal handlers in clang_createIndex unless this environment variable is set.

@borodust
Copy link
Owner

This is extremely helpful observation! Thank you. I'll try it out and add to docs as soon as I get back to claw. Maybe I'll also just patch libclang, because why not.

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

No branches or pull requests

2 participants