purify report from testall run

lance@markv.com
Mon, 13 Sep 93 16:36:15 PDT

I was curious about memory usage in Python...
I compiled python for purify and ran 'testall' to give it a good test..

here is the pyrify report..

Purify'd python (pid 19353)
Purify 2 (C) 1990-93 Pure Software Inc. Patents Pending.
Contact us at: support@pure.com or (408) 720 1600.
In Europe: support@pts.co.uk or (+44) 61 776 4499.
Purify checking enabled.

**** Purify'd python (pid 19353) ****
Purify (umr): uninitialized memory read:
* This is occurring while in:
initstrop [line 385, stropmodule.c, pc=0x46b1c]
init_builtin [line 403, import.c, pc=0x753fc]
import_module [line 341, import.c, pc=0x74ee4]
eval_code [line 1202, ceval.c, pc=0x526c0]
get_module [line 317, import.c, pc=0x74cb8]
load_module [line 327, import.c, pc=0x74da8]
* Reading 4 bytes from 0xf7ffd994 on the stack
This is local variable "s" in function initstrop.
>>>
Purify: Searching for all memory leaks...
There are 3967 leaked bytes (7.98% of the 49683 allocated bytes in the heap)

28 bytes (2 times) +
27 + 26 (4 times) + 24 (9 times) + 23 (8 times) + 22 (7 times) +
21 (14 times) + 20 (6 times) + 18 (16 times) + 17 (3 times). Last memory leak at 0x2324e0
Report (mlk): 1494 total bytes lost, malloc called from:
newstringobject [line 52, stringobject.c, pc=0x3541c]
compile [line 2278, compile.c, pc=0x6cbb4]
com_funcdef [line 1774, compile.c, pc=0x6a434]
com_node [line 1845, compile.c, pc=0x6ac88]
com_node [line 1871, compile.c, pc=0x6ae20]
com_node [line 1856, compile.c, pc=0x6ace4]

16 bytes + 15 (8 times) + 14 (8 times) + 13 (15 times) +
12 (11 times) + 11 Last memory leak at 0x141258
Report (mlk): 586 total bytes lost, malloc called from:
initmodule [line 45, modsupport.c, pc=0x23b18]
initposix [line 1232, posixmodule.c, pc=0x2ba38]
init_builtin [line 403, import.c, pc=0x753fc]
import_module [line 341, import.c, pc=0x74ee4]
eval_code [line 1202, ceval.c, pc=0x526c0]
eval_node [line 323, pythonrun.c, pc=0x2e1a0]

19 bytes + 18 (2 times) + 17 (4 times) + 16 (3 times) + 15 (5 times) +
14 (7 times) + 13 (13 times) + 12 Last memory leak at 0x1379d0
Report (mlk): 525 total bytes lost, malloc called from:
initmodule [line 45, modsupport.c, pc=0x23b18]
initbuiltin [line 890, bltinmodule.c, pc=0x4d7c4]
initall [line 77, pythonrun.c, pc=0x2cca4]
main [line 133, pythonmain.c, pc=0x1a380]
start [crt0.o, pc=0x2064]

27 bytes + 26 (2 times) + 24 + 22 + 21 (8 times) + 20 (3 times). Last memory leak at 0x1c26e0
Report (mlk): 353 total bytes lost, malloc called from:
__gnu_compiled_c [line 34, stringobject.c, pc=0x352f0]
r_object [line 334, marshal.c, pc=0x212fc]
r_object [line 385, marshal.c, pc=0x218b0]
r_object [line 360, marshal.c, pc=0x215b4]
r_object [line 382, marshal.c, pc=0x21850]
rd_object [line 422, marshal.c, pc=0x21d00]

12 bytes (5 times) + 11 (11 times) + 10 (6 times). Last memory leak at 0x159e40
Report (mlk): 241 total bytes lost, malloc called from:
initmodule [line 45, modsupport.c, pc=0x23b18]
initmath [line 221, mathmodule.c, pc=0x23718]
init_builtin [line 403, import.c, pc=0x753fc]
import_module [line 341, import.c, pc=0x74ee4]
eval_code [line 1202, ceval.c, pc=0x526c0]
get_module [line 317, import.c, pc=0x74cb8]

22 bytes (3 times) + 21 (5 times) + 20 (2 times) + 19 Last memory leak at 0x13b508
Report (mlk): 230 total bytes lost, malloc called from:
newstringobject [line 52, stringobject.c, pc=0x3541c]
list_builtin_module_names [line 165, sysmodule.c, pc=0x3afc4]
initsys [line 195, sysmodule.c, pc=0x3b428]
initall [line 78, pythonrun.c, pc=0x2ccac]
main [line 133, pythonmain.c, pc=0x1a380]
start [crt0.o, pc=0x2064]

17 bytes (2 times) + 16 + 14 + 13 (2 times) + 12 (2 times) +
11 Last memory leak at 0x1437c0
Report (mlk): 125 total bytes lost, malloc called from:
initmodule [line 45, modsupport.c, pc=0x23b18]
inittime [line 365, timemodule.c, pc=0x3cb7c]
init_builtin [line 403, import.c, pc=0x753fc]
import_module [line 341, import.c, pc=0x74ee4]
eval_code [line 1202, ceval.c, pc=0x526c0]
get_module [line 317, import.c, pc=0x74cb8]

