[tex-live] mpost segfault

Thomas Esser te at dbs.uni-hannover.de
Wed Oct 26 06:08:26 CEST 2005


Hi Hartmut,

> mptopdf -raw does not work reliably with TeX Live 20051025, some problem
> with the shipped mpost binary?

No, just the usual array sizes madness.

fmtutil has a few special cases, so that array sites for context and
mpost are correctly passed down:

  case "$format" in
    metafun) prgswitch=-progname=mpost;;
    mptopdf|cont-??) prgswitch=-progname=context;;
    *)       prgswitch=-progname=$format;;
  esac

This means that we don't need zillions of array size definitions for
metafun, mptopdf and cont-xy. On the other hand, some discipline about
program invocation is needed.

If texexec calls cont-en, it passes -progname=context, else the wrong
array sizes would be used. Similarly, one has to pass
  -progname=mpost
when using the metafun format:

    $ mpost -mem=metafun -progname=mpost mandala.mp
    This is MetaPost, Version 0.901 (Web2C 7.5.5)
    (mandala.mp [1]
    metafun 2005-10-26 5:50
     )
    1 output file written: mandala.1
    Transcript written on mandala.log.

This does not happen here when calling mptopdf and this seems to be a
bug in texexec.

Thomas



More information about the tex-live mailing list