<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
when compiling mpich-3.1.2 using gcc trunk (which will be gcc 6.0 in a couple of days/weeks), I noticed mpich gets miscompiled when building with CFLAGS='-O2 -ftree-vectorize -g' (but not with just -O2 -g or -O3 -g).<br>
<br>
I believe that the miscompilation happens with the macro MPIDI_Request_create_sreq since a typical trace looks like:<br>
<br>
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.<br>
<br>
Backtrace for this error:<br>
#0  0x33ac83269f in ???<br>
#1  0x7f3743953d69 in MPIDI_Isend_self<br>
    at src/mpid/ch3/src/mpidi_isend_self.c:34<br>
#2  0x7f374394dfa3 in MPID_Isend<br>
    at src/mpid/ch3/src/mpid_isend.c:55<br>
#3  0x7f374390793a in MPIC_Isend<br>
    at src/mpi/coll/helper_fns.c:646<br>
#4  0x7f37438628c5 in MPIR_Alltoall_intra<br>
    at src/mpi/coll/alltoall.c:520<br>
#5  0x7f374386376e in MPIR_Alltoall<br>
    at src/mpi/coll/alltoall.c:726<br>
#6  0x7f3743863827 in MPIR_Alltoall_impl<br>
    at src/mpi/coll/alltoall.c:761<br>
#7  0x7f3743863e7a in PMPI_Alltoall<br>
    at src/mpi/coll/alltoall.c:884<br>
#8  0x7f37424181bf in pmpi_alltoall_<br>
    at src/binding/fortran/mpif_h/alltoallf.c:272<br>
<br>
I don't know mpich well enough to extract a testcase, but it would be great if somebody could extract that and report to the gcc team (I'm happy to do the reporting if needed).<br>
<br>
thanks in advance,<br>
<br>
Joost<br>
<br>
</div>
</body>
</html>