www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/03/18:40:15

Date: Fri, 3 Jan 1997 15:28:46 -0800
Message-Id: <199701032328.PAA01032@lara.eng.sun.com>
From: paul DOT loewenstein AT Eng DOT Sun DOT COM (Paul Loewenstein)
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp AT delorie DOT com
In-reply-to: Eli Zaretskii's message of Sun, 29 Dec 1996 13:03:04 +0200 (IST)
<Pine DOT SUN DOT 3 DOT 91 DOT 961229125657 DOT 11107A-100000 AT is>
Subject: Problem with emacs 19.34

YOU AREN'T GOING TO LIKE THIS!

You said I should post this, so I do so despite its length.

> Date: Sun, 29 Dec 1996 13:03:04 +0200 (IST)
> From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
> X-Sender: eliz AT is
> cc: djgpp AT delorie DOT com
> 
> 
> On Fri, 27 Dec 1996, Paul Loewenstein wrote:
> 
> >     Can you please tell what did you try doing in Emacs when it crashed?
> > 
> > I wasn't doing anything; it crashes on startup.
> 
> Hmm... strange.  As a matter of fact, the traceback you posted doesn't 
> make sense either.  Are you using CWSDPMI or any other DPMI host (like 
> Windows)?

I am using cwsdpmi.

> 
> In any case, please try these commands:
> 
> 	set EMACSTEST=c:/gc/gnu/emacs/emacs.ses
> 	redir -o emacs.log -eo emacs -q
> 
> then post the contents of the files emacs.ses and emacs.log.

When I either

 set EMACSTEST=c:/gc/gnu/emacs/emacs.ses

or

 redir -o emacs.log -eo emacs -q

or both

emacs appears to work!  It no longer crashes!

even

 set EMACSTEST=null

causes emacs to work.

For what it is worth here is emacs.ses:

