It works for me.
% gdb lyx GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh) Copyright 2004 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 "x86_64-redhat-linux-gnu"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run Starting program: /usr/local/bin/lyx [Thread debugging using libthread_db enabled] [New Thread 182906424160 (LWP 18080)] [New Thread 1084229984 (LWP 18117)] Detaching after fork from child process 18118. Detaching after fork from child process 18119. Detaching after fork from child process 18120. Detaching after fork from child process 18121. pplatex: Process input file 0lyxpreview.dvi pplatex: Copy data to 0lyxpreview.dvi This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com) ' TeX output 2007.05.15:0957' -> 0lyxpreview.ps <texc.pro><bbad153f.enc><aae443f0.enc><f7b6d320.enc><texps.pro><special.pro> <color.pro>. <cmmi8.pfb><cmr12.pfb><cmr8.pfb><cmmi12.pfb><cmex10.pfb> <cmsy10.pfb>[1] GNU Ghostscript 7.07: Unrecoverable error, exit code 1 Failed: gs 0lyxpreview.ps Detaching after fork from child process 18134. pplatex: Process input file 1lyxpreview.dvi pplatex: Copy data to 1lyxpreview.dvi This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com) ' TeX output 2007.05.15:0957' -> 1lyxpreview.ps <texc.pro><bbad153f.enc><aae443f0.enc><f7b6d320.enc><texps.pro><special.pro> <color.pro>. <cmmi8.pfb><cmr12.pfb><cmr8.pfb><cmmi12.pfb><cmex10.pfb> <cmsy10.pfb>[1] GNU Ghostscript 7.07: Unrecoverable error, exit code 1 Failed: gs 1lyxpreview.ps EXPORT TO LATEX STARTS HERE. Detaching after fork from child process 18147. Detaching after fork from child process 18149. Detaching after fork from child process 18151. Detaching after fork from child process 18153. Detaching after fork from child process 18155. Detaching after fork from child process 18157. Detaching after fork from child process 18159. Detaching after fork from child process 18161. Detaching after fork from child process 18163. Detaching after fork from child process 18165. Detaching after fork from child process 18167. Detaching after fork from child process 18169. Detaching after fork from child process 18171. Detaching after fork from child process 18173. Detaching after fork from child process 18175. Detaching after fork from child process 18177. Detaching after fork from child process 18179. Detaching after fork from child process 18181. Detaching after fork from child process 18183. Detaching after fork from child process 18185. Detaching after fork from child process 18187. Detaching after fork from child process 18189. Detaching after fork from child process 18191. Detaching after fork from child process 18193. Detaching after fork from child process 18195. Detaching after fork from child process 18197. Detaching after fork from child process 18199. ---Type <return> to continue, or q <return> to quit--- Detaching after fork from child process 18201. Detaching after fork from child process 18203. Caught "normal" exception: basic_filebuf::underflow error reading the file Program received signal SIGABRT, Aborted. [Switching to Thread 182906424160 (LWP 18080)] 0x000000357fc2e21d in raise () from /lib64/tls/libc.so.6 (gdb)