bug-gforth
[Top][All Lists]
Advanced

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

[Bug-gforth] [bug #46988] Fix use of uninitalized memory


From: Jasper Lievisse Adriaanse
Subject: [Bug-gforth] [bug #46988] Fix use of uninitalized memory
Date: Wed, 27 Jan 2016 17:38:28 +0000
User-agent: Mozilla/5.0 (X11; OpenBSD amd64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36

Follow-up Comment #4, bug #46988 (project gforth):

I can reproduce the crash 100% of the time:

GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "amd64-unknown-openbsd5.9"...
Core was generated by `gforth-ditc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpthread.so.20.1...done.
Loaded symbols for /usr/lib/libpthread.so.20.1
Loaded symbols for /usr/obj/ports/gforth-0.7.3/gforth-0.7.3/gforth-ditc
Reading symbols from /usr/local/lib/libavcall.so.1.0...done.
Loaded symbols for /usr/local/lib/libavcall.so.1.0
Reading symbols from /usr/local/lib/libffi.so.1.2...done.
Loaded symbols for /usr/local/lib/libffi.so.1.2
Reading symbols from /usr/local/lib/libltdl.so.5.0...done.
Loaded symbols for /usr/local/lib/libltdl.so.5.0
Reading symbols from /usr/lib/libm.so.9.0...done.
Loaded symbols for /usr/lib/libm.so.9.0
Symbols already loaded for /usr/lib/libpthread.so.20.1
Reading symbols from /usr/lib/libc.so.84.2...done.
Loaded symbols for /usr/lib/libc.so.84.2
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x00001e33f031ec7b in check_prims (symbols1=0x1e35fbc01000) at
./main.c:954
954       for (i=0; symbols1[i]!=0; i++)
(gdb) bt
#0  0x00001e33f031ec7b in check_prims (symbols1=0x1e35fbc01000) at
./main.c:954
#1  0x00001e33f031ef25 in gforth_loader (imagefile=0x1e3619f01100,
filename=0x1e33f0423970 "gforth.fi")
    at ./main.c:1860
#2  0x00001e33f031fdd1 in main (argc=15, argv=0x7f7ffffcf538,
env=0x7f7ffffcf5b8) at ./main.c:2323
(gdb) bt full
#0  0x00001e33f031ec7b in check_prims (symbols1=0x1e35fbc01000) at
./main.c:954
        i = 1536
#1  0x00001e33f031ef25 in gforth_loader (imagefile=0x1e3619f01100,
filename=0x1e33f0423970 "gforth.fi")
    at ./main.c:1860
        header = {base = 0x1e3619f01100 "", checksum = 16837413913267837873,
image_size = 140187732341696, 
  dict_size = 33208421971100, data_stack_size = 7165064483209180463,
fp_stack_size = 7435269714738113633, 
  return_stack_size = 3328212250303557478, locals_stack_size =
8245922036098215479, 
  boot_entry = 0x74720069662e6874, throw_entry = 0x1e0069662e68, unused1 =
33217707870848, 
  xt_base = 0x1e33f031f40a, data_stack_base = 0x7f7ffffcf330
"/usr/local/lib/gforth/0.7.3/gforth.fi", 
  fp_stack_base = 0x7f7ffffcf370 "0177177", return_stack_base = 0x1e33f0423970
"gforth.fi", 
  locals_stack_base = 0x1b8a3e9a00 <Address 0x1b8a3e9a00 out of bounds>}
        image = 0x7f7ffffcf803 "/usr/local/share/gforth/0.7.3:."
        imp = 0x1 <Address 0x1 out of bounds>
        magic = " 02177177 00"
        magic7 = 0 ' '
        preamblesize = 0
        data_offset = 0
        check_sum = 140187732341776
        ausize = 0
        charsize = 0
        cellsize = 3
        sizebyte = 7
#2  0x00001e33f031fdd1 in main (argc=15, argv=0x7f7ffffcf538,
env=0x7f7ffffcf5b8) at ./main.c:2323
        path = 0x7f7ffffcf7a1
".:/usr/local/lib/gforth/site-forth:/usr/local/share/gforth/site-forth:/usr/local/lib/gforth/0.7.3:/usr/local/share/gforth/0.7.3:."
        imagename = 0x1e33f0423970 "gforth.fi"
        image_file = (FILE *) 0x1e3619f01100
        image = 0x7f7ffffcf5b8 "177177"
        retvalue = 0
(gdb)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46988>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]