fabioz / PyDev.Debugger

Sources for the debugger used in PyDev, PyCharm and VSCode Python
Eclipse Public License 1.0
434 stars 122 forks source link

Using multiprocessing channels caused BytesIO memory leak occasionally in Python 3.12 #270

Open ahmautom opened 11 months ago

ahmautom commented 11 months ago

The issue can be reproduced using below snippet

from multiprocessing import Pipe

def main():
    pipe_output, pipe_input = Pipe()
    pipe_input.send(0)

if __name__ == '__main__':
    main()

And the output: SystemError: deallocated BytesIO object has exported buffers