Robert Haas <robertmhaas@gmail.com> writes:
> Unfortunately, I can't reproduce this locally, even with COPT=-Wall
> -Werror -fno-omit-frame-pointer -fsanitize-trap=alignment
> -Wno-deprecated-declarations -DWRITE_READ_PARSE_PLAN_TREES
> -DSTRESS_SORT_INT_MIN -DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS.
Now that I re-read what you did, I believe you need both of
-fsanitize=alignment -fsanitize-trap=alignment
to enable those traps to happen. That seems to be the case with
Apple's clang, anyway.
regards, tom lane