This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpp memory leaks


On Wed, May 03, 2000 at 05:39:13PM +0200, Martin Stromberg wrote:
> cpp leaks memory like nothing else. Let me know if this is useful and if you want me to try something else.

This is not particularly useful at the moment; the code it's
complaining about is in the middle of a rewrite.

> MLK: 166 bytes leaked in 3 blocks
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	xmalloc        [xmalloc.c:72]
> 	xstrdup        [xstrdup.c:20]
> 	initialize_standard_includes [cppinit.c:840]
> 	cpp_start_read [cppinit.c:901]
> 	main           [cppmain.c:72]
>   * Block of 90 bytes at 0xcfbc0
>   * Block of 57 bytes at 0xcf8e8
>   * Block of 19 bytes at 0xcf688
> 
> MLK: 147 bytes leaked in 2 blocks
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	xmalloc        [xmalloc.c:72]
> 	concat         [prefix.c:142]
> 	translate_name [prefix.c:280]
> 	update_path    [prefix.c:298]
> 	initialize_standard_includes [cppinit.c:840]
>   * Block of 90 bytes at 0xcfb08
>   * Block of 57 bytes at 0xcf850

Known bug, patch has been waiting for testers for two months.

> MLK: 11 bytes leaked at 0xda498
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	xmalloc        [xmalloc.c:72]
> 	collect_funlike_expansion [cpphash.c:685]
> 	_cpp_create_definition [cpphash.c:908]
> 	do_define      [cpplib.c:380]
> 	_cpp_handle_directive [cpplib.c:306]

Code won't exist much longer.

> 
> PLK: 4112 bytes potentially leaked at 0xcb958
>   * This memory was allocated from:
> 	malloc         [rtlib.o]
> 	xmalloc        [xmalloc.c:72]
> 	init_token_list [cpplex.c:472]
> 	_cpp_init_input_buffer [cpplex.c:2037]
> 	cpp_start_read [cppinit.c:897]
> 	main           [cppmain.c:72]

Spurious, I believe.

zw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]