[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2021-06-15 Thread asterite
Change by asterite : -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/issue30260> ___ ___ Python-bugs-list

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-11 Thread asterite
asterite added the comment: Sorry if I misunderstood how the bug tracker works, but why did you delete version 3.4 ? Python 3.4 is also affected. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
asterite added the comment: I made up a small program to reproduce an issue, it consists of two files, test.py and test2.py, the second one is imported as a module by the first one, so they should be but in the same dir. # ls test.py test2.py # python3.5 test.py test Segmentation fault

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
Changes by asterite <aster...@seclab.cs.msu.su>: Added file: http://bugs.python.org/file46848/test2.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
Changes by asterite <aster...@seclab.cs.msu.su>: Added file: http://bugs.python.org/file46847/test.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
New submission from asterite: I faced a crash during iterpreter shutdown (Py_Finalize), in final garbage collection phase. The reason, as far as I could understand, was the following: In Python 3, when an unclosed socket is destroyed, it issues a ResourceWarning, which contains a string