Python Select.select, Select.poll: Corrupted Double-linked List
I have a rather large client-server network application, written in Python. I'm using select.poll to provide asynchronous capabilities. For the past six months, everything has work
Solution 1:
I managed to fix it by implementing the network code in C and calling it from Python.
Solution 2:
It looks to me like PyGame is checking for input events after the X connection has been closed, due to finalizers. Calling anything in Xlib with a Display *
that's already been passed to XCloseDisplay
means accessing already-freed memory, of course, and if that's what's going on it isn't surprising that glibc's heap becomes corrupted.
If my diagnosis is correct, you won't be able to truly fix it at the application level, but producing a minimal test case and submitting it to the PyGame developers might be productive.
Post a Comment for "Python Select.select, Select.poll: Corrupted Double-linked List"