llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.6k stars 11.82k forks source link

clang/x86_64 miscompiles SingleSource/Benchmarks/Misc/himenobmtxpa #3903

Closed llvmbot closed 2 years ago

llvmbot commented 15 years ago
Bugzilla Link 3531
Resolution DUPLICATE
Resolved on Feb 10, 2009 16:17
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor

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

llvmbot commented 2 years ago

mentioned in issue llvm/llvm-bugzilla-archive#3541

llvmbot commented 15 years ago

This bug has been marked as a duplicate of bug llvm/llvm-bugzilla-archive#3541

llvmbot commented 15 years ago

Sorry, I forgot to copy the stdlib.h header :) Yeah, I suspect it's a dupe.

llvmbot commented 15 years ago

Is that a faithful reduction? Did the original source file not include stdlib.h?

If so, this is a dup of bug 3527.

llvmbot commented 15 years ago

Here's a reduction that segfaults:

void f(void) { float f = (float )malloc(10 * sizeof(float));

f[0]; }

int main() { f(); }