"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:

> On Sat, Oct 09, 1999 at 12:25:13AM -0400, Bobby de Vos wrote:
> > I compiled lyx 1.0.4 from the source tar file. After I ran make, I ran
> > ./src/lyx as suggested in the INSTALL file. It gives me the message
> > "Segmentation fault" and exits. So I cannot read the list of known

I ran gdb src/lyx core as suggested, here is the output.

thefox:/usr/src/lyx-1.0.4# src/lyx 
Segmentation fault (core dumped)
thefox:/usr/src/lyx-1.0.4# gdb src/lyx core 
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 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"...
Core was generated by `src/lyx'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libforms.so.0.88...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/lib/libstdc++-libc6.1-1.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x0 in ?? ()
(gdb) where
#0  0x0 in ?? ()
#1  0x40215f06 in buffered_vfprintf (s=0x402b5500, format=0x40084758 "%s%s\n", 
    args=0xbffff698) at vfprintf.c:1752
#2  0x40211856 in _IO_vfprintf (s=0x402b5500, format=0x40084758 "%s%s\n", 
    ap=0xbffff698) at vfprintf.c:1018
#3  0x402196f7 in fprintf (stream=0x402b5500, format=0x40084758 "%s%s\n")
    at fprintf.c:32
#4  0x40078fd5 in P_errmsg ()
#5  0x4003f2e7 in fl_initialize ()
#6  0x8056605 in LyXGUI::LyXGUI (this=0x823ef98, owner=0xbffff98c, 
    argc=0xbffffa30, argv=0xbffffa74, GUI=true) at lyx_gui.C:180
#7  0x804e038 in LyX::LyX (this=0xbffff98c, argc=0xbffffa30, argv=0xbffffa74)
    at ../src/lyx_main.C:85
#8  0x804de77 in main (argc=1, argv=0xbffffa74) at ../src/main.C:52
#9  0x401e4cb3 in __libc_start_main (main=0x804dd70 <main>, argc=1, 
    argv=0xbffffa74, init=0x804c6f0 <_init>, fini=0x8190828 <_fini>, 
    rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffa6c)
    at ../sysdeps/generic/libc-start.c:78
(gdb) 

I think I may have found the problem. It only dumps core when I run as
root, having run su - from a user account. lyx cannot open the display
in this case. If lyx can open the display, ie I run su from a user
account, or as a user, lyx runs fine. So maybe you want to see if the
display is available, otherwise quit with a message like netscape
does.
        thefox:~# netscape
        Error: Can't open display: 

Bobby

-- 
Bobby "the fox" de Vos          [EMAIL PROTECTED]
ECE - Georgia Tech              http://www.devos.org/bobby

Reply via email to