On 08.03.2019 17:11, Marcin Błażejowski wrote:
Hi,
simple script:
----------------------
set verbose off
open australia.gdt
series Y = lpau
list X = e2 lpus le
ols Y X --simple
COEFF = $model.coeff
STDER = $model.stderr
# This works:
eval COEFF ./ STDER
#... but this does not:
eval $model.coeff ./ $model.stderr
----------------------
GDB sayes: "double free or corruption (fasttop)" and Valgrind said:
Invalid free() / delete / delete[] / realloc()
==16926== at 0x48369AB: free (vg_replace_malloc.c:530)
==16926== by 0x5553129: free_node.part.48 (geneval.c:366)
==16926== by 0x55532E7: free_tree (geneval.c:420)
==16926== by 0x5553305: free_tree (geneval.c:422)
==16926== by 0x55532E7: free_tree (geneval.c:420)
==16926== by 0x557E7A4: gen_cleanup (geneval.c:18278)
==16926== by 0x559BCD2: generate (genmain.c:816)
==16926== by 0x56691DE: gretl_cmd_exec (interact.c:2930)
==16926== by 0x1EFB63: gui_exec_line (library.c:10315)
==16926== by 0x1F1667: execute_script (library.c:9437)
==16926== by 0x1F268F: run_native_script (library.c:8250)
==16926== by 0x1F268F: do_run_script (library.c:8457)
Marcin
I forgot: current git, Debian AMD64
Marcin
--
Marcin Błażejowski