Hi Allin and all,
While I was doing some scripting, I found another repeatable crash.
This is my stripped down version from a more developed script:
# crash test
list y = l_price
list x = bedrooms age baths
strings xnames = defarray("const") + varnames(x)
ols y const x --robust --quiet
scalar i = 1
string xname = xnames[i]
scalar coeff = $coeff(xname)
scalar coeff = $coeff(xnames[i])
Here is the output before the last line:
scalar coeff = $coeff(xnames[i])
gretl version 2020c-git
Current session: 2020-05-24 16:10
? list y = l_price
Replaced list y
? list x = bedrooms age baths
Replaced list x
? strings xnames = defarray("const") + varnames(x)
? ols y const x --robust --quiet
? scalar i = 1
Generated scalar i = 1
? string xname = xnames[i]
Generated string xname
? scalar coeff = $coeff(xname)
Replaced scalar coeff = 10.0438
It is the last line "scalar coeff = $coeff(xnames[i])” that caused the crash.
Here is the crash report: