On Wed, 11 Sep 2002, Norbert Koksch wrote:

> (Corrected message after hint of Angus Leeming)
>
> I have the following problem:
>
> Sometimes LyX (cvs, xforms 1.0RC4) chrashes with collapsing X-Window after
> generating of the ppm files for the preview.
[...]
> Angus Leeming asked me for a backtrace. The question is, how to make it:
>
> If I run
>            gdb lyx-cvs1.3.0
> then I cannot enter bt, because X-Window is collapsing.

You'll need a virtual console for this so that you _might_ still be
able to get something useful.  No guarantee though:

Start LyX in X from a command line (ie. from an xterm)
        lyx &

Take note of process ID that was echoed to the console.
Switch to a virtual console and run:
        gdb lyx ###

where ### is the process ID.

You just connected to an already running process and you'll still have
a gdb when X gets wiped.  With luck gdb will catch the segfault and
allow you get a backtrace even if X is no longer up and running.

when the crash happens you can switch to the virtual console and so a:
        bt

to get the backtrace.  BTW, the simplest way to capture your gdb
session is :
        gdb lyx ### | tee gdb_dump.txt

which lets you work on screen and get a copy dumped to a file.

Allan. (ARRae)

Reply via email to