-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
-sSINGLE_FILE and -fsanitize=address,undefined #23257
Comments
Perhaps paste the output you are concerned about, as I may not be understanding what you are referring to. I think hex offsets are expected. For example, #include <string.h>
int main(int argc, char *argv[]) {
strcpy(argv[1], argv[0]);
return 0;
} With or without SINGLE_FILE, with ASan (and no argv provided on the commandline) that errors with
Those hex offsets are expected, and SINGLE_FILE can't affect them (it just affects how we store the binary, not offsets in it). |
sorry for the hasty report. my problem is that here is a detailed session that I hope elucidates:
notice that the first compilation reports the file and line that caused the error, while the second compilation is missing this file |
I see now, thanks. Yes, source maps are disabled by SINGLE_FILE as they require a file on the side, and I agree it's confusing not to warn on that. #23292 will add a warning. |
Version of emscripten/emsdk:
this compiles and runs fine!!
THE PROBLEM: sanitizer works fine with
-sSINGLE_FILE
, but when it catches an error, it displays offsets in hex :(I "solved" by removing
-sSINGLE_FILE
, then it shows line in source code correctly when it catches an error!!some solutions:
-sSINGLE_FILE
and-fsanitize=
should not go togethera warning is enough for me <3
The text was updated successfully, but these errors were encountered: