[llvm-bugs] [Bug 49770] New: Flang segmentation fault when compiling large data block with comment

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 30 03:14:14 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49770

            Bug ID: 49770
           Summary: Flang segmentation fault when compiling large data
                    block with comment
           Product: flang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedbugs at nondot.org
          Reporter: ohnishi at m.mpat.go.jp
                CC: David.Truby at arm.com, jperier at nvidia.com,
                    kirankumartp at gmail.com, llvm-bugs at lists.llvm.org,
                    sscalpone at nvidia.com

Created attachment 24707
  --> https://bugs.llvm.org/attachment.cgi?id=24707&action=edit
Comment on the line 504 causese segmantation fault

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210330/610978c0/attachment-0001.html>


More information about the llvm-bugs mailing list