Re: Memory

From: Chuck Reed (creed@I-55.COM)
Date: 03/02/98


Ok, I've looked around for sprintf statements overflowing bufs but couldn't
find any.  However, this darned memory crash keeps on happening.  This is
the latest gdb output i've gotten:

#0  0x4004f2b4 in ?? ()
(gdb) bt
#0  0x4004f2b4 in ?? ()
Cannot access memory at address 0xbfffecdc.
(gdb) bt
#0  0x4004f2b4 in ?? ()
#1  0x2a0 in ?? ()
Cannot access memory at address 0xbfffece0.
(gdb) list
165        date.day   = time_info.day;
166        fwrite(&date,sizeof(struct time_write),1,f);
167        fclose(f);
168     }
169     */
170
171     int main(int argc, char **argv)
172     {
173       char buf[512];
174       int pos = 1;
(gdb)

Does this mean that the global 'buf' has been overrun somewhere?


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST