From: jfinger@adobe.com (Jeff Finger)
Subject: Ultrix 4.2/lemacs 19.2 temacs problem
Organization: Adobe Systems, Inc., Mountain View, CA
Distribution: net
Date: Mon, 27 Jul 1992 01:57:50 GMT

My temacs crashes under Ultrix almost immediately. Help?

This report consists of:
1. Configuration
2. Description of Problem: 
3. How I built temacs
4. Local Changes to Distribution
5. Log of Build of temacs

Thanks,
-- Jeff Finger --
================================================================
1. Configuration:
        Decstation 5000/120
        ULTRIX V4.2 ( Rev. 96 ) System #1: Thu Jun 13 16:41:48 PDT 1991
        UWS V4.2 (Rev.272)
        X11 R4
        XT_VERSION 11
        XT_REVISION 4
        GCC 2.2.2
        lemacs-19.2

2. Description of Problem: 
        lemacs-19.2/src/temacs gives a segmentation fault in 
                make_pure_string()
                init_obarray()
                main()
        The problem happens regardless of whether I use SYSTEM_MALLOC or 
        GNU_MALLOC in building the system.

        % gdb temacs
        ...
        GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
        (gdb) run -batch -l inc-vers
        Starting program: .../lemacs-19.2/src/temacs -batch -l inc-vers
        Program received signal 11, Segmentation fault
        0x474678 in make_pure_string (data=0x100a5dd4 "nil", length=3)
                                                                 at alloc.c:976
        976	  XSTRING (new)->size = length;
        (gdb) bt
        #0  0x474678 in make_pure_string (data=0x100a5dd4 "nil", length=3)
            at alloc.c:976
        #1  0x4957cc in init_obarray () at lread.c:1330
        #2  0x4474d8 in main (argc=4, argv=0x7fffb3d4, envp=0x7fffb3e8)
                                                                 at emacs.c:704
        (gdb) p/x new
        $1 = 0xc016d60
        (gdb) p/x *new
        Cannot access memory at address 0xc016d60.
        (gdb) 

3. How I built temacs:
        1. Changed src/config.h (See below)
        2. Changed src/ymakefile (See below)
        3. build-install

4. Local Changes to Distribution

% diff src/config.h src/config.h-dist
33,34c33
< /* #include "s/s-sunos4.h" */
< #include "s/s-bsd4-3.h"
---
> #include "s/s-sunos4.h"
41,42c40
< /* #include "m/m-sparc.h" */
< #include "m/m-mips.h"
---
> #include "m/m-sparc.h"
117c115
< #define NEED_STRDUP
---
> /* #define NEED_STRDUP */
157c155
< #define NEED_REALPATH
---
> /* #define NEED_REALPATH */
184c182
< #define LD_SWITCH_SITE -L/usr/local/X11R4/lib -L/user/jfinger/public-software/usr/local/lib
---
> /* #define LD_SWITCH_SITE -L/x11r4/usr.`arch`/lib */
192d189
< #define C_SWITCH_SITE -I/usr/local/X11R4/include
% diff src/ymakefile src/ymakefile.ORIG
326c326
< #define LIBS_TERMCAP -lcurses -lcursesX -ltermcap
---
> #define LIBS_TERMCAP -lcurses
480c480
< 	cd $(LWLIBDIR) ; make ${MFLAGS} CC=gcc CCOPTIONS= liblw.a
---
> 	cd $(LWLIBDIR) ; make ${MFLAGS} liblw.a
734,735c734,735
< unexmips.o: config.h # filehdr.h
< unexmips.o: # aouthdr.h scnhdr.h sym.h 
---
> unexmips.o: config.h filehdr.h
> unexmips.o: aouthdr.h scnhdr.h sym.h

5. Log of Build of temacs

