Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"double free or corruption" error when built against MKL
03-26-2020, 06:41
Post: #1
"double free or corruption" error when built against MKL
On our system, running PSFEx built against MKL (./configure --enable-mkl) produces this error: '(Abort) double free or corruption'

Rebuilding with debugging symbols (icc -debug full) in gdb shows that it's dying on line 158 of homo.c: free(fbigbasis);
Changing this to QFFTWFREE(fbigbasis); fixes the problem.

I'm surprised this works because QFFTWFREE macro expands to fftwf_free, which MKL defines as: void fftwf_free(void* x) {free(x);}
So it would seem free(fbigbasis) is the same as fftwf_free(fbigbasis), but obviously not.

Am I doing something wrong in my Makefile or in my environment?
With CC=icc and CFLAGS=' -O2 -Wall', we build like this:
autoconf -o configure configure.ac
./configure --enable-mkl
make

Thanks for any suggestions/advice. (I also created a ticket for this: https://astromatic.net/redmine/issues/1367)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
"double free or corruption" error when built against MKL - luvaul - 03-26-2020 06:41

Forum Jump:


User(s) browsing this thread: 1 Guest(s)