I'm using 1.0.0 with Linux 2.0.35, libc 5.4.44, XFree86 3.3.1, XForms
0.88, and libXpm 4.7 -- lyx dumps core if it can't open the X display:

  Program terminated with signal 11, Segmentation fault.
  ...
  #0  0x80568f4 in LyXGUI::LyXGUI (this=0x8292df0, owner=0xbffff824, argc=0xbffff848, 
argv=0xbffff860, GUI=true) at lyx_gui.C:182
  182             fcntl(ConnectionNumber(fl_get_display()), F_SETFD, FD_CLOEXEC);

I think the attached patch will address the issue.

Matt Power
[EMAIL PROTECTED]


*** lyx_gui.C.old       Mon Jan 18 05:14:29 1999
--- lyx_gui.C   Tue Feb  2 00:54:45 1999
***************
*** 181,183 ****
        fl_get_app_resources(res, num_res);
!       fcntl(ConnectionNumber(fl_get_display()), F_SETFD, FD_CLOEXEC);
        // X Error handler install goes here
--- 181,188 ----
        fl_get_app_resources(res, num_res);
!       Display *display = fl_get_display();
!       if (!display) {
!               lyxerr.print("LyX: unable to access X display, exiting");
!               exit(1);
!       }
!       fcntl(ConnectionNumber(display), F_SETFD, FD_CLOEXEC);
        // X Error handler install goes here

Reply via email to