[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-24 Thread Alex Budovski


Change by Alex Budovski :


--
nosy:  -Alex Budovski

___
Python tracker 
<https://bugs.python.org/issue1635741>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1635741] Interpreter seems to leak references after finalization

2015-08-18 Thread Alex Budovski

Alex Budovski added the comment:

Interestingly enough, some of the leaked memory came from the finalize routine 
itself! Here's one example:

0:004 !heap -p -a 0x00DB144346F0
address 00db144346f0 found in
_HEAP @ db0cae
  HEAP_ENTRY Size Prev FlagsUserPtr UserSize - state
00db14434690 030a   [00]   00db144346c003074 - (busy)
7ffc55628b04 ntdll!RtlpCallInterceptRoutine+0x0040
7ffc555f9f36 ntdll!RtlAllocateHeap+0x00079836
7ffc2a60c4da ucrtbased!calloc_base+0x123a
7ffc2a60c27d ucrtbased!calloc_base+0x0fdd
7ffc2a60f34f ucrtbased!malloc_dbg+0x002f
7ffc2a60fdde ucrtbased!malloc+0x001e
5a5e6ef9 python36_d!_PyMem_RawMalloc+0x0029
5a5e78c7 python36_d!_PyMem_DebugAlloc+0x0087
5a5e5e6f python36_d!_PyMem_DebugMalloc+0x001f
5a5e7230 python36_d!PyMem_Malloc+0x0030
5a582047 python36_d!new_keys_object+0x0077
5a57f7c5 python36_d!dictresize+0x0085
5a57a4b2 python36_d!PyDict_Merge+0x0112
5a57bf33 python36_d!PyDict_Update+0x0023
5a75fb1d python36_d!PyImport_Cleanup+0x045d
5a778f9e python36_d!Py_Finalize+0x005e

--
nosy: +Alex Budovski

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1635741
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24853] Py_Finalize doesn't clean up PyImport_Inittab

2015-08-12 Thread Alex Budovski

New submission from Alex Budovski:

This means initialize/run script/finalize will crash the second time, since the 
inittab can have stale entries.

--
messages: 248495
nosy: Alex Budovski
priority: normal
severity: normal
status: open
title: Py_Finalize doesn't clean up PyImport_Inittab
type: crash
versions: Python 3.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24853
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24770] Py_Finalize not cleaning up all threads

2015-08-01 Thread Alex Budovski

New submission from Alex Budovski:

This is a known issue, from the comment, but it is causing AVs for my embedded 
application when background threads are created, for example, by the _socket 
builtin module.

/* Undo the effect of Py_Initialize().

   Beware: if multiple interpreter and/or thread states exist, these
   are not wiped out; only the current thread and interpreter state
   are deleted.  But since everything else is deleted, those other
   interpreter and thread states should no longer be used.

   (XXX We should do better, e.g. wipe out all interpreters and
   threads.)

   Locking: as above.

*/

void
Py_Finalize(void)

--
components: Extension Modules, Interpreter Core
messages: 247798
nosy: Alex Budovski
priority: normal
severity: normal
status: open
title: Py_Finalize not cleaning up all threads
versions: Python 3.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24770
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24770] Py_Finalize not cleaning up all threads

2015-08-01 Thread Alex Budovski

Changes by Alex Budovski abudov...@gmail.com:


--
type:  - crash

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24770
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24698] get_externals.bat script fails

2015-07-23 Thread Alex Budovski

New submission from Alex Budovski:

The svn commands need to be wrapped with call, otherwise the batch 
interpreter hangs. Attached simple fix.

--
files: externalsfix.diff
keywords: patch
messages: 247223
nosy: Alex Budovski
priority: normal
severity: normal
status: open
title: get_externals.bat script fails
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file39997/externalsfix.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24698
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com