19 bytes + 18 + 16 + 13 (5 times). Last memory leak at 0x1fc230
Report (mlk): 118 total bytes lost, malloc called from:
initmodule [line 45, modsupport.c, pc=0x23b18]
initstrop [line 376, stropmodule.c, pc=0x46a2c]
init_builtin [line 403, import.c, pc=0x753fc]
import_module [line 341, import.c, pc=0x74ee4]
eval_code [line 1202, ceval.c, pc=0x526c0]
get_module [line 317, import.c, pc=0x74cb8]

18 bytes (2 times) + 17 (4 times). Last memory leak at 0x222e48
Report (mlk): 104 total bytes lost, malloc called from:
newstringobject [line 52, stringobject.c, pc=0x3541c]
compile [line 2278, compile.c, pc=0x6cbb4]
com_classdef [line 1821, compile.c, pc=0x6a930]
com_node [line 1848, compile.c, pc=0x6acb0]
com_node [line 1871, compile.c, pc=0x6ae20]
com_node [line 1856, compile.c, pc=0x6ace4]

Report (mlk): 53 bytes at 0x13bab0 lost, malloc called from:
realloc [p5.o, pc=0x4a24]
ins1 [line 133, listobject.c, pc=0x7f74c]
addlistitem [line 173, listobject.c, pc=0x7fb40]
list_builtin_module_names [line 168, sysmodule.c, pc=0x3b000]
initsys [line 195, sysmodule.c, pc=0x3b428]
initall [line 78, pythonrun.c, pc=0x2ccac]

16 bytes + 14 + 10 Last memory leak at 0x13a800
Report (mlk): 40 total bytes lost, malloc called from:
initmodule [line 45, modsupport.c, pc=0x23b18]
initsys [line 180, sysmodule.c, pc=0x3b1f0]
initall [line 78, pythonrun.c, pc=0x2ccac]
main [line 133, pythonmain.c, pc=0x1a380]
start [crt0.o, pc=0x2064]

19 bytes (2 times). Last memory leak at 0x1408b8
Report (mlk): 38 total bytes lost, malloc called from:
__gnu_compiled_c [line 34, stringobject.c, pc=0x352f0]
do_mkvalue [line 489, modsupport.c, pc=0x26330]
do_mktuple [line 422, modsupport.c, pc=0x257f8]
do_mkvalue [line 448, modsupport.c, pc=0x25d1c]
vmkvalue [line 556, modsupport.c, pc=0x26690]
mkvalue [line 537, modsupport.c, pc=0x26568]

Report (mlk): 24 bytes at 0x140860 lost, malloc called from:
newtupleobject [line 39, tupleobject.c, pc=0x3cff0]
do_mktuple [line 419, modsupport.c, pc=0x25788]
do_mkvalue [line 448, modsupport.c, pc=0x25d1c]
vmkvalue [line 556, modsupport.c, pc=0x26690]
mkvalue [line 537, modsupport.c, pc=0x26568]
inittime [line 394, timemodule.c, pc=0x3ce04]

Report (mlk): 17 bytes at 0x1f60d8 lost, malloc called from:
__gnu_compiled_c [line 34, stringobject.c, pc=0x352f0]
r_object [line 334, marshal.c, pc=0x212fc]
r_object [line 385, marshal.c, pc=0x218b0]
rd_object [line 422, marshal.c, pc=0x21d00]
get_module [line 232, import.c, pc=0x745c8]
reload_module [line 364, import.c, pc=0x750e4]

Report (mlk): 16 bytes at 0x13b168 lost, malloc called from:
__gnu_compiled_c [line 47, listobject.c, pc=0x7eff4]
list_builtin_module_names [line 160, sysmodule.c, pc=0x3af3c]
initsys [line 195, sysmodule.c, pc=0x3b428]
initall [line 78, pythonrun.c, pc=0x2ccac]
main [line 133, pythonmain.c, pc=0x1a380]
start [crt0.o, pc=0x2064]

Report (mlk): 3 bytes at 0x2187c8 lost, malloc called from:
parsetok [line 157, parsetok.c, pc=0x887cc]
parsestring [line 56, parsetok.c, pc=0x87e50]
parse_string [line 372, pythonrun.c, pc=0x2e47c]
run_string [line 270, pythonrun.c, pc=0x2de1c]
exec_eval [line 224, bltinmodule.c, pc=0x4a148]
builtin_exec [line 240, bltinmodule.c, pc=0x4a200]

Purify Heap Analysis (combining suppressed and unsuppressed chunks)

Chunks Bytes
Leaked 232 3967
Potentially Leaked 0 0
In-Use 270 45716
----------------------------------------
Total Allocated 502 49683

**** Purify'd python (pid 19353) ****
* 1 access error.
* Basic memory usage:
983032 code
275936 data/bss
1425424 heap
3208 stack
* Shared library memory usage:
696320 libc_pure_200.so.1.7 (shared code)
16384 libc_pure_200.so.1.7 (private data)
8192 libinternal_stubs.so.1.0 (shared code)
8192 libinternal_stubs.so.1.0 (private data)

- --

Lance Ellinghouse lance@markv.com

1231 bit key fingerprint = 56 DA 31 0C 17 51 36 6A 4E D4 E0 11 D9 B8 06 0A
1024 bit key fingerprint = 66 2C 75 F2 E9 1C 32 84 3A E3 B0 5E 48 01 4C 37
You can receive my Public Key by `finger lance@mark.com`