This is the mail archive of the cygwin@sources.redhat.com 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]

Re: XEmacs on cygwin wierdness


"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 <Address 0x12021604 out of bounds>,
s2=0x61007f36 "HOME=", n=4) at
/usr/src/cygwin/src/newlib/libc/string/strncmp.c:119

(gdb) bt

#0  0x610729e3 in strncmp (s1=0x12021604 <Address 0x12021604 out of
bounds>, 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@sourceware.cygnus.com


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