Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

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

Closed Quuxplusone closed 15 years ago

Quuxplusone commented 15 years ago
Bugzilla Link PR3531
Status RESOLVED DUPLICATE of bug 3541
Importance P normal
Reported by Daniel Dunbar (daniel@zuster.org)
Reported on 2009-02-09 17:09:14 -0800
Last modified on 2009-02-10 16:17:49 -0800
Version unspecified
Hardware PC All
CC andersca@icloud.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
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
--
Quuxplusone 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();
}
Quuxplusone 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.

Quuxplusone commented 15 years ago

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

Quuxplusone commented 15 years ago

_This bug has been marked as a duplicate of bug 3541_