-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
qjs-ng doesnt work when compiled with asan #636
Comments
We build and test with asan (and ubsan and....) on the CI so it should already work out of the box. Do you build with NDEBUG defined or without? I ask because of this: |
Sounds related to #521 |
Thanks for the quick response, we undefine NDEBUG here: https://github.com/radareorg/radare2/blob/189610e66471342e01ca2df60188930f47af1749/shlr/qjs/Makefile#L29 |
Ah, I see you are not using our build system. We define |
Sure, I am trying it rn, I am sure it's going to work |
Thanks, I've made a PR defining the variable you requested here: radareorg/radare2#23556 Will see what pancake will say. Will inform you on that |
Assuming this still holds true: https://stackoverflow.com/a/78444624 GCC (at least not in all versions with support for ASAN) doesn't have So using our own seems more fool proof here. |
Sounds good, i guess visual studio situation is even worse, but this ifdef at least saved me some time. But considering there’s no generic way to check this sounds like the way to go. Thanks |
Thanks for all, I can close the issue now, sorry for taking your time |
No problem @satk0 ! |
I landed a fix just now (56e5ffa) so there should be no changes necessary anymore on r2's side. |
Hey Again, pancake has just found out, that compiling qjs-ng with asan enabled, makes qjs-ng unusable:

It was already solved by pancake in r2, here: radareorg/radare2@fd4bbe0
It would be great to patch it upstream. Can I get a green light for making a PR implementing just that?
The text was updated successfully, but these errors were encountered: