[tex-live] Bug#561500: Metapost: segmentation fault while text is included with btex etex

Taco Hoekwater taco at elvenkind.com
Sun Dec 20 19:30:12 CET 2009


Hi,

Jean-Paul Vincent wrote:
> #1  0x00000000004054a7 in mpx_printf (mpx=0x7ffff581e010, 
>     header=<value optimized out>, 
>     msg=0x46c1e8 "Command failed: %s; see mpxerr.log", ap=0x7fffffffd810)
>     at ../../../source/texk/web2c/mplibdir/mpxout.w:214


Ok, got it, I think. Please apply the diff below to mpxout.w and the
error should go away (and that makes it a glibc difference).

Best wishes,
Taco

Index: source/texk/web2c/mplibdir/mpxout.w
===================================================================
--- source/texk/web2c/mplibdir/mpxout.w (revision 1123)
+++ source/texk/web2c/mplibdir/mpxout.w (working copy)
@@ -211,7 +211,9 @@
    if (mpx->lnno!=0)
      fprintf(mpx->errfile, "%d:", mpx->lnno);
    fprintf(mpx->errfile, " ");
+  va_start(ap, msg);
    (void)vfprintf(mpx->errfile, msg, ap);
+  va_end(ap);
    fprintf(mpx->errfile, "\n");
  }


More information about the tex-live mailing list