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 Message-ID: <3A123D94.90D09BD4@ece.gatech.edu> Date: Wed, 15 Nov 2000 02:39:00 -0500 From: Charles Wilson X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: XEmacs on cygwin wierdness 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> <20001113225846 DOT A27122 AT redhat DOT com> <3A121018 DOT CAA2139D AT ece DOT gatech DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Charles S. Wilson" wrote: > > Christopher Faylor wrote: > > > > 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? > > Yes, that fixes it. Now I can run xemacs (without recompiling *it*) > from cmd.exe or from bash. No problems. However, obviously there is > something wacky going on with xemacs; unfortunately, I don't understand > the wacky structure of xemacs.exe well enough to debug it > authoritatively. > > I'll give it a shot and report back.... Well, I'm not sure why, but I can't single-step XEmacs and gdb doesn't recognize any breakpoints prior to the bomb. I can only "run" and then investigate after the crash. I've "reverted" to a debuggable cygwin kernel, built using both '-g' and '--enable-debugging', but *without* Chris's *main_environ fix. Then, I rebuilt XEmacs-21.2.36 using that cygwin kernel and its link libs. I also tried to build XEmacs-21.2-from-CVS, based on Andy's warning about XEmacs's missing .bss section and that gdb5.0 might be lying to me, but I couldn't complete the build. Andy, what's up with the system-dependent directories? src/s and src/m are created during configure, and are self-referential symlinks, so make dies. Weren't src/s and src/m actual directories with unique contents in the past???!!! My build error is "SYSTEM_TYPE is undefined", so I went hunting for src/s/cygwin32.h but...nothing there. recursive symlink. aarrgghh.) "Full" stacktrace for XEmacs-21.2.36 below. --Chuck (gdb) run Program received signal SIGSEGV, Segmentation fault. 0x610729e3 in strncmp (s1=0x12021604
, s2=0x61007f36 "HOME=", n=4) at /usr/src/cygwin/src/newlib/libc/string/strncmp.c:119 (gdb) bt #0 0x610729e3 in strncmp (s1=0x12021604
, s2=0x61007f36 "HOME=", n=4) at /usr/src/cygwin/src/newlib/libc/string/strncmp.c:119 #1 0x6100842c in my_findenv (name=0x61007f36 "HOME=", offset=0x288fd7c) at /usr/src/cygwin/src/winsup/cygwin/environ.cc:171 #2 0x6100847e in getenv (name=0x61007f36 "HOME=") at /usr/src/cygwin/src/winsup/cygwin/environ.cc:190 #3 0x6100824a in getwinenv (env=0xa014f60 "HOME=/d/Users/cwilson", in_posix=0x0) at /usr/src/cygwin/src/winsup/cygwin/environ.cc:111 #4 0x61008340 in posify (here=0xa013028, value=0xa014f65 "/d/Users/cwilson") at /usr/src/cygwin/src/winsup/cygwin/environ.cc:129 #5 0x610092d7 in environ_init (envp=0x0, envc=100) at /usr/src/cygwin/src/winsup/cygwin/environ.cc:642 #6 0x61032d3f in pinfo_init (envp=0x0, envc=0) at /usr/src/cygwin/src/winsup/cygwin/pinfo.cc:111 #7 0x610035b2 in dll_crt0_1 () at /usr/src/cygwin/src/winsup/cygwin/dcrt0.cc:760 #8 0x61003bd5 in _dll_crt0 () at /usr/src/cygwin/src/winsup/cygwin/dcrt0.cc:928 #9 0x61003c14 in dll_crt0 (uptr=0x0) at /usr/src/cygwin/src/winsup/cygwin/dcrt0.cc:940 #10 0x57b123 in cygwin_crt0 () at /usr/src/cygwin/src/winsup/cygwin/lib/cygwin_crt0.c:33 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com