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

core dump while building 1997-09-25 on NetBSD-i386



: sean.ebone.net ; uname -a
NetBSD sean.ebone.net 1.2G NetBSD 1.2G (EBONE) #0: Thu Oct  2 19:25:59 CEST 1997     smd@sean.ebone.net:/usr/src/sys/arch/i386/compile/EBONE i386

I did two things.

Firstly, I had to create the src/locale directory
manually, to avoid this:

if test -d locale; then rm -rf locale; fi
mkdir locale
(cd gettext/po && make && make install datadir=../.. localedir='$(datadir)/locale' INSTALL_DATA=ln) || (rm -rf locale ; exit 1)
installing en.gmo as ../../locale/en/LC_MESSAGES/clisp.mo
installing de.gmo as ../../locale/de/LC_MESSAGES/clisp.mo
installing fr.gmo as ../../locale/fr/LC_MESSAGES/clisp.mo
installing de.gmo as ../../locale/de/LC_MESSAGES/clisp.mo
ln: ../../locale/de/LC_MESSAGES/clisp.mo: File exists
*** Error code 1

Stop.
*** Error code 1

Stop.

Secondly, I adjusted CFLAGS to remove any optimization
other than -O and added in -g, in order to track down the
core dump:

./lisp.run -m 750KW -N locale -x "(load \"init.lsp\") (sys::%saveinitmem) (exit)"
  i i i i i i i       ooooo    o        ooooooo   ooooo   ooooo   
  I I I I I I I      8     8   8           8     8     o  8    8  
  I I I I I I I      8         8           8     8        8    8  
  I I I I I I I      8         8           8      ooooo   8oooo   
  I  \ `+' /  I      8         8           8           8  8       
   \  `-+-'  /       8     o   8           8     o     8  8       
    `-__|__-'         ooooo    8oooooo  ooo8ooo   ooooo   8       
        |                                                         
  ------+------     Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
                    Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
                                                                  
;; Loading file defseq.lsp ...
;; Loading of file defseq.lsp is finished.
;; Loading file backquot.lsp ...
;; Loading of file backquot.lsp is finished.
;; Loading file defmacro.lsp ...
;; Loading of file defmacro.lsp is finished.
;; Loading file macros1.lsp ...
;; Loading of file macros1.lsp is finished.
;; Loading file macros2.lsp ...
;; Loading of file macros2.lsp is finished.
;; Loading file defs1.lsp ...
;; Loading of file defs1.lsp is finished.
;; Loading file places.lsp ...Segmentation fault - core dumped
*** Error code 139

Stop.
: sean.ebone.net ; gdb lisp.run *core
GDB is free software and you are welcome to 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.
GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc...
Core was generated by `lisp.run'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libtermcap.so.0.0...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6.1...done.
Reading symbols from /usr/lib/libc.so.12.17...done.
#0  C_let () at control.d:725
725	                  TheSymbolflagged(symbol)->symvalue = newval; # neuer Wert
Breakpoint 1 at 0x6a61: file spvw.d, line 9762.

(gdb) bt
#0  C_let () at control.d:725
#1  0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#2  0x15572 in eval1 (form=0x40035ae8) at eval.d:3126
#3  0x151fe in eval (form=0x40035ae8) at eval.d:2970
#4  0x20097 in C_multiple_value_bind () at control.d:1775
#5  0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#6  0x15572 in eval1 (form=0x400513f0) at eval.d:3126
#7  0x151fe in eval (form=0x400513f0) at eval.d:2970
#8  0x1e6b3 in C_let () at control.d:732
#9  0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#10 0x15572 in eval1 (form=0x40051408) at eval.d:3126
#11 0x151fe in eval (form=0x40051408) at eval.d:2970
#12 0x20097 in C_multiple_value_bind () at control.d:1775
#13 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#14 0x15572 in eval1 (form=0x40051430) at eval.d:3126
#15 0x151fe in eval (form=0x40051430) at eval.d:2970
#16 0x1e7db in C_letstern () at control.d:775
#17 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#18 0x15572 in eval1 (form=0x40051450) at eval.d:3126
#19 0x151fe in eval (form=0x40051450) at eval.d:2970
#20 0x1f0d8 in C_if () at control.d:1132
#21 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#22 0x15572 in eval1 (form=0x40051470) at eval.d:3126
#23 0x151fe in eval (form=0x40051470) at eval.d:2970
#24 0x14dc3 in funcall_iclosure (closure=0x8008a00, args_pointer=0xf000290, 
    argcount=0) at eval.d:2754
#25 0x18cff in funcall_closure (closure=0x8008a00, args_on_stack=2)
    at eval.d:5885
#26 0x180a1 in funcall (fun=0x8008a00, args_on_stack=2) at eval.d:5104
#27 0x1e061 in C_pfuncall (argcount=2, rest_args_pointer=0x2000a4a8)
    at control.d:422
#28 0x18568 in funcall_subr (fun=0xe000c00, args_on_stack=268435455)
    at eval.d:5423
#29 0x17f38 in funcall (fun=0xe000c00, args_on_stack=3) at eval.d:5030
#30 0x12f02 in macroexp (form=0x40076e20, venv=0x20000000, fenv=0x20000000)
    at eval.d:1380
#31 0x154ae in eval1 (form=0x40076e20) at eval.d:3093
#32 0x151fe in eval (form=0x40076e20) at eval.d:2970
#33 0x12a3d in eval_5env (form=0x40076e20, var_env=0x20000000, 
    fun_env=0x10000000, block_env=0x20000000, go_env=0x20000000, 
    decl_env=0x400022b8) at eval.d:1021
