Date: Sun, 19 May 2002 11:57:00 +0100 From: Laurynas Biveinis X-Mailer: The Bat! (v1.60h) UNREG / CD5BF9353B3B7091 X-Priority: 3 (Normal) Message-ID: <140241488321.20020519115700@softhome.net> To: Charles Sandmann , Eli Zaretskii CC: djgpp-workers AT delorie DOT com Subject: Re[2]: emacs under w2k In-Reply-To: <3759-Thu16May2002215345+0300-eliz@is.elta.co.il> References: <1997943472 DOT 20020514191357 AT softhome DOT net> <6480-Tue14May2002211843+0300-eliz AT is DOT elta DOT co DOT il> <18721621770 DOT 20020514230156 AT softhome DOT net> <2225079923 DOT 20020515154129 AT softhome DOT net> <3028-Wed15May2002192132+0300-eliz AT is DOT elta DOT co DOT il> <857491702 DOT 20020516185704 AT softhome DOT net> <3759-Thu16May2002215345+0300-eliz AT is DOT elta DOT co DOT il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 May 2002 09:56:28.0734 (UTC) FILETIME=[72256DE0:01C1FF1B] 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 > I'd use `stepi' to step by machine instructions, and see which one > explodes. Here it is, at least the type of failure has changed. Now it is SIGTRAP, and it does not take down gdb. Is the lcall jump address calculated incorrectly or what? Laurynas (gdb) r Starting program: d:/devel/djgpp/gnu/emacs/src/../bin/emacs.exe Breakpoint 2, __default_morecore (increment=118664) at gmalloc.c:1575 1575 __ptr_t result = (__ptr_t) __sbrk (increment); 1: x/i $eip 0xee869 <__default_morecore+9>: add $0xfffffff4,%esp (gdb) stepi 0x000ee86c 1575 __ptr_t result = (__ptr_t) __sbrk (increment); 1: x/i $eip 0xee86c <__default_morecore+12>: push %eax (gdb) 0x000ee86d 1575 __ptr_t result = (__ptr_t) __sbrk (increment); 1: x/i $eip 0xee86d <__default_morecore+13>: call 0xfc540 (gdb) 0x000fc540 in sbrk () 1: x/i $eip 0xfc540 : jmp 0x1390 <__sbrk> (gdb) 0x00001390 in __sbrk () 1: x/i $eip 0x1390 <__sbrk>: mov 0x10f0d6,%eax (gdb) 0x00001395 in __sbrk () 1: x/i $eip 0x1395 <__sbrk+5>: mov 0x4(%esp,1),%ecx (gdb) 0x00001399 in __sbrk () 1: x/i $eip 0x1399 <__sbrk+9>: add %ecx,%eax 0x00001399 in __sbrk () 1: x/i $eip 0x1399 <__sbrk+9>: add %ecx,%eax (gdb) 0x0000139b in __sbrk () 1: x/i $eip 0x139b <__sbrk+11>: jae 0x13b0 (gdb) 0x000013b0 in brk_common () 1: x/i $eip 0x13b0 : push %esi (gdb) 0x000013b1 in brk_common () 1: x/i $eip 0x13b1 : push %edi (gdb) 0x000013b2 in brk_common () 1: x/i $eip 0x13b2 : push %ebx (gdb) 0x000013b3 in brk_common () 1: x/i $eip 0x13b3 : mov 0x10f0d6,%edx (gdb) 0x000013b9 in brk_common () 1: x/i $eip 0x13b9 : mov %edx,0x1d4820 (gdb) 0x000013bf in brk_common () 1: x/i $eip 0x13bf : mov %eax,0x10f0d6 (gdb) 0x000013bf in brk_common () 1: x/i $eip 0x13bf : mov %eax,0x10f0d6 (gdb) 0x000013c4 in brk_common () 1: x/i $eip 0x13c4 : jb 0x145b (gdb) 0x000013ca in brk_common () 1: x/i $eip 0x13ca : cmp 0x1d4824,%eax (gdb) 0x000013d0 in brk_common () 1: x/i $eip 0x13d0 : jbe 0x159c (gdb) 0x000013d6 in brk_common () 1: x/i $eip 0x13d6 : testb $0x8,0x1d2441 (gdb) 0x000013dd in brk_common () 1: x/i $eip 0x13dd : je 0x145b (gdb) 0x000013df in brk_common () 1: x/i $eip 0x13df : add $0xffff,%eax 0x000013df in brk_common () 1: x/i $eip 0x13df : add $0xffff,%eax (gdb) 0x000013e4 in brk_common () 1: x/i $eip 0x13e4 : and $0xffff0000,%eax (gdb) 0x000013e9 in brk_common () 1: x/i $eip 0x13e9 : push %eax (gdb) 0x000013ea in brk_common () 1: x/i $eip 0x13ea : mov 0x205d0c,%edi (gdb) 0x000013f0 in brk_common () 1: x/i $eip 0x13f0 : mov 0x205d0e,%si (gdb) 0x000013f7 in brk_common () 1: x/i $eip 0x13f7 : mov %eax,%ecx (gdb) 0x000013f9 in brk_common () 1: x/i $eip 0x13f9 : mov %eax,%ebx (gdb) 0x000013fb in brk_common () 1: x/i $eip 0x13fb : shr $0x10,%ebx (gdb) 0x000013fe in brk_common () 1: x/i $eip 0x13fe : mov $0x900,%ax (gdb) 0x00001402 in brk_common () 1: x/i $eip 0x1402 : int $0x31 (gdb) 0x00001404 in brk_common () 1: x/i $eip 0x1404 : push %eax (gdb) 0x00001405 in brk_common () 1: x/i $eip 0x1405 : lcall *0x10f080 (gdb) Exiting due to signal SIGTRAP Debug at eip=00000012 eax=00500901 ebx=00000050 ecx=00500000 edx=004e0078 esi=004e0177 edi=01771b20 ebp=004dfc70 esp=004dfc38 program=d:\devel\djgpp\gnu\emacs\BIN\emacs.exe cs: sel=01ff base=0000db60 limit=0000026f ds: sel=01f7 base=02dd0000 limit=004effff es: sel=01f7 base=02dd0000 limit=004effff fs: sel=01cf base=00009b50 limit=00003fff gs: sel=0217 base=00000000 limit=0010ffff ss: sel=01f7 base=02dd0000 limit=004effff App stack: [004e0054..00460054] Exceptn stack: [002127b0..00210870] Program exited with code 0377.