ericps1 / crts

GNU General Public License v3.0
12 stars 18 forks source link

Fix the double free/mem corruption issue #6

Closed surligas closed 8 years ago

surligas commented 8 years ago

When the OFDM RX/RX parameters change frequently, a double free memory corruption error can occur. The source of this error was originating from the FFTW.

However the cause is that FFTW plan routines are not re-entrant. When 2 ore more threads call the plan routines of FFTW the result is undifined. Proper locking before any change to the OFDM gen/sycn engine seems that solves the problem.

See also: http://www.fftw.org/fftw3_doc/Thread-safety.html#Thread-safety