llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[flang] Fortran/gfortran/regression/entry_23.f crashes on several non-x86 platforms

Open tarunprabhu opened this issue 1 year ago • 1 comments

The entry_23.f test in the gfortran test suite fails because it raises a segmentation fault at runtime on AArch64 and LoongArch, but works correctly on x86. It is possible that this test fails on other non-x86 platforms as well, but these are the only two of which I am aware.

Steps to reproduce. Compile entry_23.f and run the resulting executable. For example, from the root of a checkout of the llvm-test-suite, this would be:

$ flang -o ./entry_23 ./Fortran/gfortran/regression/entry_23.f
$ ./entry_23

Unexpected failure on AArch64

$ ./entry_23
 CHAR_SUB
 len(carray(1)) 20
zsh: segmentation fault  ./entry_23

Expected success on x86

 CHAR_SUB
 len(carray(1)) 20
 Something           Something           Something           Something         
   
 CHAR_SUB
 len(carray(1)) 20
 Something           Something           Something           Something         
   
Fortran STOP

tarunprabhu avatar Dec 10 '24 17:12 tarunprabhu

This test also fails with the same behavior on powerpc64le.

kkwli avatar Dec 11 '24 17:12 kkwli