I cannot reproduce the crash with parallel. I am still getting some kind of crash while building doc/.
With default compiler flags i get a coredump that appears completely useless:
Stack trace of thread 3125:
#0 0x000000000a70756f n/a (n/a)
#1 0x00007fa14eb3c9ae n/a (/home/dima/src/octave/gcc_def/libgui/.libs/liboctgui.so.6.0.0)
#2 0x00007ffd98e0b660 n/a (n/a)
With "-O0 -ggdb3" no crash.
With "-O1 -ggdb3" or "-O2 -ggdb3" I do not get a coredump. The crash is something like:
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "splineimages ('doc/interpreter/', 'splinefit3', 'png');"
error: imwrite: invalid empty image
error: called from
__imwrite__ at line 40 column 5
imwrite at line 125 column 5
print at line 755 column 13
sparseimages at line 53 column 5
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "splineimages ('doc/interpreter/', 'splinefit4', 'png');"
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "splineimages ('doc/interpreter/', 'splinefit6', 'png');"
make[2]: *** [Makefile:31328: doc/interpreter/gplot.png] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/dima/src/octave/gcc_debug'
make[1]: *** [Makefile:27418: all-recursive] Error 1
make[1]: Leaving directory '/home/dima/src/octave/gcc_debug'
make: *** [Makefile:11053: all] Error 2
the actual input file would be different from run to run, e.g. it could be:
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "geometryimages ('doc/interpreter/', 'inpolygon', 'png');"
error: imwrite: invalid empty image
error: called from
__imwrite__ at line 40 column 5
imwrite at line 125 column 5
print at line 755 column 13
geometryimages at line 70 column 5
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "interpimages ('doc/interpreter/', 'interpft', 'png');"
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "interpimages ('doc/interpreter/', 'interpn', 'png');"
/bin/sh run-octave --norc --silent --no-history --path /home/dima/src/octave/gcc_debug/../doc/interpreter/ --eval "interpimages ('doc/interpreter/', 'interpderiv1', 'png');"
make[2]: *** [Makefile:31198: doc/interpreter/triplot.png] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/dima/src/octave/gcc_debug'
make[1]: *** [Makefile:27418: all-recursive] Error 1
make[1]: Leaving directory '/home/dima/src/octave/gcc_debug'
make: *** [Makefile:11053: all] Error 2
Dmitri.