aidanjohnson / dt7816

Acoustic Array for Tracking Coordinated Flight of Foraging Bats
GNU General Public License v3.0
0 stars 0 forks source link

fclose() @ line 89 failing #1

Closed aidanjohnson closed 6 years ago

aidanjohnson commented 6 years ago

Was getting this error earlier: glibc detected free(): invalid next size (normal)

Caused by memory being corrupted. "The most common causes of this error are freeing the same block of memory twice and accessing a block of memory after you've freed it" [1]. See also [2], 3], and [4].

aidanjohnson commented 6 years ago

Resolved: erroneously sized memory allocation for buffer. After fixing this, issues with the while loop popped up. Root cause was found to be mistakes in applying example programs (sig-analyzer and aio-in) to the bat-array. The while loop has been fixed and now the program samples and cycles ad infinitum as is desired. Some changes to the timestamp have been made as well.