home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / lucidem / bug / 56 < prev    next >
Encoding:
Text File  |  1992-07-26  |  13.0 KB  |  242 lines

  1. Newsgroups: alt.lucid-emacs.bug
  2. Path: sparky!uunet!decwrl!adobe!jfinger
  3. From: jfinger@adobe.com (Jeff Finger)
  4. Subject: Ultrix 4.2/lemacs 19.2 temacs problem
  5. Message-ID: <1992Jul27.015750.22024@adobe.com>
  6. Sender: usenet@adobe.com (USENET NEWS)
  7. Organization: Adobe Systems, Inc., Mountain View, CA
  8. Distribution: net
  9. Date: Mon, 27 Jul 1992 01:57:50 GMT
  10. Lines: 227
  11.  
  12. My temacs crashes under Ultrix almost immediately. Help?
  13.  
  14. This report consists of:
  15. 1. Configuration
  16. 2. Description of Problem: 
  17. 3. How I built temacs
  18. 4. Local Changes to Distribution
  19. 5. Log of Build of temacs
  20.  
  21. Thanks,
  22. -- Jeff Finger --
  23. ================================================================
  24. 1. Configuration:
  25.         Decstation 5000/120
  26.         ULTRIX V4.2 ( Rev. 96 ) System #1: Thu Jun 13 16:41:48 PDT 1991
  27.         UWS V4.2 (Rev.272)
  28.         X11 R4
  29.         XT_VERSION 11
  30.         XT_REVISION 4
  31.         GCC 2.2.2
  32.         lemacs-19.2
  33.  
  34. 2. Description of Problem: 
  35.         lemacs-19.2/src/temacs gives a segmentation fault in 
  36.                 make_pure_string()
  37.                 init_obarray()
  38.                 main()
  39.         The problem happens regardless of whether I use SYSTEM_MALLOC or 
  40.         GNU_MALLOC in building the system.
  41.  
  42.         % gdb temacs
  43.         ...
  44.         GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
  45.         (gdb) run -batch -l inc-vers
  46.         Starting program: .../lemacs-19.2/src/temacs -batch -l inc-vers
  47.         Program received signal 11, Segmentation fault
  48.         0x474678 in make_pure_string (data=0x100a5dd4 "nil", length=3)
  49.                                                                  at alloc.c:976
  50.         976      XSTRING (new)->size = length;
  51.         (gdb) bt
  52.         #0  0x474678 in make_pure_string (data=0x100a5dd4 "nil", length=3)
  53.             at alloc.c:976
  54.         #1  0x4957cc in init_obarray () at lread.c:1330
  55.         #2  0x4474d8 in main (argc=4, argv=0x7fffb3d4, envp=0x7fffb3e8)
  56.                                                                  at emacs.c:704
  57.         (gdb) p/x new
  58.         $1 = 0xc016d60
  59.         (gdb) p/x *new
  60.         Cannot access memory at address 0xc016d60.
  61.         (gdb) 
  62.  
  63. 3. How I built temacs:
  64.         1. Changed src/config.h (See below)
  65.         2. Changed src/ymakefile (See below)
  66.         3. build-install
  67.  
  68. 4. Local Changes to Distribution
  69.  
  70. % diff src/config.h src/config.h-dist
  71. 33,34c33
  72. < /* #include "s/s-sunos4.h" */
  73. < #include "s/s-bsd4-3.h"
  74. ---
  75. > #include "s/s-sunos4.h"
  76. 41,42c40
  77. < /* #include "m/m-sparc.h" */
  78. < #include "m/m-mips.h"
  79. ---
  80. > #include "m/m-sparc.h"
  81. 117c115
  82. < #define NEED_STRDUP
  83. ---
  84. > /* #define NEED_STRDUP */
  85. 157c155
  86. < #define NEED_REALPATH
  87. ---
  88. > /* #define NEED_REALPATH */
  89. 184c182
  90. < #define LD_SWITCH_SITE -L/usr/local/X11R4/lib -L/user/jfinger/public-software/usr/local/lib
  91. ---
  92. > /* #define LD_SWITCH_SITE -L/x11r4/usr.`arch`/lib */
  93. 192d189
  94. < #define C_SWITCH_SITE -I/usr/local/X11R4/include
  95. % diff src/ymakefile src/ymakefile.ORIG
  96. 326c326
  97. < #define LIBS_TERMCAP -lcurses -lcursesX -ltermcap
  98. ---
  99. > #define LIBS_TERMCAP -lcurses
  100. 480c480
  101. <     cd $(LWLIBDIR) ; make ${MFLAGS} CC=gcc CCOPTIONS= liblw.a
  102. ---
  103. >     cd $(LWLIBDIR) ; make ${MFLAGS} liblw.a
  104. 734,735c734,735
  105. < unexmips.o: config.h # filehdr.h
  106. < unexmips.o: # aouthdr.h scnhdr.h sym.h 
  107. ---
  108. > unexmips.o: config.h filehdr.h
  109. > unexmips.o: aouthdr.h scnhdr.h sym.h
  110.  
  111. 5. Log of Build of temacs
  112.  
  113. % build-install
  114. set EMACS=/usr/local/emacs
  115. set BIN=/usr/local/bin
  116. /bin/sed s;/usr/local/emacs;/usr/local/emacs;
  117. cd etc
  118. make
  119. cc -o test-distrib test-distrib.c
  120. ./test-distrib
  121. cc -o etags -g -DETAGS etags.c 
  122. cc -o ctags -g -DCTAGS etags.c 
  123. cc -o wakeup -g wakeup.c 
  124. cc -o make-docfile -g make-docfile.c 
  125. cc -o digest-doc -g digest-doc.c 
  126. cc -o sorted-doc -g sorted-doc.c 
  127. cc -o movemail -g movemail.c 
  128. cc -o cvtmail -g cvtmail.c 
  129. cc -o fakemail -g fakemail.c 
  130. cc -o yow -g yow.c 
  131. cc -o env -DEMACS -g env.c 
  132. cc -o emacsserver -g emacsserver.c 
  133. cc -o emacsclient -g emacsclient.c 
  134. cc -g    b2m.c   -o b2m
  135. cc -o hexl -g hexl.c 
  136. cd src
  137. make
  138. rm -f xmakefile
  139. cp ymakefile junk.c
  140. gcc -E junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$//' -e 's/^ /    /' | sed -n -e '/^..*$/p' > xmakefile
  141. rm -f junk.c
  142. make    -f xmakefile  all
  143. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c pre-crt0.c -o pre-crt0.o
  144. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c dispnew.c -o dispnew.o
  145. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c screen.c -o screen.o
  146. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c scroll.c -o scroll.o
  147. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c xdisp.c -o xdisp.o
  148. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c window.c -o window.o
  149. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c events.c -o events.o
  150. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c event-alloc.c -o event-alloc.o
  151. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c event-stream.c -o event-stream.o
  152. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c term.c -o term.o
  153. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c cm.c -o cm.o
  154. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c xterm.c -o xterm.o
  155. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c xfns.c -o xfns.o
  156. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c xselect.c -o xselect.o
  157. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c xutils.c -o xutils.o
  158. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c event-Xt.c -o event-Xt.o
  159. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c menubar.c -o menubar.o
  160. In file included from events.h:185, from menubar.c:29:
  161. /usr/include/signal.h:350: warning: `sigmask' redefined
  162. xterm.h:113: warning: this is the location of the previous definition
  163. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c emacs.c -o emacs.o
  164. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c keyboard.c -o keyboard.o
  165. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c macros.c -o macros.o
  166. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c keymap.c -o keymap.o
  167. keymap.c:481: warning: static declaration for `access_keymap' follows non-static
  168. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c sysdep.c -o sysdep.o
  169. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c buffer.c -o buffer.o
  170. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c filelock.c -o filelock.o
  171. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c insdel.c -o insdel.o
  172. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c marker.c -o marker.o
  173. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c minibuf.c -o minibuf.o
  174. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c fileio.c -o fileio.o
  175. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c dired.c -o dired.o
  176. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c filemode.c -o filemode.o
  177. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c cmds.c -o cmds.o
  178. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c casetab.c -o casetab.o
  179. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c casefiddle.c -o casefiddle.o
  180. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c indent.c -o indent.o
  181. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c search.c -o search.o
  182. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c regex.c -o regex.o
  183. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c undo.c -o undo.o
  184. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c alloc.c -o alloc.o
  185. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c data.c -o data.o
  186. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c doc.c -o doc.o
  187. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c editfns.c -o editfns.o
  188. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c callint.c -o callint.o
  189. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c eval.c -o eval.o
  190. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c floatfns.c -o floatfns.o
  191. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c fns.c -o fns.o
  192. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c print.c -o print.o
  193. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c lread.c -o lread.o
  194. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c abbrev.c -o abbrev.o
  195. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c syntax.c -o syntax.o
  196. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c unexmips.c -o unexmips.o
  197. unexmips.c:263: warning: `mark_x' was declared implicitly `extern' and later `static'
  198. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c mocklisp.c -o mocklisp.o
  199. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c bytecode.c -o bytecode.o
  200. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c process.c -o process.o
  201. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c callproc.c -o callproc.o
  202. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c environ.c -o environ.o
  203. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c doprnt.c -o doprnt.o
  204. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c extents.c -o extents.o
  205. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c faces.c -o faces.o
  206. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c elhash.c -o elhash.o
  207. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c hash.c -o hash.o
  208. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c realpath.c -o realpath.o
  209. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c terminfo.c -o terminfo.o
  210. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c lastfile.c -o lastfile.o
  211. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c gmalloc.c -o gmalloc.o
  212. gmalloc.c:219: warning: conflicting types for built-in function `memcpy'
  213. gmalloc.c: In function `__free':
  214. gmalloc.c:435: warning: comparison of distinct pointer types lacks a cast
  215. gmalloc.c: In function `realloc':
  216. gmalloc.c:965: warning: comparison of distinct pointer types lacks a cast
  217. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c vm-limit.c -o vm-limit.o
  218. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c alloca.c -o alloca.o
  219. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c ScreenWidget.c -o ScreenWidget.o
  220. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c ColumnWidget.c -o ColumnWidget.o
  221. gcc -g      -I/usr/local/X11R4/include      -Demacs  -I./lwlib    -c EmacsShell.c -o EmacsShell.o
  222. 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
  223.  
  224.  
  225.  
  226. 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  
  227. rm -f ../etc/DOC
  228. ../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 
  229.  
  230.  
  231. c
  232. 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
  233.  
  234.  
  235.  
  236. 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
  237. ./temacs -batch -l inc-vers
  238. make[1]: *** [release] Segmentation fault (core dumped)
  239. make: *** [doall] Error 1
  240. exit 1
  241.  
  242.