You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Got Segmentation Fault when use-after-free a ndarray using SharedMemory as its buffer #102349
After going through memoryview's document, I noticed that it seems to be infeasible for numpy to check if its buffer is valid, so I created this issue to see if python community has any solution. Thank you!
Hi @sobolevn, I just tried to use the SharedMemory.buf after free and it threw a ValueError instead of seg fault. So I can't give an example without numpy. I'll report this to the numpy community. Sorry for bothering.
Activity
sobolevn commentedon Mar 1, 2023
Sorry, are you sure that this is a CPython issue and not a numpy issue?
Can you reproduce the same without the use of numpy?
knwng commentedon Mar 1, 2023
Hi @sobolevn, I just tried to use the SharedMemory.buf after free and it threw a ValueError instead of seg fault. So I can't give an example without numpy. I'll report this to the numpy community. Sorry for bothering.
sobolevn commentedon Mar 1, 2023
No worries, happy to help! :)