[llvm-bugs] [Bug 31054] New: Global Variable Optimizer segmentation fault on valid input

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 18 04:24:08 PST 2016


            Bug ID: 31054
           Summary: Global Variable Optimizer segmentation fault on valid
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: juergen.hunold at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17610
  --> https://llvm.org/bugs/attachment.cgi?id=17610&action=edit
Reduced testcase with stackstrace and run script

When compiling the attached reduced test case, current clang segfaults with

1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'Global Variable Optimizer' on module 'report.ii'.
Segmentation fault (core dumped)

Full diagnostics in attached test case

It seems that the creation of a static variable after the assert() triggers

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/20161118/6e31471b/attachment-0001.html>

More information about the llvm-bugs mailing list