zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-workers@sunsite.dk
Subject: Re: new valgrind errors
Date: Thu, 25 Apr 2002 09:30:30 +0200	[thread overview]
Message-ID: <15559.45206.899431.496885@wischnow.berkom.de> (raw)
In-Reply-To: <20020425053552.11174.qmail@web10405.mail.yahoo.com>


Felix Rosencrantz wrote:

> Here is condensed output based on the latest changes.  -FR.
>  ERROR SUMMARY: 1537 errors from 12 contexts (suppressed: 24 from 1)
>  
>  11 errors in context 1 of 12:
>  Invalid read of size 4
>     at 0x80A49C3: pattryrefs (pattern.c:1357)
>     by 0x80A4952: pattry (pattern.c:1331)
>     by 0x413B1E39: lookupstyle (zutil.c:247)
>     by 0x413B27C4: bin_zstyle (zutil.c:439)
>     Address 0x4105951C is 20 bytes inside a block of size 80 free'd
>     at 0x40040311: free (vg_clientfuncs.c:156)
>     by 0x808C737: zfree (mem.c:1391)
>     by 0x80A7229: freepatprog (pattern.c:2326)
>     by 0x413B1912: setstypat (zutil.c:135)

Argh. That part of the patch was a thinko. Re-fix below.

But then I don't see how the original error came to pass.


Bye
  Sven

Index: Src/Modules/zutil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/zutil.c,v
retrieving revision 1.10
diff -u -r1.10 zutil.c
--- Src/Modules/zutil.c	24 Apr 2002 07:59:19 -0000	1.10
+++ Src/Modules/zutil.c	25 Apr 2002 07:29:24 -0000
@@ -132,7 +132,6 @@
 		freearray(p->vals);
 	    if (p->eval)
 		freeeprog(p->eval);
-            freepatprog(p->prog);
 	    p->vals = zarrdup(vals);
 	    p->eval = eprog;
 

-- 
Sven Wischnowsky                          wischnow@berkom.de


      parent reply	other threads:[~2002-04-25  7:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-25  5:35 Felix Rosencrantz
2002-04-25  6:00 ` Felix Rosencrantz
2002-04-25  6:04   ` Borsenkow Andrej
2002-04-25  7:30 ` Sven Wischnowsky [this message]

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=15559.45206.899431.496885@wischnow.berkom.de \
    --to=wischnow@berkom.de \
    --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).