https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99965
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Juan Lucas Rey from comment #4)
> I get the error "cannot find -lubsan" with -fsanitize=alignment
You must not have all of the correct packages install; not a GCC issue.
>
> g++ bug.cpp -o bug -O2 -ftree-loop-vectorize -fvect-cost-model && ./bug
>
> this also reproduces the segfault
Yes so this is an alignment issue. NOT a GCC bug.
Check to make sure you have the correct alignment here:
char** ppArray0 = reinterpret_cast<char**>(pBuf);