Double free error from epstool calls while building octave

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Double free error from epstool calls while building octave

oneironaut
Hello everyone,
I have been trying to build octave from the mercurial source on my 64-bit Arch Linux. I have installed the dependencies from various sources but when I run make command during build it gives me following output and terminates with error:
/usr/bin/gs: symbol lookup error: /usr/lib/libgs.so.9: undefined symbol: jbig2_ctx_new_imp

I guess it is related to ghostscript since I installed the new version just before the build. My ghostscript version is :
ghostscript-9.50-2
And epstool version:
epstool-3.09-1

Complete output from make -j2:
config.status: executing libgui/mk-default-qt-settings.sh commands
  MAKEINFO ../doc/interpreter/octave.info
  GEN      doc/interpreter/voronoi.eps
free(): double free detected in tcache 2
sh: line 1: 115097 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-ggF7Pp.eps 'doc/interpreter/voronoi.eps'
  GEN      doc/interpreter/triplot.eps
free(): double free detected in tcache 2
sh: line 1: 115268 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-PhEuHX.eps 'doc/interpreter/triplot.eps'
  GEN      doc/interpreter/griddata.eps
free(): double free detected in tcache 2
sh: line 1: 115439 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-8xKWNx.eps 'doc/interpreter/griddata.eps'
  GEN      doc/interpreter/convhull.eps
free(): double free detected in tcache 2
sh: line 1: 115610 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-0t4p8k.eps 'doc/interpreter/convhull.eps'
  GEN      doc/interpreter/delaunay.eps
free(): double free detected in tcache 2
sh: line 1: 115788 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-g6X2Ow.eps 'doc/interpreter/delaunay.eps'
  GEN      doc/interpreter/inpolygon.eps
free(): double free detected in tcache 2
sh: line 1: 115970 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-ELMEKj.eps 'doc/interpreter/inpolygon.eps'
  GEN      doc/interpreter/interpft.eps
free(): double free detected in tcache 2
sh: line 1: 116147 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-IyLXng.eps 'doc/interpreter/interpft.eps'
  GEN      doc/interpreter/interpn.eps
  GEN      doc/interpreter/interpderiv1.eps
free(): double free detected in tcache 2
sh: line 1: 116474 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-DNSBbt.eps 'doc/interpreter/interpderiv1.eps'
  GEN      doc/interpreter/interpderiv2.eps
  GEN      doc/interpreter/spcholperm.eps
free(): double free detected in tcache 2
free(): double free detected in tcache 2
sh: line 1: 118662 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-l9LUub.eps 'doc/interpreter/spchol.eps'
  GEN      doc/interpreter/splinefit1.eps
sh: line 1: 118668 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-kFoB0h.eps 'doc/interpreter/spcholperm.eps'
  GEN      doc/interpreter/splinefit2.eps
free(): double free detected in tcache 2
sh: line 1: 119001 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-LtG0Mc.eps 'doc/interpreter/splinefit1.eps'
  GEN      doc/interpreter/splinefit3.eps
free(): double free detected in tcache 2
sh: line 1: 119083 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-0Sicfw.eps 'doc/interpreter/splinefit2.eps'
  GEN      doc/interpreter/splinefit4.eps
free(): double free detected in tcache 2
free(): double free detected in tcache 2
sh: line 1: 119343 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-JJZQpd.eps 'doc/interpreter/splinefit4.eps'
sh: line 1: 119345 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-lrgrNh.eps 'doc/interpreter/splinefit3.eps'
  GEN      doc/interpreter/splinefit6.eps
  GEN      doc/interpreter/voronoi.pdf
/usr/bin/gs: symbol lookup error: /usr/lib/libgs.so.9: undefined symbol: jbig2_ctx_new_imp
terminate called after throwing an instance of 'octave::execution_exception'
fatal: caught signal Aborted -- stopping myself...
free(): double free detected in tcache 2
sh: line 1: 119686 Aborted                 (core dumped) /usr/bin/epstool --quiet --copy --bbox /tmp/oct-LxuNOd.eps 'doc/interpreter/splinefit6.eps'
  GEN      doc/interpreter/triplot.pdf
/bin/sh: line 1: 119362 Aborted                 (core dumped) /bin/sh run-octave --norc --silent --no-history --path /home/oneironaut/projects_2020/octave/.build/../doc/interpreter/ --eval "geometryimages ('doc/interpreter/', 'voronoi', 'pdf');"
make[2]: *** [Makefile:31164: doc/interpreter/voronoi.pdf] Error 134
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/oneironaut/projects_2020/octave/.build'
make[1]: *** [Makefile:27403: all-recursive] Error 1
make[1]: Leaving directory '/home/oneironaut/projects_2020/octave/.build'
make: *** [Makefile:11038: all] Error 2





Reply | Threaded
Open this post in threaded view
|

Re: Double free error from epstool calls while building octave

Dmitri A. Sergatskov


On Sun, Feb 23, 2020 at 12:51 AM Ayush Dwivedi <[hidden email]> wrote:
Hello everyone,
I have been trying to build octave from the mercurial source on my 64-bit Arch Linux. I have installed the dependencies from various sources but when I run make command during build it gives me following output and terminates with error:
/usr/bin/gs: symbol lookup error: /usr/lib/libgs.so.9: undefined symbol: jbig2_ctx_new_imp


Yes, your ghostscript installation is broken. That has nothing to do with octave.

Dmitri.
--

 


Reply | Threaded
Open this post in threaded view
|

Re: Double free error from epstool calls while building octave

oneironaut
Ok, thanks. 

On Sun 23 Feb, 2020, 4:45 PM Dmitri A. Sergatskov, <[hidden email]> wrote:


On Sun, Feb 23, 2020 at 12:51 AM Ayush Dwivedi <[hidden email]> wrote:
Hello everyone,
I have been trying to build octave from the mercurial source on my 64-bit Arch Linux. I have installed the dependencies from various sources but when I run make command during build it gives me following output and terminates with error:
/usr/bin/gs: symbol lookup error: /usr/lib/libgs.so.9: undefined symbol: jbig2_ctx_new_imp


Yes, your ghostscript installation is broken. That has nothing to do with octave.

Dmitri.
--