Dear Allan, I tried waht you propsosed.
On Thursday, 12. September 2002 10:57, you wrote: > 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. This way did not work as wished. I had no access to LyX either by keyboard nor by mouse in order to load the file. > 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) I tried now (in a virtuell terminal) export DISPLAY=MYMACHINE:0.0 gdb lyx-1.3.0cvs | tee gdb_dump.txt run change to X-Window and working with lyx. After chash I looked in the gdb_dump.txt: "GNU gdb Red Hat Linux (5.1-0.71) Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run Starting program: /home/ana2/koksch/bin/lyx-1.3.0cvs This is TeX, Version 3.14159 (Web2C 7.3.1) (0lyxpreview.tex LaTeX2e <1999/12/01> patch level 1 Babel <v3.6Z> and hyphenation patterns for american, french, german, ngerman, italian, portuges, russian, spanish, nohyphenation, loaded. Program exited with code 01. Current language: auto; currently c (gdb)" I think, it does not help. But in the virtuell terminal I found: 1. Many "Received unhandled X11 event, Type: 0xd Target: 0x1c00182" 2. A message " XIO: fatal IO error 104 (Connection reset by peer) on X server "MYMACHINE:0.0" after 348028 requests (338025 known processed) with 85 events remaining. 3. A third message is: "(no debugging symbols found) ... Program excited with code 01" Does it mean that it is really a problem with the X server? Norbert