Mail Archives: djgpp-workers/1996/08/28/14:56:22
> A user wrote to me telling that he cannot run Emacs compiled with DJGPP
> in a DOS box on NT, because Emacs crashes like this:
>
> E:\emacs-19.33\bin>emacs
> Exiting due to signal SIGSEGV
> General Protection Fault at eip=000041f7
> eax=000001ff ebx=003abef8 ecx=00000000 edx=000001ff esi=003a00d7 edi=003abf34
> ebp=003a2948 esp=00002942 cs=00c7 ds=00b7 es=00d7 fs=0197 gs=01f7 ss=00b7
> Call frame traceback EIPs:
> 0x000041f7 _syms_of_frame_1+259, line 113 of frame.c
>
> The above traceback is either bogus or points to the DPMI host instead of
> Emacs (`syms_of_frame_1' isn't called at all in the dumped Emacs). He
> told me temacs crashes in the same way, so it's not something special to
> the dumped executable either.
>
> Does somebody know any special problems of DPMI on NT that could cause a
> crash? That guy says he could run almost the entire build process on NT
> (except that temacs crashed, so he couldn't dump), so obviously gcc, Make
> and the rest of the tools run on NT.
1) NT does not support fat DS or non-move-sbrk. You need to make sure you
are using unixy sbrk() and don't use near pointers.
2) The trace above is valid - The DS=ES=SS, which looks like us, and the CS
is close after it. ESP is garbage (or maybe on the internal exception
handler stack ...)
3) EBX,ESI,EDI,EBP all point to roughly the same area in memory (probably the
real stack)
- Raw text -