From: Sam S. <sd...@gn...> - 2003-07-03 20:38:26
|
(gdb) run -B . -Efile UTF-8 -Eterminal UTF-8 -norc -m 750KW -x "(and (load \"init.lisp\") sys::savinitmm) (ext::eit))" Starting program: /home/sds/src/clisp/build-g/lisp.run -B . -Efile UTF-8 -Eterminal UTF-8 -norc -m 750KW -x "(and (load \"init.lisp\") (sys::%saveinitmem) (ext::exit))" STACK depth: 23975 SP depth: 267455 Program received signal SIGBUS, Bus error. 0x80a8c in nls_asciiext_wcslen (encoding={one_o = <error type>}, src=0xffbeb240, srcend=0xffbeb25c) at encoding.d:1577 1577 var const unsigned char* const* cvtable = table->page_uni2charset; (gdb) p table $1 = (nls_table_t *) 0x2e1d3d (gdb) p *table $2 = {charset = 0x2e1d3d00 <Address 0x2e1d3d00 out of bounds>, page_uni2charset = 0x500217f, charset2uni = 0xffffbf7f, is_ascii_extension = -16640} (gdb) p table->page_uni2charset $3 = (unsigned char **) 0x500217f (gdb) p *table->page_uni2charset Cannot access memory at address 0x500217f. (gdb) where #0 0x80a8c in nls_asciiext_wcslen (encoding={one_o = <error type>}, src=0xffbeb240, srcend=0xffbeb25c) at encoding.d:1577 #1 0x81894 in C_make_encoding () at encoding.d:1778 #2 0x84688 in init_encodings_2 () at encoding.d:2229 #3 0x346dc in initmem () at spvw.d:1428 #4 0x36e88 in main (argc=12, argv=0xffbef73c) at spvw.d:2592 (gdb) xout encoding Program received signal SIGBUS, Bus error. 0x21354 in string_out_ (out=0x2ef9f8, str={one_o = <error type>}, encoding={ one_o = <error type>}) at spvw_debug.d:40 40 var uintL bytelen = cslen(encoding,srcptr,len); The program being debugged stopped while in a function called from GDB. When the function (nobject_out) is done executing, GDB will silently stop (instead of continuing to evaluate the expression containing the function call). (gdb) p len $4 = <error type> (gdb) p encoding $5 = {one_o = <error type>} (gdb) up #1 0x21740 in nobject_out1 (out=0x2ef9f8, obj={one_o = <error type>}, level=4) at spvw_debug.d:85 85 string_out(out,ThePackage(pack)->pack_name); (gdb) #2 0x2324c in nobject_out (out=0x2ef9f8, obj={one_o = <error type>}) at spvw_debug.d:259 259 nobject_out1(out,obj,level); (gdb) #3 <function called from gdb> (gdb) #4 0x80a8c in nls_asciiext_wcslen (encoding={one_o = <error type>}, src=0xffbeb240, srcend=0xffbeb25c) at encoding.d:1577 1577 var const unsigned char* const* cvtable = table->page_uni2charset; (gdb) #5 0x81894 in C_make_encoding () at encoding.d:1778 1778 }); (gdb) -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> Lisp is a language for doing what you've been told is impossible. - Kent Pitman |