From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10205191845.AA20923@clio.rice.edu> Subject: Re: Re[4]: emacs under w2k To: lauras AT softhome DOT net Date: Sun, 19 May 2002 13:45:55 -0500 (CDT) Cc: djgpp-workers AT delorie DOT com, eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) In-Reply-To: <2242535597.20020519121427@softhome.net> from "Laurynas Biveinis" at May 19, 2002 12:14:27 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > And when I run Emacs w/o unixy sbrk bit under gdb, it looks like: > > (gdb) r > Starting program: d:/devel/djgpp/gnu/emacs/src/../bin/emacs.exe > > Program received signal SIGSEGV, Segmentation fault. > 0x00001254 in dos_alloc_ok () > > (gdb) disas 0x123a 0x1254 > Dump of assembler code from 0x123a to 0x1254: > 0x123a : je 0x12a8 > 0x123c : mov %eax,0x206510 > 0x1241 : mov %eax,%edi > 0x1243 : mov %fs:0x10,%ecx > 0x124a : shr $0x2,%ecx > 0x124d : xor %esi,%esi > 0x124f : push %ds > 0x1250 : push %fs > 0x1252 : pop %ds > 0x1253 : cld > End of assembler dump. This section of code is in crt0.s and copies stubinfo from dos memory into an sbrk()'ed block of memory. If we knew the values of ESI and EDI it would certainly help understand why the rep movsl was failing. (since we load ESI with zero, we could tell if it's failing on the first move or someplace later).