FFTW / fftw3

DO NOT CHECK OUT THESE FILES FROM GITHUB UNLESS YOU KNOW WHAT YOU ARE DOING. (See below.)
GNU General Public License v2.0
2.72k stars 661 forks source link

"print-plan.c" causing segmentation fault #306

Closed ZitingLiu closed 1 year ago

ZitingLiu commented 1 year ago

I believe line 27&44 in print-plan.c should be: "plan pln = p" instead of "plan pln = p->pln" since plan has no attribute called plan

stevengj commented 1 year ago

No, the line is correct as is. The struct does indeed have a field pln. (If we had a bug on this line, don't you think we would have noticed some time in the past 20 years that FFTW was failing to compile?)

If you are getting a crash on that line, you must be passing an invalid plan p. For example, perhaps you are passing NULL or a plan you have destroyed.