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

Flang segmentation fault when compiling large data block with comment

Open llvmbot opened this issue 5 years ago • 4 comments

Bugzilla Link 49770
Version unspecified
OS Linux
Attachments Comment on the line 504 causese segmantation fault
Reporter LLVM Bugzilla Contributor
CC @jeanPerier,@kiranchandramohan,@kiranktp,@sscalpone

Extended Description

A segmentation fault occurs in case there is a comment at the end of a data block with a large number of elements (>496). This happens in flang-7(supplied by Debian buster), flang-10 (Aocc2.2), and flang-11 (Aocc2.3).

gfortran8.3 and ifort2021.1 can compile this attached file by "gfortran -c test.f", and "ifort -c test.f" respectively.

My PC's output of "uname -a" is Linux mypc 5.10.0-0.bpo.3-amd64 #​1 SMP Debian 5.10.13-1~bpo10+1 (2021-02-11) x86_64 GNU/Linux

llvmbot avatar Mar 30 '21 10:03 llvmbot

Hello Seiki Ohnishi, Thanks for reporting this issue. This issue has been fixed. Next AOCC release compiler (AOCC3.2) will have the fix for this issue.

kiranktp avatar May 19 '21 09:05 kiranktp

Thanks for telling. I did it so. https://github.com/flang-compiler/flang/issues/1041

llvmbot avatar Apr 26 '21 01:04 llvmbot

Hello Seiki Ohnishi,

I think the AOCC compiler is currently based on Classic Flang (https://github.com/flang-compiler/flang). Could you report the issue there?

kiranchandramohan avatar Apr 22 '21 14:04 kiranchandramohan

Closing this one. Just to be safe, I tested it with 435a176db9cf7fe1 (main today). flang-new -c test.f ran without errors on my machine (Ubuntu 21.10 on x86).

ekieri avatar Apr 05 '22 20:04 ekieri