Ticket #59678: fftw_crash.c

File fftw_crash.c, 286 bytes (added by volgy (Peter Volgyesi), 5 years ago)

Minimal program demonstrating the crash.

Line 
1#include <fftw3.h>
2
3#define N 256
4
5int main()
6{
7    fftw_complex *in, *out;
8    fftw_plan p;
9    in = fftw_alloc_complex(N);
10    out = fftw_alloc_complex(N);
11    p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_MEASURE);
12    fftw_destroy_plan(p);
13    fftw_free(in); fftw_free(out);
14}