|
From: Igmar P. <mai...@jd...> - 2005-08-15 10:06:33
|
Hi,
These are all genuine memory leaks :
> ==19807== 74 bytes in 1 blocks are definitely lost in loss record 18 of 57
> ==19807== at 0x1B90459D: malloc (vg_replace_malloc.c:130)
> ==19807== by 0x80514E0: load_file (sources.c:277)
^^^^^^^^^^^^^^^^^^^^^^^^^
This is where the leak is.
> ==19807== by 0x80529A8: source_set_exec_line (sources.c:786)
> ==19807== by 0x804EC31: if_show_file (interface.c:1286)
> ==19807== by 0x804AA55: process_commands (cgdb.c:430)
> ==19807== by 0x804AC37: gdb_input (cgdb.c:539)
> ==19807== by 0x804B403: main_loop (cgdb.c:774)
> ==19807== by 0x804BA84: main (cgdb.c:967)
> ==19807==
> ==19807==
> ==19807== 413 bytes in 52 blocks are definitely lost in loss record 30 of 57
> ==19807== at 0x1B90459D: malloc (vg_replace_malloc.c:130)
> ==19807== by 0x1BA23A5F: strdup (in /lib/libc-2.3.2.so)
> ==19807== by 0x80635CB: xstrdup (sys_util.c:44)
> ==19807== by 0x8063959: invoke_debugger (fork_util.c:178)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is where the leak is
> ==19807== by 0x80574EC: a2_create_context (a2-tgdb.c:208)
> ==19807== by 0x80569C3: tgdb_client_create_context (tgdb_client_interface.c:291)
> ==19807== by 0x80550FA: tgdb_initialize (tgdb.c:383)
> ==19807== by 0x804A6E9: start_gdb (cgdb.c:320)
> ==19807== by 0x804B6DB: main (cgdb.c:879)
> ==19807==
> ==19807==
> ==19807== 14205 (1269 direct, 12936 indirect) bytes in 130 blocks are definitely lost in loss record 33 of 57
> ==19807== at 0x1B90459D: malloc (vg_replace_malloc.c:130)
> ==19807== by 0x806355E: xmalloc (sys_util.c:28)
> ==19807== by 0x8061936: ibuf_init (ibuf.c:16)
^^^^^^^^^^^^^^^^^^^^^
This is where the leak is.
> ==19807== by 0x80596F9: state_machine_initialize (state_machine.c:69)
> ==19807== by 0x8057555: a2_initialize (a2-tgdb.c:231)
> ==19807== by 0x8056AB1: tgdb_client_initialize_context (tgdb_client_interface.c:317)
> ==19807== by 0x805516D: tgdb_initialize (tgdb.c:396)
> ==19807== by 0x804A6E9: start_gdb (cgdb.c:320)
> ==19807== by 0x804B6DB: main (cgdb.c:879)
> ==19807==
> ==19807==
> ==19807== 7265 (516 direct, 6749 indirect) bytes in 3 blocks are definitely lost in loss record 34 of 57
> ==19807== at 0x1B904F75: calloc (vg_replace_malloc.c:175)
> ==19807== by 0x1B969130: _nc_setupterm (in /lib/libncurses.so.5.4)
> ==19807== by 0x1B969C15: tgetent (in /lib/libncurses.so.5.4)
> ==19807== by 0x1B99E5F2: _rl_init_terminal_io (in /lib/libreadline.so.5.0)
> ==19807== by 0x1B98C23A: (within /lib/libreadline.so.5.0)
> ==19807== by 0x1B98C1A4: rl_initialize (in /lib/libreadline.so.5.0)
> ==19807== by 0x1B99DE38: (within /lib/libreadline.so.5.0)
> ==19807== by 0x80616CF: rline_initialize (rline.c:91)
> ==19807== by 0x804B635: init_readline (cgdb.c:858)
> ==19807== by 0x804B760: main (cgdb.c:896)
This is a leak in the libedit / ncurses library. I've also seen them in my
apps, but havent't bothered to fix them.
> ==19807==
> ==19807==
> ==19807== 1326 bytes in 2 blocks are possibly lost in loss record 39 of 57
> ==19807== at 0x1B90459D: malloc (vg_replace_malloc.c:130)
> ==19807== by 0x1B96EC2E: _nc_read_file_entry (in /lib/libncurses.so.5.4)
> ==19807== by 0x1B96F3E3: (within /lib/libncurses.so.5.4)
> ==19807== by 0x1B96F460: (within /lib/libncurses.so.5.4)
> ==19807== by 0x1B96F641: _nc_read_entry (in /lib/libncurses.so.5.4)
> ==19807== by 0x1B96943C: _nc_setupterm (in /lib/libncurses.so.5.4)
> ==19807== by 0x1B969C15: tgetent (in /lib/libncurses.so.5.4)
> ==19807== by 0x1B99E5F2: _rl_init_terminal_io (in /lib/libreadline.so.5.0)
> ==19807== by 0x1B99E92E: rl_reset_terminal (in /lib/libreadline.so.5.0)
> ==19807== by 0x80616EE: rline_initialize (rline.c:96)
> ==19807== by 0x804B635: init_readline (cgdb.c:858)
> ==19807== by 0x804B760: main (cgdb.c:896)
See comment above.
Igmar
|