On Tue, 7 Feb 2006, Marcin Baejowski wrote:
I've spoken to Prof. Cottrell last few days, he has my sample
data
and script; the problem is, when I have large simultaneous system
(> 200 instruments) and try to restore estimated equation in
window by "model_name <- tsls (blablabla)"; after opening icon
session Gretl crashes, gdb trace it as a malloc() problem...
I fixed one obvious problem with displaying a session icon for a
huge model such as Marcin's. That is, gretl tries to create a
"tooltip" showing the model specification, which appears when you
mouse over the model's icon. But the string allocated for this was
not long enough to hold the hundreds of instruments in Marcin's
case.
My fix for this -- since you don't want a ridiculously long tooltip
anyway -- was to limit the generation of such a string to "small"
models (a "model list" length of 10 or less).
There may also be a more subtle bug in this general area, but after
fixing the obvious one Marcin's script runs OK for me. I also
tested it using valgrind, and valgrind reported no memory problems.
So I'm puzzled.
Marcin, if you could possibly get a report from valgrind, that would
be very helpful. For example
valgrind --tool=memcheck --log-fd=9 \
/path/to/gretl_x11 -r script.inp 9>valgrind.log
then open the Session icon window, close it, and close the program.
I'm running valgrind-3.1.0.
Allin Cottrell