This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: run2.exe segfaults when GDI and X11 elements are present

On 12/26/2009 12:54 PM, Charles Wilson wrote:
Index: lib/checkX.c
--- lib/checkX.c        (revision 5)
+++ lib/checkX.c        (working copy)
@@ -62,13 +62,11 @@
  # include<math.h>
-#if HAVE_X11_XLIB_H
-# include<X11/Xlib.h>

  # define WIN32_LEAD_AND_MEAN
  # define NOMINMAX
+# undef Status /* Xlib.h from xorg 7.5 is evil */
  # include<windows.h>

Thanks. It builds with that patch and the old segfault is gone. Still playing around with mintty, I found that I get a segfault if I try to run mintty with the option '-' (so that mintty will invoke the user's default shell as a login shell).

$ cat test1.xml
<?xml version="1.0" encoding="us-ascii"?>
    <Target filename="/usr/bin/mintty.exe" startin="~">
    <Target filename="/usr/bin/xterm.exe" startin="~">

$ run2 --debug test1.xml
setting debug level to (null)
run2.exe DEBUG: xmlfile     : 'test1.xml'
run2.exe DEBUG: opt_loglevel: 7
run2.exe DEBUG: opt_nogui   : 0
run2.exe DEBUG: opt_notty   : 0
run2.exe DEBUG: opt_timeout :  0.50
run2.exe DEBUG: opt_wait    : 0
run2.exe DEBUG: opt_force   : auto
Segmentation fault (core dumped)


-- Problem reports: FAQ: Documentation: Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]