This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: py3k-pep3137: possible ref leak in ctypes
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: theller Nosy List: christian.heimes, theller
Priority: normal Keywords:

Created on 2007-11-05 00:01 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg57113 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-05 00:01
~/dev/python/py3k-pep3137$ ./python Lib/test/regrtest.py -R 3:5 test_ctypes
test_ctypes
beginning 8 repetitions
12345678
........
test_ctypes leaked [39, -31, 33, -33, 0] references, sum=8
1 test OK.
[101762 refs]
msg57122 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-11-05 13:39
./python Lib/test/regrtest.py -R:: test_ctypes does not report a leak,
so I think there is no leak.
msg57123 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-05 13:53
Thomas Heller wrote:
> Thomas Heller added the comment:
> 
> ./python Lib/test/regrtest.py -R:: test_ctypes does not report a leak,
> so I think there is no leak.

I'm getting

$ ./python Lib/test/regrtest.py -R:: test_ctypes
test_ctypes
beginning 9 repetitions
123456789
.........
test_ctypes leaked [-33, 0, 0, 0] references, sum=-33
1 test OK.
[101762 refs]

Is that ok?

Christian
msg57130 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-11-05 17:18
> $ ./python Lib/test/regrtest.py -R:: test_ctypes
> test_ctypes
> beginning 9 repetitions
> 123456789
> .........
> test_ctypes leaked [-33, 0, 0, 0] references, sum=-33
> 1 test OK.
> [101762 refs]

Yes, I think this is ok.
History
Date User Action Args
2022-04-11 14:56:27adminsetgithub: 45729
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: Python 3.0
2007-11-05 17:21:11christian.heimessetstatus: open -> closed
resolution: not a bug
2007-11-05 17:18:28thellersetmessages: + msg57130
2007-11-05 13:53:43christian.heimessetmessages: + msg57123
2007-11-05 13:39:46thellersetmessages: + msg57122
2007-11-05 00:01:26christian.heimescreate