Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
valgrind of patcompile() errors
- X-seq: zsh-workers 39694
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: valgrind of patcompile() errors
- Date: Wed, 19 Oct 2016 22:31:49 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version; bh=P1ARSKLRVEQurE3Cfxo7lAb0ks7eiNdUiarMYLMSnGo=; b=U5UJPM1edJroGiDA3MQnMuPVcDJZzeH5Isg/tAlShCrWy2joqbnz7UV+ivnCRUfRQN SMmsKM3qZZx+sUeEzET97Q0i22au8N7ZzrZrZm9d7ItpELENr2DqRRxz3cR9ZLsOClfP hTuFgJHYZEGhOlduSu6VU4UX6fWfQwcaqPGQyYJ/JsRz6XJf2gK15xdhNQCZNGru8l7r VPA0spcG+MUfEd3YNaj+enQjyUB3PqXVVHPwfLj+aPPKNmDZO+sSh8BS1LQX9KcGCcNl +wR+2BU7mpSeseZahno8/Kqand0I4dg7eusMVKioq+p4cQc0stc/XXNRYx0Llau4R699 TFRA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I do not get these errors on a second machine architecture I tried. The
difference seems to be that the error happens on the 64bit architecture
but not on 32bit.
This one line may be telling:
==26676== by 0x49F539: patcompile (pattern.c:672)
That is inside a block where a metafied string is converted back to an
unmetafied one to do a literal match.
==26676== Memcheck, a memory error detector
==26676== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==26676== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==26676== Command: Src/zsh -f test2.zsh
==26676==
==26676== Invalid read of size 8
==26676== at 0x49F420: patcompile (pattern.c:651)
==26676== by 0x453ED0: compgetmatch (glob.c:2612)
==26676== by 0x453F84: getmatch (glob.c:2652)
==26676== by 0x4B6834: paramsubst (subst.c:3033)
==26676== by 0x4B0E7A: stringsubst (subst.c:247)
==26676== by 0x4B01FD: prefork (subst.c:85)
==26676== by 0x440AEF: addvars (exec.c:2388)
==26676== by 0x43C5AF: execsimple (exec.c:1158)
==26676== by 0x43CBD7: execlist (exec.c:1296)
==26676== by 0x43C464: execode (exec.c:1115)
==26676== by 0x462167: loop (init.c:208)
==26676== by 0x466688: zsh_main (init.c:1692)
==26676== Address 0x61d7c18 is 248 bytes inside a block of size 256 free'd
==26676== at 0x4C2B7B2: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26676== by 0x47DB4F: zrealloc (mem.c:1008)
==26676== by 0x49EB04: patadd (pattern.c:414)
==26676== by 0x49F539: patcompile (pattern.c:672)
==26676== by 0x453ED0: compgetmatch (glob.c:2612)
==26676== by 0x453F84: getmatch (glob.c:2652)
==26676== by 0x4B6834: paramsubst (subst.c:3033)
==26676== by 0x4B0E7A: stringsubst (subst.c:247)
==26676== by 0x4B01FD: prefork (subst.c:85)
==26676== by 0x440AEF: addvars (exec.c:2388)
==26676== by 0x43C5AF: execsimple (exec.c:1158)
==26676== by 0x43CBD7: execlist (exec.c:1296)
==26676==
==26676== Invalid read of size 8
==26676== at 0x49F48A: patcompile (pattern.c:652)
==26676== by 0x453ED0: compgetmatch (glob.c:2612)
==26676== by 0x453F84: getmatch (glob.c:2652)
==26676== by 0x4B6834: paramsubst (subst.c:3033)
==26676== by 0x4B0E7A: stringsubst (subst.c:247)
==26676== by 0x4B01FD: prefork (subst.c:85)
==26676== by 0x440AEF: addvars (exec.c:2388)
==26676== by 0x43C5AF: execsimple (exec.c:1158)
==26676== by 0x43CBD7: execlist (exec.c:1296)
==26676== by 0x43C464: execode (exec.c:1115)
==26676== by 0x462167: loop (init.c:208)
==26676== by 0x466688: zsh_main (init.c:1692)
==26676== Address 0x61d7c18 is 248 bytes inside a block of size 256 free'd
==26676== at 0x4C2B7B2: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26676== by 0x47DB4F: zrealloc (mem.c:1008)
==26676== by 0x49EB04: patadd (pattern.c:414)
==26676== by 0x49F539: patcompile (pattern.c:672)
==26676== by 0x453ED0: compgetmatch (glob.c:2612)
==26676== by 0x453F84: getmatch (glob.c:2652)
==26676== by 0x4B6834: paramsubst (subst.c:3033)
==26676== by 0x4B0E7A: stringsubst (subst.c:247)
==26676== by 0x4B01FD: prefork (subst.c:85)
==26676== by 0x440AEF: addvars (exec.c:2388)
==26676== by 0x43C5AF: execsimple (exec.c:1158)
==26676== by 0x43CBD7: execlist (exec.c:1296)
==26676==
Messages sorted by:
Reverse Date,
Date,
Thread,
Author