I am getting a segmentation fault while executing a MPI+OpneMP program compiled with O3 flag. Sample program structure is given below
There seems to be a bug related to a wrong assumption of calling convention of a function returning a packed struct. The generated function's code writes the full 5-byte struct to the RAX register but the calling code tries to pass a return address through the RCX register and then reads from the passed address on the stack (while overwriting the real result in RAX). When the returned struct...
Attached is a (preprocessed) source file that triggers the error.