<M_INIT><M_XY=0x0>
<SET_TERM><SCREEN SAVED (dimensions=80x25)>
<FACE:0:7>
<SET_TERM><CLR:SCR><FACE:0:7><M_ON><FACE:0:7><FACE:0:7>
<XY=0x24>Loading case-table...
<XY=0x0><FACE:0:7><FACE:0:7>
<XY=21x24>done
<XY=0x0><FACE:0:7>
<SET_TERM><CLR:SCR><FACE:0:7><M_OFF><M_ON><FACE:0:7><FACE:0:7>
<XY=0x24>For information about the GNU Project and its goals, type C-h C-p.
<XY=0x0><FACE:0:7>
<SET_TERM><CLR:SCR><FACE:0:7><M_OFF><M_ON><FACE:0:7><FACE:0:7>
<XY=0x24>For information about the GNU Project and its goals, type C-h C-p.<FACE:7:0>
<XY=0x0><FACE:7:0><CLR:EOL><M_OFF>
<XY=0x0>Buffers Files Tools Edit Search Help                                            <FACE:0:7>
<XY=0x1>GNU Emacs 19.34 (i386-unknown-msdos) of Sun Nov  3 1996 on pc<FACE:0:7>
<XY=0x2>Copyright (C) 1996 Free Software Foundation, Inc.<FACE:0:7><FACE:0:7>
<XY=0x4>Type C-x C-c to exit Emacs.<FACE:0:7>
<XY=0x5>Type C-h for help; C-x u to undo changes.<FACE:0:7>
<XY=0x6>Type C-h t for a tutorial on using Emacs.<FACE:0:7>
<XY=0x7>Type C-h i to enter Info, which you can use to read GNU documentation.<FACE:0:7>
<XY=0x8>(`C-' means use the CTRL key.  `M-' means use the Meta (or Alt) key.<FACE:0:7>
<XY=0x9>If you have no Meta key, you may instead type ESC followed by the character.)<FACE:0:7><FACE:0:7>
<XY=0x11>Type F10 or M-` to use the menu bar.<FACE:0:7><FACE:0:7>
<XY=0x13>C-mouse-3 (third mouse button, with Control) gets a mode-specific menu.<FACE:0:7><FACE:0:7>
<XY=0x15>GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.<FACE:0:7>
<XY=0x16>You may give out copies of Emacs; type C-h C-c to see the conditions.<FACE:0:7>
<XY=0x17>Type C-h C-d for information on getting the latest version.<FACE:0:7><FACE:0:7><FACE:0:7><FACE:0:7><FACE:0:7><FACE:7:0>
<XY=0x23><FACE:7:0><CLR:EOL>
<XY=0x23>-----Emacs: *scratch*         (T:Lisp Interaction)--L17--All--------------------
<XY=59x17><M_ON><FACE:0:7><FACE:0:7>
<XY=0x24><FACE:0:7><CLR:EOL><FACE:7:0><FACE:0:7>
<XY=0x1><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x2><FACE:0:7><CLR:EOL><FACE:0:7><FACE:0:7>
<XY=0x4><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x5><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x6><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x7><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x8><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x9><FACE:0:7><CLR:EOL><FACE:0:7><FACE:0:7>
<XY=0x11><FACE:0:7><CLR:EOL><FACE:0:7><FACE:0:7>
<XY=0x13><FACE:0:7><CLR:EOL><FACE:0:7><FACE:0:7>
<XY=0x15><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x16><FACE:0:7><CLR:EOL><FACE:0:7>
<XY=0x17><FACE:0:7><CLR:EOL><FACE:0:7><FACE:0:7><FACE:0:7><FACE:0:7><FACE:0:7><FACE:7:0>
<XY=54x23>-
<XY=56x23>Al
<XY=59x23>-
<XY=0x1><FACE:0:7><FACE:0:7>
<XY=0x1><FACE:0:7><FACE:0:7>
<XY=0x24>(No files need saving)
<XY=0x1>
<XY=0x24><FACE:0:7><CLR:EOL>
<XY=0x24>
<RESET_TERM><M_OFF><SCREEN RESTORED (dimensions=80x25)>

and emacs.log is empty.

> 
> >     > I have tried everything I can think of, including running at home with
> >     > the config.sys and autoexec.bat from work, so DOS drivers and TSRs do
> >     > not appear to be the problem.  I haven't yet tried putting the
> >     > original 33MHz processor back pain
> 
> Another thing that I would think about is the CMOS settings.  Please 
> review items such as memory wait states and CPU cache settings.  
> Sometimes when you replace the CPU, these need to be tuned.
> 

I would be VERY surprised if it were memory wait states or cache
settings.  I run a lot of very compute-intensive tasks without any
unreliability or parity errors, in hot weather and cold.  This
includes speech recognition and ghostscript, including jpeg decoding.
I even run emacs 19.30 (presumably compiled with djgpp v1.x).  Emacs
19.34 fails in a very consistent way, whether my speech recognition
TSR is installed or not.  Since this runs in extended memory, emacs
failure appears to be independent of physical memory address.  If it
is a hardware problem I would expect it to be a rarely exercised
specific logical bug (design or manufacturing).

When emacs 19.34 crashes, it appears to do so immediately after the
screen background goes white.  It appears to manage to restore the
original screen before printing the crash report, although things
flash by quickly.

When I increase the minstack as you suggested earlier by:

	stubedit emacs.exe minstack=512k

I get an almost identical crash:

Exiting due to signal SIGSEGV
General Protection Fault at eip=000761a6
eax=32334f47 ebx=00119000 ecx=00112000 edx=00000002 esi=00119b00 edi=00000008
ebp=0021f21c esp=0021f1e8 program=C:\GC\GNU\EMACS\BIN\EMACS.EXE
cs: sel=00a7  base=10000000  limit=0025ffff
ds: sel=00af  base=10000000  limit=0025ffff
es: sel=00af  base=10000000  limit=0025ffff
fs: sel=008f  base=0001c010  limit=0000ffff
gs: sel=00cf  base=00000000  limit=ffffffff
ss: sel=00af  base=10000000  limit=0025ffff

Call frame traceback EIPs:
  0x000761a6
  0x0007642e
  0x0007646a
  0x000491cb
  0x0007646a
  0x000432d4
  0x00048360
  0x0003f495
  0x0003f558
  0x0003f898
  0x0003f927

instead of

Exiting due to signal SIGSEGV
General Protection Fault at eip=000761a6
eax=32334f47 ebx=00119000 ecx=00112000 edx=00000002 esi=00119b00 edi=00000008
ebp=001df21c esp=001df1e8 program=C:\GC\GNU\EMACS\BIN\EMACS.EXE
cs: sel=00a7  base=10000000  limit=0021ffff
ds: sel=00af  base=10000000  limit=0021ffff
es: sel=00af  base=10000000  limit=0021ffff
fs: sel=008f  base=0001c020  limit=0000ffff
gs: sel=00cf  base=00000000  limit=ffffffff
ss: sel=00af  base=10000000  limit=0021ffff

Call frame traceback EIPs:
  0x000761a6
  0x0007642e
  0x0007646a
  0x000491cb
  0x0007646a
  0x000432d4
  0x00048360
  0x0003f495
  0x0003f558
  0x0003f898
  0x0003f927

For the moment I shall try running it with

EMACSTEST=null

	Paul.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019