Closed Memotech-Bill closed 7 months ago
@Memotech-Bill - Thanks for reporting this.
Is the crash reproducible?
that memory location is not even mapped into the process, so it cannot be my code
Is it possible that the pointer to that memory location was corrupted and that pointer is in your process?
I will try to reproduce this on an RPi running a 64-bit Raspbian.
I have been using PortAudio on Raspbian 64-bit and have not seen this crash.
Close as not reproducible.
Describe the bug Program abort with the message "memory clobbered before allocated block"
To Reproduce Call Pa_StopStream
Expected behavior Subroutine return
Actual behavior GDB transcript:
On stepping into Pa_StopStream, the program terminates with SIGABRT after outputting the error message "memory clobbered before allocated block".
Looking at the back trace, there is
#6 0xf7ced120 in checkhdr (hdr=0xf6b00458) at mcheck.c:86
.A copy of mcheck.c can be found here.
From this
hdr=0xf6b00458
should point to astruct hdr
However, the contents of the memory at that location after the SIGABRT are clearly not what would be expected for that structure.
Note that prior to stepping into Pa_StopStream, that memory location is not even mapped into the process, so it cannot be my code that is responsible for the corruption.
Desktop (please complete the following information): Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
portaudio19-dev/oldstable,now 19.6.0-1.1 armhf [installed] Portable audio I/O - development files