calling as_ptr from __asan_default_options
segfaults with -C debuginfo=2
#50066
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
in the process of working around #41807, I found that the following code fragment results in a segmentation fault when run after compilation with
-Z sanitizer=address -C debuginfo=2
.Interestingly, adding
-C opt-level=1
fixes the issue, as does manually inliningas_ptr
(i.e.ASAN_DEFAULT_OPTIONS as *const [u8] as *const u8
).The text was updated successfully, but these errors were encountered: