[llvm-bugs] [Bug 25075] New: 'pragma weak' causes a segmentation fault (core dump)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 6 07:39:12 PDT 2015


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

            Bug ID: 25075
           Summary: 'pragma weak' causes a segmentation fault (core dump)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andrey.kuleshov at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15011
  --> https://llvm.org/bugs/attachment.cgi?id=15011&action=edit
BACKTRACE for this fail

===============ENVIRONMENT===================
OS: Linux
Platform: x86/x86_64
Exposure: low+ (core dump on a GCC-specific feature)
Defect: compiler crashes with a segmentation fault
clang version 3.8.0 (cfe/trunk 249363)

===============HOW TO REPRODUCE==============
----------test.c-----------
void doesntexist();
void myfunc() { int a =0; }
#pragma weak doesntexist=myfunc
int main() {
  doesntexist();
  return 0;
}
----------------------------
$ clang -c  test.c

==============BACKTRACE=====================
Attached in a bug.txt file

------------------------
Intel Software Engineer
Andrey Kuleshov

-- 
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/20151006/6aa94309/attachment.html>


More information about the llvm-bugs mailing list