[llvm-bugs] [Bug 30639] New: CGDebugInfo Null dereference with OpenMP array access
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 7 11:12:54 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30639
Bug ID: 30639
Summary: CGDebugInfo Null dereference with OpenMP array access
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: erich.keane at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Reproducer:
void fobj_offset(int n) {
int i;
int cen[n];
#pragma omp parallel for
for (i=0; i<n; i++) {
cen[i]=i;
}
}
clang -c -fopenmp -g repro.cpp
Running the above results in a crash as a result of CGDebugInfo::CreateType.
On CGDebugInfo.cpp:2184, VAT->getSizeExpr() is NULL, thus EvaluateAsInt causes
a seg fault when it dereferences "this".
This error was introduced in R279445.
I've prepared a patch, so putting under review right after this gets posted.
--
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/20161007/4fca3f32/attachment.html>
More information about the llvm-bugs
mailing list