-
Notifications
You must be signed in to change notification settings - Fork 133
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
Qjs errors with on darwin asan #841
Comments
It's probably because due to how much ASN bloats the stack size the check doesn't pass. Rather than doing that you can override it at the app layer by setting the stack size to 0 when compiling under ASAN. qjs itself it able to run under ASAN no problem, I suppose because the extra JS code it runs is minimal. |
Oh nice, thanks for the answer, so setting |
Or by calling the api in the constructor at runtime. Thanks |
Yep, you can do this: #if __has_feature(address_sanitizer)
JS_SetMaxStackSize(rt, 0);
#endif Or you can play with it until you find the right value. It's 1MB by default. |
Nicee, thanks! Will let you know how it goes ;) |
Solved here radareorg/radare2#23911 Thanks for clarifying |
Hi all,
While working on r2, @trufae has found an issue with asan while running qjs on Mac. Namely:
The patch that makes it work is the following:
But idk if that's an elegant solution to this problem.
The text was updated successfully, but these errors were encountered: