[issue9448] test_io leaks memory

Mark Dickinson report at bugs.python.org
Sun Aug 1 17:53:16 CEST 2010


New submission from Mark Dickinson <dickinsm at gmail.com>:

regrest -L detects a memory leak in test_io, on OS X 10.6.4.


newton:py3k dickinsm$ ./python.exe Lib/test/regrtest.py -L test_io
test_io

Testing large file ops skipped on darwin.
It requires 2147483648 bytes and a long time.
Use 'regrtest.py -u largefile test_io' to run it.

Testing large file ops skipped on darwin.
It requires 2147483648 bytes and a long time.
Use 'regrtest.py -u largefile test_io' to run it.
1 test OK.
leaks Report Version:  2.0
Process:         python.exe [71362]
Path:            /Users/dickinsm/python/svn/py3k/python.exe
Load Address:    0x100000000
Identifier:      python.exe
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [18674]

Date/Time:       2010-08-01 16:51:50.332 +0100
OS Version:      Mac OS X 10.6.4 (10F569)
Report Version:  6

Process 71362: 6679 nodes malloced for 14021 KB
Process 71362: 16 leaks for 2048 total leaked bytes.
Leak: 0x10138bb40  size=128  zone: DefaultMallocZone_0x1002f7000	
	0x00000000 0x00000000 0x434f4e44 0x00000000 	........DNOC....
	0x00000000 0x80000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x4d555458 0x00000000 	........XTUM....
	0x00000000 0x00000060 0x00000000 0x00000000 	....`...........
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0x00000000 0x00000000 	................
	0x00000000 0x00000000 0xdbdbdbdb 0x0008dbdb 	................

(15 blocks of similar output omitted)

I'm investigating further...

----------
assignee: ronaldoussoren
components: Extension Modules, Macintosh, Tests
messages: 112348
nosy: mark.dickinson, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: test_io leaks memory
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9448>
_______________________________________


More information about the Python-bugs-list mailing list