The other difference I noticed is that on Cygwin and Solaris I get > \renewcommand instead of \newcommand. That is, applying your patch, > on Debian exporting from the GUI or from command line, produces the > same result, but lyx segafaults on exit. > On Cygwin and Solaris, exporting from the GUI changes \newcommand > into \renewcommand, but lyx quits normally. > The joy of multithreading, I suppose. >
I guess the problem is that the class MacroData has a lot of mutable variables that are being changed from const metrics() and write() functions. Vincent