Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 13 Nov 2000 22:58:46 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: XEmacs on cygwin wierdness Message-ID: <20001113225846.A27122@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3A0F7709 DOT F8ED68FF AT ece DOT gatech DOT edu> <20001113000953 DOT A4917 AT redhat DOT com> <3A0F827C DOT 15675931 AT ece DOT gatech DOT edu> <20001113010018 DOT A6535 AT redhat DOT com> <3A0F9044 DOT 2E387F2F AT ece DOT gatech DOT edu> <20001113115212 DOT I7424 AT redhat DOT com> <3A10962B DOT 1D0A386E AT ece DOT gatech DOT edu> <20001113212846 DOT B23184 AT redhat DOT com> <3A10B52B DOT 47FFF093 AT ece DOT gatech DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <3A10B52B.47FFF093@ece.gatech.edu>; from cwilson@ece.gatech.edu on Mon, Nov 13, 2000 at 10:44:43PM -0500 On Mon, Nov 13, 2000 at 10:44:43PM -0500, Charles Wilson wrote: >Christopher Faylor wrote: >> > >Okay, here's the results from XEmacs-21.2.36 (tarball, not from CVS) >> >built under a latest-CVS-cygwin-debuggable kernel. I apologize for not >> >single-stepping this and investigating more thoroughly, but I've got a >> >bunch of papers to grade tonight; I won't be able to return to this >> >until tomorrow night at the earliest, but I figured I post my very >> >preliminary experience >> >> I really need to see a real stack trace to debug this. From what you've >> sent, it seems to me that this SIGSEGV has occurred in a process that >> was invoked as a child of a shell. That is counter to your original >> bug report so something is screwy somewhere. > >???? I'll take a closer look tomorrow night... > >> >> Are you able to run anything with this DLL at all? Is the gdb you >> are using running the cygwin that you've built? > >Yes, I've installed the entire /usr/src/cygwin/inst/usr/* tree on top of >my main installation. gdb is running with the debug kernel, as is bash, >rxvt, heck, *everything* is running with the debug kernel. The more I think about this, the more I think that your stack trace should actually be impossible. It looks like a pointer that should be zero isn't. Out of curiousity, does the patch below cause any difference? It shouldn't be necessary but it almost looks like a DLL is being invoked with its own 'environ' variable. Cygwin tries to notice this now and tries to synchronize multiple environ's. However, if the DLL initialized the 'environ' prior to cygwin seeing it, that could cause problems. It probably will have no effect, but could you try the patch? This is against my modified version of cygwin so there will be some skew when you apply it but it should still apply cleanly. If not, you should be able to hand patch it. cgf Index: dcrt0.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/dcrt0.cc,v retrieving revision 1.78 diff -u -p -r1.78 dcrt0.cc --- dcrt0.cc 2000/11/11 05:36:34 1.78 +++ dcrt0.cc 2000/11/14 03:54:41 @@ -879,6 +880,7 @@ _dll_crt0 () #endif main_environ = user_data->envptr; + *main_environ = NULL; user_data->heapbase = user_data->heapptr = user_data->heaptop = NULL; set_console_handler (); -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com