% build-install
set EMACS=/usr/local/emacs
set BIN=/usr/local/bin
/bin/sed s;/usr/local/emacs;/usr/local/emacs;
cd etc
make
cc -o test-distrib test-distrib.c
./test-distrib
cc -o etags -g -DETAGS etags.c 
cc -o ctags -g -DCTAGS etags.c 
cc -o wakeup -g wakeup.c 
cc -o make-docfile -g make-docfile.c 
cc -o digest-doc -g digest-doc.c 
cc -o sorted-doc -g sorted-doc.c 
cc -o movemail -g movemail.c 
cc -o cvtmail -g cvtmail.c 
cc -o fakemail -g fakemail.c 
cc -o yow -g yow.c 
cc -o env -DEMACS -g env.c 
cc -o emacsserver -g emacsserver.c 
cc -o emacsclient -g emacsclient.c 
cc -g    b2m.c   -o b2m
cc -o hexl -g hexl.c 
cd src
make
rm -f xmakefile
cp ymakefile junk.c
gcc -E junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$//' -e 's/^ /	/' | sed -n -e '/^..*$/p' > xmakefile
rm -f junk.c
make    -f xmakefile  all
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c pre-crt0.c -o pre-crt0.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c dispnew.c -o dispnew.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c screen.c -o screen.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c scroll.c -o scroll.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c xdisp.c -o xdisp.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c window.c -o window.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c events.c -o events.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c event-alloc.c -o event-alloc.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c event-stream.c -o event-stream.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c term.c -o term.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c cm.c -o cm.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c xterm.c -o xterm.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c xfns.c -o xfns.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c xselect.c -o xselect.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c xutils.c -o xutils.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c event-Xt.c -o event-Xt.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c menubar.c -o menubar.o
In file included from events.h:185, from menubar.c:29:
/usr/include/signal.h:350: warning: `sigmask' redefined
xterm.h:113: warning: this is the location of the previous definition
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c emacs.c -o emacs.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c keyboard.c -o keyboard.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c macros.c -o macros.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c keymap.c -o keymap.o
keymap.c:481: warning: static declaration for `access_keymap' follows non-static
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c sysdep.c -o sysdep.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c buffer.c -o buffer.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c filelock.c -o filelock.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c insdel.c -o insdel.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c marker.c -o marker.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c minibuf.c -o minibuf.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c fileio.c -o fileio.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c dired.c -o dired.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c filemode.c -o filemode.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c cmds.c -o cmds.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c casetab.c -o casetab.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c casefiddle.c -o casefiddle.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c indent.c -o indent.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c search.c -o search.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c regex.c -o regex.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c undo.c -o undo.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c alloc.c -o alloc.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c data.c -o data.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c doc.c -o doc.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c editfns.c -o editfns.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c callint.c -o callint.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c eval.c -o eval.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c floatfns.c -o floatfns.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c fns.c -o fns.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c print.c -o print.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c lread.c -o lread.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c abbrev.c -o abbrev.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c syntax.c -o syntax.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c unexmips.c -o unexmips.o
unexmips.c:263: warning: `mark_x' was declared implicitly `extern' and later `static'
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c mocklisp.c -o mocklisp.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c bytecode.c -o bytecode.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c process.c -o process.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c callproc.c -o callproc.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c environ.c -o environ.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c doprnt.c -o doprnt.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c extents.c -o extents.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c faces.c -o faces.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c elhash.c -o elhash.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c hash.c -o hash.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c realpath.c -o realpath.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c terminfo.c -o terminfo.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c lastfile.c -o lastfile.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c gmalloc.c -o gmalloc.o
gmalloc.c:219: warning: conflicting types for built-in function `memcpy'
gmalloc.c: In function `__free':
gmalloc.c:435: warning: comparison of distinct pointer types lacks a cast
gmalloc.c: In function `realloc':
gmalloc.c:965: warning: comparison of distinct pointer types lacks a cast
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c vm-limit.c -o vm-limit.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c alloca.c -o alloca.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c ScreenWidget.c -o ScreenWidget.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c ColumnWidget.c -o ColumnWidget.o
gcc -g      -I/usr/local/X11R4/include  	-Demacs  -I./lwlib    -c EmacsShell.c -o EmacsShell.o
gcc -nostdlib    -D 800000  -L/usr/local/X11R4/lib -L/user/jfinger/public-software/usr/local/lib  	-L. -L./lwlib    -o temacs pre-crt0.o /lib/crt0.o  dispnew.o screen.o scroll.o xdisp.o window.o 	events.o event-alloc.o event-stream.o 	term.o cm.o xterm.o xfns.o xselect.o xutils.o event-Xt.o menubar.o   	emacs.o keyboard.o macros.o keymap.o sysdep.o 	buffer.o filelock.o insdel.o marker.o 	minibuf.o fileio.o dired.o filemode.o 	cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o 	alloc.o data.o do



c.o editfns.o callint.o 	eval.o floatfns.o fns.o print.o lread.o 	abbrev.o syntax.o unexmips.o  mocklisp.o bytecode.o 	process.o callproc.o environ.o 	doprnt.o extents.o faces.o elhash.o hash.o      	realpath.o  terminfo.o lastfile.o gmalloc.o vm-limit.o alloca.o  ScreenWidget.o ColumnWidget.o EmacsShell.o      -llw  -lXaw -lXext -lXt -lXmu -lX11         -lcurses -lcursesX -ltermcap  	  -lgcc  -lm  -lc  
rm -f ../etc/DOC
../etc/make-docfile dispnew.o screen.o scroll.o xdisp.o window.o 	events.o event-alloc.o event-stream.o 	term.o cm.o xterm.o xfns.o xselect.o xutils.o event-Xt.o menubar.o   	emacs.o keyboard.o macros.o keymap.o sysdep.o 	buffer.o filelock.o insdel.o marker.o 	minibuf.o fileio.o dired.o filemode.o 	cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o 	alloc.o data.o doc.o editfns.o callint.o 	eval.o floatfns.o fns.o print.o lread.o 	abbrev.o syntax.o unexmips.o  mocklisp.o bytecode.o 	process.o 


c
allproc.o environ.o 	doprnt.o extents.o faces.o elhash.o hash.o      	realpath.o  ../lisp/prim/simple.elc ../lisp/prim/help.elc 	../lisp/prim/files.elc ../lisp/prim/window.elc 	../lisp/prim/indent.elc ../lisp/prim/loaddefs.el 	../lisp/paths.el ../lisp/prim/startup.elc 	../lisp/prim/lisp.elc ../lisp/prim/page.elc 	../lisp/prim/register.elc ../lisp/prim/paragraphs.elc 	../lisp/modes/lisp-mode.elc ../lisp/modes/text-mode.elc 	../lisp/prim/fill.elc ../lisp/modes/c-mode.elc 	../lisp/prim/isearch.elc ../lisp/pri



m/replace.elc 	../lisp/modes/abbrev.elc ../lisp/prim/faces.elc 	../lisp/packages/buff-menu.elc ../lisp/prim/subr.elc 	../lisp/bytecomp/bytecomp-runtime.elc ../lisp/packages/lpr.elc 	../lisp/packages/compare-w.elc ../lisp/prim/novice.elc 	../lisp/prim/float-sup.elc  ../lisp/x11/x-faces.elc ../lisp/x11/x-iso8859-1.elc ../lisp/x11/x-mouse.elc ../lisp/x11/xselect.elc  ../lisp/version.el > 	  ../etc/DOC
./temacs -batch -l inc-vers
make[1]: *** [release] Segmentation fault (core dumped)
make: *** [doall] Error 1
exit 1

Newsgroups: alt.lucid-emacs.bug
Date: Mon, 27 Jul 92 16:22:52 EDT
From: jbm@cyclone.sbi.com (Jeffrey B. Moore)
Subject: raised/sunken extents?