[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread STINNER Victor
STINNER Victor added the comment: > I am wondering why 53/22? 5/2 is as good for 8-bytes long -- both gives > 21-bytes buffer. 53/22 is closer to math.log(256)/math.log(10) than 5/2, and 8*53 should not overflow :-) -- ___ Python tracker

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am wondering why 53/22? 5/2 is as good for 8-bytes long -- both gives 21-bytes buffer. I do not propose to change anything. It is just curiosity. -- nosy: +serhiy.storchaka ___ Python tracker

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread miss-islington
miss-islington added the comment: New changeset 1c70d40e94741578ce28b8851fb65372ac2e7942 by Miss Islington (bot) in branch '3.9': bpo-26564: fix obsolete comment in traceback.c (GH-23819) https://github.com/python/cpython/commit/1c70d40e94741578ce28b8851fb65372ac2e7942 -- _

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread miss-islington
miss-islington added the comment: New changeset cecbaa3a80d5ae28cdd4129d6d2c4395c12a89e4 by Miss Islington (bot) in branch '3.8': bpo-26564: fix obsolete comment in traceback.c (GH-23819) https://github.com/python/cpython/commit/cecbaa3a80d5ae28cdd4129d6d2c4395c12a89e4 -- _

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 40125ab3252453bf205ed906e46bf9741c27bf9d by Irit Katriel in branch 'master': bpo-26564: fix obsolete comment in traceback.c (GH-23819) https://github.com/python/cpython/commit/40125ab3252453bf205ed906e46bf9741c27bf9d -- __

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +22681 pull_request: https://github.com/python/cpython/pull/23821 ___ Python tracker ___ __

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +22680 pull_request: https://github.com/python/cpython/pull/23820 ___ Python tracker _

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +22679 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23819 ___ Python tracker ___

[issue26564] Malloc debug hooks: display memory block traceback on error

2020-12-17 Thread Irit Katriel
Irit Katriel added the comment: I'm reopening this to commit a fix for a comment which became obsolete following this change: https://hg.python.org/cpython/rev/18a19e62bac5. -- nosy: +iritkatriel status: closed -> open ___ Python tracker

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b079adb0774 by Victor Stinner in branch 'default': Enhance documentation on malloc debug hooks https://hg.python.org/cpython/rev/7b079adb0774 -- ___ Python tracker __

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-16 Thread STINNER Victor
STINNER Victor added the comment: Ok, buildbots are green again. I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-16 Thread STINNER Victor
STINNER Victor added the comment: Martin Panter added the comment: > FYI Victor if you haven’t already noticed, the Windows buildbots are choking > on a variable-length array: Thank you, sometimes I miss buildbot failures. I pushed changes which had 2 tests, so I knew that all buildbots were r

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f2284ecf9c6 by Victor Stinner in branch 'default': Fix compilation error of traceback.c on Windows https://hg.python.org/cpython/rev/5f2284ecf9c6 -- ___ Python tracker

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-16 Thread Martin Panter
Martin Panter added the comment: FYI Victor if you haven’t already noticed, the Windows buildbots are choking on a variable-length array: ..\Python\traceback.c(513): error C2057: expected constant expression [D:\buildarea\3.x.bolen-windows10\build\PCbuild\pythoncore.vcxproj] ..\Python\tracebac

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 769dfcb701ee by Victor Stinner in branch 'default': Issue #26564: Fix test_capi https://hg.python.org/cpython/rev/769dfcb701ee -- ___ Python tracker __

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8215dae7ec3c by Victor Stinner in branch 'default': Oops, revert unwanted change used to create an example https://hg.python.org/cpython/rev/8215dae7ec3c -- ___ Python tracker

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cef6a32d805f by Victor Stinner in branch 'default': On memory error, dump the memory block traceback https://hg.python.org/cpython/rev/cef6a32d805f -- ___ Python tracker

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 18a19e62bac5 by Victor Stinner in branch 'default': Enhance and rewrite traceback dump C functions https://hg.python.org/cpython/rev/18a19e62bac5 New changeset fea3c6e9a38e by Victor Stinner in branch '3.5': _tracemalloc: store lineno as unsigned in

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-15 Thread STINNER Victor
STINNER Victor added the comment: I reviewed my own patch on Rietveld :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-15 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #26567: "Use tracemalloc to display the traceback where an object was allocated when a ResourceWarning is emitted". -- ___ Python tracker __

[issue26564] Malloc debug hooks: display memory block traceback on error

2016-03-14 Thread STINNER Victor
New submission from STINNER Victor: Python implements debug hooks on Python memory allocators: https://docs.python.org/dev/c-api/memory.html#c.PyMem_SetupDebugHooks Problem: buffer understand and buffer overflow are only detected when a memory block is released, which may occur far from the cod