Just to make it easier for the next person wondering how to produce a 
backtrace...

> Run lyx from within gdb.
> $ cd ${BUILD_TREE}/src
> $ gdb ./lyx-xforms
> (gdb) r
> [lyx is launched, make it crash.]
> (gdb) bt

I've put these instructions here as well:

        http://wiki.lyx.org/pmwiki.php/DevelTips/ProducingBacktrace

The instructions above works... but I thought I could also get it from 
the core-file?

> It would be best if you first turned off optimisation in the relevant 
> parts of the code. Eg
> 
> $ cd ${SOURCE_TREE}/src
> $ (cd insets && touch render_*.C insetexternal.C External*.C)
> $ (cd frontends/xforms && touch FormExternal.C forms/form_external.fd)
> $ (cd frontends/qt2 && touch QExternal.C ui/QExternal*.ui)
> $ make CXXFLAGS='-g -W -Wall'
> 
Ok... I'll do that. (I also put the instructions above here:

        http://wiki.lyx.org/pmwiki.php/DevelTips/DisablingOptimization

for future reference as an example of how to do this).

/Christian

-- 
Christian Ridderström                           http://www.md.kth.se/~chr


Reply via email to