Closed aidanjohnson closed 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.
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].