Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com> writes:> I recall seeing "bus error" on sparc with other patches because of> alignment issues, so I wonder if this is what's happening here.
Try compiling with the address sanitizer enabled. Per c.h,
* Testing can be done with "-fsanitize=alignment -fsanitize-trap=alignment" * on clang, or "-fsanitize=alignment -fno-sanitize-recover=alignment" on gcc.
regards, tom lane