Hi,
simple script:
<hansl>
eval varname({2}) # works
eval varname({2, 3}) # we get SIGSEGV
</hansl>
What I discovered is when a matrix is given, the value of "int i" in
'geneval.c:7793' equals 0 and "p->dset->varname[i]" gives
"const", but
the whole line 'ret->v.str = gretl_strdup(p->dset->varname[i]);'
produces segmentation fault. It's invoked in 'geneval.c' by "ret =
int_to_string_func(l, t->t, p)" when we are in "F_VARNAME case". It
looks like "int_to_string_func()" losts information that it works with
matrix, because "*v" is null.
Marcin
--
Marcin Błażejowski