#34 0x12a71 in eval_noenv (form=0x40076e20) at eval.d:1035
#35 0x20aad in C_eval () at control.d:2093
#36 0x15fd2 in eval_subr (fun=0xe000d80) at eval.d:3633
#37 0x15537 in eval1 (form=0x40009860) at eval.d:3112
#38 0x151fe in eval (form=0x40009860) at eval.d:2970
#39 0x1f287 in C_cond () at control.d:1190
#40 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#41 0x15572 in eval1 (form=0x400097b8) at eval.d:3126
#42 0x151fe in eval (form=0x400097b8) at eval.d:2970
#43 0x1fd86 in C_multiple_value_list () at control.d:1661
#44 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#45 0x15572 in eval1 (form=0x400097b0) at eval.d:3126
#46 0x151fe in eval (form=0x400097b0) at eval.d:2970
#47 0x1dd35 in C_setq () at control.d:305
#48 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#49 0x15572 in eval1 (form=0x400097a0) at eval.d:3126
#50 0x151fe in eval (form=0x400097a0) at eval.d:2970
#51 0x1e6b3 in C_let () at control.d:732
#52 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#53 0x15572 in eval1 (form=0x40009710) at eval.d:3126
#54 0x151fe in eval (form=0x40009710) at eval.d:2970
#55 0x1fa32 in C_tagbody () at control.d:1540
#56 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#57 0x15572 in eval1 (form=0x400096c8) at eval.d:3126
#58 0x151fe in eval (form=0x400096c8) at eval.d:2970
#59 0x202fa in C_unwind_protect () at control.d:1848
#60 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#61 0x15572 in eval1 (form=0x400096c0) at eval.d:3126
#62 0x151fe in eval (form=0x400096c0) at eval.d:2970
#63 0x1f363 in C_block () at control.d:1213
#64 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#65 0x15572 in eval1 (form=0x400096b0) at eval.d:3126
#66 0x151fe in eval (form=0x400096b0) at eval.d:2970
#67 0x1e7db in C_letstern () at control.d:775
#68 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#69 0x15572 in eval1 (form=0x40009d28) at eval.d:3126
#70 0x151fe in eval (form=0x40009d28) at eval.d:2970
#71 0x1f0d8 in C_if () at control.d:1132
#72 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#73 0x15572 in eval1 (form=0x40009da8) at eval.d:3126
#74 0x151fe in eval (form=0x40009da8) at eval.d:2970
#75 0x1e6b3 in C_let () at control.d:732
#76 0x1586f in eval_fsubr (fun=0x10000000, args=0xfffffff) at eval.d:3270
#77 0x15572 in eval1 (form=0x40009dc0) at eval.d:3126
#78 0x151fe in eval (form=0x40009dc0) at eval.d:2970
#79 0x14dc3 in funcall_iclosure (closure=0x80014a0, args_pointer=0xf000054, 
    argcount=0) at eval.d:2754
#80 0x169f0 in eval_closure (closure=0x1) at eval.d:4029
#81 0x15552 in eval1 (form=0x40048ed0) at eval.d:3118
#82 0x151fe in eval (form=0x40048ed0) at eval.d:2970
#83 0x12a3d in eval_5env (form=0x40048ed0, var_env=0x20000000, 
    fun_env=0x10000000, block_env=0x20000000, go_env=0x20000000, 
    decl_env=0x400022b8) at eval.d:1021
#84 0x12a71 in eval_noenv (form=0x40048ed0) at eval.d:1035
#85 0x5187e in C_load () at debug.d:418
#86 0x15fd2 in eval_subr (fun=0xe000e58) at eval.d:3633
#87 0x15537 in eval1 (form=0x40003140) at eval.d:3112
#88 0x151fe in eval (form=0x40003140) at eval.d:2970
#89 0x5142e in C_read_eval_print () at debug.d:234
#90 0x18579 in funcall_subr (fun=0xe000e40, args_on_stack=268435455)
    at eval.d:5429
#91 0x17f38 in funcall (fun=0xe000e40, args_on_stack=1) at eval.d:5030
#92 0x51602 in driver () at debug.d:306
#93 0xec63 in main (argc=7, argv=0xf7bfc53c) at spvw.d:12231
(gdb) frame 0
#0  C_let () at control.d:725
725	                  TheSymbolflagged(symbol)->symvalue = newval; # neuer Wert
(gdb) list
720	              if (*(oint*)(markptr) & wbit(dynam_bit_o)) # Bindung dynamisch?
721	                { var object symbol = *(markptr STACKop varframe_binding_sym); # Variable
722	                  var object newval = *(markptr STACKop varframe_binding_value); # neuer Wert
723	                  *(markptr STACKop varframe_binding_value) = TheSymbolflagged(symbol)->symvalue; # alten Wert im Frame sichern
724	                  *(oint*)(markptr) |= wbit(active_bit_o); # Bindung aktivieren
725	                  TheSymbolflagged(symbol)->symvalue = newval; # neuer Wert
726	                }
727	                else
728	                { *(oint*)(markptr) |= wbit(active_bit_o); } # Bindung aktivieren
729	            }});
(gdb) 

I get the same frame 0 with all the optimizations turned
on but of course the lack of frame pointers gives me no
stack backtrace.

I imagine someone has ideas of how to debug this...

	Sean.