gnuplot crashes with a malloc error on script load/calls. Works as expected for me under 5.2 patchlevel 4
Steps to reproduce:
> touch foo.gp
> echo "load 'foo.gp'" > bar.gp
> gnuplot -d -c 'bar.gp'
# all OK
gnuplot -d -c 'bar.gp' blah
gnuplot(37000,0x10cbec5c0) malloc: *** error for object 0x7fb340733260: pointer being freed was not allocated
gnuplot(37000,0x10cbec5c0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6
>
> gnuplot --version
gnuplot 5.2 patchlevel 5
Obtained on MacOs 10.14.2 via Macports
...Didn't realize patchlevel 6 was released. Confirmed crash on default build of 5.2 patchevel 6 also
Fixed now for 5.2 and 5.3
Thanks
The problem is still there with gnuplot 5.2 patchlevel 6 on OSX 10.13.6.
I have a makefile with many calls to gnuplot.
make crashes at some point with this error.
I can make again and it will crash later in the makefile.
After a coupld of makes the makefile is done.
Yes. It's marked "fixed - pending" because the fix has not yet appeared in a release version. It is fixed in the source. The fixed source will be used in preparing release 5.2.7