Closed llvmbot closed 2 years ago
mentioned in issue llvm/llvm-bugzilla-archive#3541
This bug has been marked as a duplicate of bug llvm/llvm-bugzilla-archive#3541
Sorry, I forgot to copy the stdlib.h header :) Yeah, I suspect it's a dupe.
Is that a faithful reduction? Did the original source file not include stdlib.h?
If so, this is a dup of bug 3527.
Here's a reduction that segfaults:
void f(void) { float f = (float )malloc(10 * sizeof(float));
f[0]; }
int main() { f(); }
Extended Description
clang/x86_64 miscompiles SingleSource/Benchmarks/Misc/himenobmtxpa
The generated executable crashes:
ddunbar@lordcrumb:Misc$ Output/himenobmtxpa.native mimax = 64 mjmax = 64 mkmax = 128 imax = 63 jmax = 63 kmax =127 Loop executed for 64 times Gosa : 2.395185e-03 ddunbar@lordcrumb:Misc$ Output/himenobmtxpa.llc mimax = 64 mjmax = 64 mkmax = 128 imax = 63 jmax = 63 kmax =127 Segmentation fault