Hi! ----
I'm getting a valgrind hit (valgrind itself needs to be patched to work with libast - see http://lists.research.att.com/pipermail/ast-developers/2013q2/002574.html) for an invalid |free()| call when typeset -c is used in a subshell with ast-ksh.2013-05-24+the latest patches for typeset -c from David... -- snip -- $ ~/vg/bin/valgrind ~/bin/ksh -c '( typeset -M totitle i="hello" ; typeset -c y=i ; ) ; typeset -p y'==11399== Memcheck, a memory error detector ==11399== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==11399== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==11399== Command: /home/test001/bin/ksh -c (\ typeset\ -M\ totitle\ i="hello"\ ;\ typeset\ -c\ y=i\ ;\ )\ ;\ typeset\ -p\ y ==11399== [snip] ==11399== ==11399== Invalid free() / delete / delete[] / realloc() ==11399== at 0x4C29BF2: _ast_free (vg_replace_malloc.c:1001) ==11399== by 0x459422: _nv_unset (name.c:2572) ==11399== by 0x40FFAB: nv_putv (nvdisc.c:159) ==11399== by 0x432AA3: put_trans (init.c:2504) ==11399== by 0x40FF67: nv_putv (nvdisc.c:152) ==11399== by 0x45929B: _nv_unset (name.c:2537) ==11399== by 0x47349C: nv_restore (subshell.c:324) ==11399== by 0x47452B: sh_subshell (subshell.c:624) ==11399== by 0x47D9F1: sh_exec (xec.c:2040) ==11399== by 0x47E2B7: sh_exec (xec.c:2218) ==11399== by 0x40F394: exfile (main.c:599) ==11399== by 0x40E53B: sh_main (main.c:371) ==11399== Address 0x594fd90 is 0 bytes inside a block of size 13 free'd ==11399== at 0x4C29BF2: _ast_free (vg_replace_malloc.c:1001) ==11399== by 0x459422: _nv_unset (name.c:2572) ==11399== by 0x40FFAB: nv_putv (nvdisc.c:159) ==11399== by 0x432AA3: put_trans (init.c:2504) ==11399== by 0x40FF67: nv_putv (nvdisc.c:152) ==11399== by 0x45929B: _nv_unset (name.c:2537) ==11399== by 0x47349C: nv_restore (subshell.c:324) ==11399== by 0x47452B: sh_subshell (subshell.c:624) ==11399== by 0x47D9F1: sh_exec (xec.c:2040) ==11399== by 0x47E2B7: sh_exec (xec.c:2218) ==11399== by 0x40F394: exfile (main.c:599) ==11399== by 0x40E53B: sh_main (main.c:371) [snip] -- snip -- ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
