On Tue, Oct 08, 2013 at 09:49:44PM +0200, Vincent van Ravesteijn wrote: > > I tried to use QThreadStorage, which works on Windows, but on Linux > I keep getting segmentation faults.
I tried your patch on Cygwin, Solaris, and Debian Linux. It worked fine in all cases. However, and this occurs *only* on Debian, on quitting lyx I get: lyx: QObject::startTimer: QTimer can only be used with threads started with QThread SIGSEGV signal caught! Sorry, you have found a bug in LyX, hope you have not lost any data. Please read the bug-reporting instructions in 'Help->Introduction' and send us a bug report, if necessary. Thanks! 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. -- Enrico