zsh-workers
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers@sunsite.dk
Subject: Memory leaks found by valgrind and zsh tests
Date: Thu, 18 Dec 2003 17:00:13 -0800 (PST)	[thread overview]
Message-ID: <20031219010013.7064.qmail@web10401.mail.yahoo.com> (raw)

Here are leaks found via valgrind and running zsh against our tests.  For
some reason the completion tests hung, but the other tests seemed to mostly
work.    Latest version from CVS. 

-FR.

 28 bytes in 4 blocks are definitely lost in loss record 2 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  ztrdup (string.c:52)
    by  bin_typeset (builtin.c:2258)
    by  execbuiltin (builtin.c:440)
    by  execcmd (exec.c:2414)
    by  execpline2 (exec.c:1276)
    by  execpline (exec.c:1066)
    by  execlist (exec.c:872)
    by  execode (exec.c:773)

 7 bytes in 1 blocks are definitely lost in loss record 1 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  ztrdup (string.c:52)
    by  addvars (exec.c:1627)
    by  execsimple (exec.c:799)
    by  execlist (exec.c:852)
    by  execode (exec.c:773)
    by  bin_eval (builtin.c:4158)
    by  execbuiltin (builtin.c:440)
    by  execcmd (exec.c:2414)

 1157 bytes in 28 blocks are definitely lost in loss record 11 of 13
    at malloc (vg_replace_malloc.c:153)
    by 0x40269EFE: (within /lib/libtermcap.so.2.0.8)
    by 0x4026AE47: tgetstr (in /lib/libtermcap.so.2.0.8)
    by  init_term (init.c:561)
    by  promptexpand (prompt.c:162)
    by  paramsubst (subst.c:2316)
    by  stringsubst (subst.c:137)
    by  prefork (subst.c:74)
    by  execcmd (exec.c:1865)
    by  execpline2 (exec.c:1276)

 5 bytes in 1 blocks are definitely lost in loss record 1 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  ztrdup (string.c:52)
    by  addvars (exec.c:1627)
    by  execsimple (exec.c:799)
    by  execlist (exec.c:852)
    by  execode (exec.c:773)
    by  bin_eval (builtin.c:4158)
    by  execbuiltin (builtin.c:440)
    by  execcmd (exec.c:2414)

 2434 bytes in 1 blocks are possibly lost in loss record 12 of 14
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  mkenvstr (params.c:3412)
    by  addenv (params.c:3375)
    by  restore_params (exec.c:2590)
    by  execcmd (exec.c:2443)
    by  execpline2 (exec.c:1276)
    by  execpline (exec.c:1066)
    by  execlist (exec.c:872)
    by  execode (exec.c:773)

 24 bytes in 6 blocks are definitely lost in loss record 1 of 13
    at  malloc (vg_replace_malloc.c:153)
    by  zalloc (mem.c:490)
    by  mkarray (utils.c:2191)
    by  arrvarsetfn (params.c:2580)
    by  stdunsetfn (params.c:2308)
    by  unsetparam_pm (params.c:2230)
    by  unsetparam (params.c:2210)
    by  deleteparamdef (module.c:1929)
    by  deleteparamdefs (module.c:1938)
    by 0x41C3A74A: cleanup_ (example.c:219)

 68 bytes in 1 blocks are definitely lost in loss record 2 of 14
    at  malloc (vg_replace_malloc.c:153)
    by  zshcalloc (mem.c:508)
    by  newhashtable (hashtable.c:99)
    by 0x41C8D016: ???
    by 0x41C8D6AA: ???
    by  dyn_boot_module (module.c:625)
    by  boot_module (module.c:678)
    by  load_module (module.c:784)
    by  require_module (module.c:889)
    by  bin_zmodload_load (module.c:1615)



__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/


             reply	other threads:[~2003-12-19  1:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19  1:00 Felix Rosencrantz [this message]
2004-01-12 11:36 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031219010013.7064.qmail@web10401.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).