[Python-Dev] Re: [python-committers] Upcoming 3.7.9 and 3.6.12 Security Releases

2020-08-12 Thread Vinay Sharma via Python-Dev
Hi, I am sorry to intrude in this thread. But I think there is a vulnerability in macos caused by ftruncate. For instance running the following code abruptly crashed macos (mojave and catalina). ``` from multiprocessing.shared_memory import SharedMemory shm = SharedMemory(name='test-crash', crea

[Python-Dev] Premature Destruction of Shared Memory

2020-08-06 Thread Vinay Sharma via Python-Dev
As suggested by Guido I am posting a potential solution to the following problem for review. Problem A quick fix for this problem is to prevent resource tracker from handling destruction/unlinking of shared memory. A PR