bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs doesn't compile (again)


From: Marcus Brinkmann
Subject: Re: emacs doesn't compile (again)
Date: Wed, 20 Jun 2001 00:57:34 +0200
User-agent: Mutt/1.2i

On Tue, Jun 19, 2001 at 06:34:23PM -0400, Roland McGrath wrote:
> Is this a dumped executable (from unexec)?  
> Figure out where real_morecore gets initialized.

Uh oh.

Here is a new session.  It turns out that real_morecore is 100 bytes off
from __morecore in the dumped executable, and r_alloc_reinit is never called.

Actually, a call to r_alloc_reinit in emacs.c (main) was removed in 1999 by
RMS, and I can not find any place where it is actually called.
So it seems that this might be the problem.  I will try to insert a call to
r_alloc_reinit in main() and see if this leads to something funny (like a
version of emacs which actually works).

Marcus


Script started on Wed Jun 20 00:51:30 2001
ulysses:/mnt2/emacs/emacs20-20.7/leim# 
(reverse-i-search)`': g': gdb --command=../../debug 
../src/emacs
(reverse-i-search)`g[1@d': [1@b': 
[14@ulysses:/mnt2/emacs/emacs20-20.7/leim# 
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-gnu0.2"...
(gdb) break r_alloc_init
Breakpoint 1 at 0x8120833: file ralloc.c, line 1121.
(gdb) break r_alloc_init[1@r[1@e
Breakpoint 2 at 0x8120947: file ralloc.c, line 1174.
(gdb) run   run
Starting program: /mnt2/emacs/emacs20-20.7/leim/../src/emacs -batch 
--no-init-file --no-site-file --multibyte -l 
/mnt2/emacs/emacs20-20.7/leim/../lisp/international/titdic-cnv --eval 
'(batch-titdic-convert t)' -dir quail /mnt2/emacs/emacs20-20.7/leim/CXTERM-DIC
Converting all tit files in the directory 
/mnt2/emacs/emacs20-20.7/leim/CXTERM-DIC
Converting /mnt2/emacs/emacs20-20.7/leim/CXTERM-DIC/4Corner.tit to 
quail-package...

Program received signal SIGBUS, Bus error.
0x12c460e in _obstack_newchunk (h=0x8307408, length=75904) at obstack.c:301
301     obstack.c: No such file or directory.
(gdb) prinmt  t __morecore
$1 = (void *(*)()) 0x12c360c <__default_morecore>
(gdb) print __  real_morecore
$2 = (POINTER (*)()) 0x12c460c <_obstack_newchunk+144>
(gdb) print r_alloc_sbrk
$3 = {POINTER (long int)} 0x8120318 <r_alloc_sbrk>
(gdb) The program is running.  Exit anyway? (y or n) y
ulysses:/mnt2/emacs/emacs20-20.7/leim# exit

Script done on Wed Jun 20 00:53:26 2001



reply via email to

[Prev in Thread] Current Thread [Next in Thread]