I got this gdb after a crash: #0 0x4004bac6 in ?? ()Cannot access memory at address 0x40009b5c. (gdb) list 161 date.month = time_info.month; 162 date.day = time_info.day; 163 fwrite(&date,sizeof(struct time_write),1,f); 164 fclose(f); 165 } 166 167 int main(int argc, char **argv) 168 { 169 char buf[512]; 170 int pos = 1; (gdb) info locals No symbol table info available. (gdb) print d No symbol "d" in current context. (gdb) print f No symbol "f" in current context. (gdb) print ch No symbol "ch" in current context. (gdb) print argc No symbol "argc" in current context. (gdb) print buf $1 = '\000' <repeats 8191 times> Now, when I print buf, it says that \c000 repeats 8191 times. My max string length just happens to be 8192. Am I guessing right by saying that the global buf has been overwritten somewhere? Chuck +------------------------------------------------------------+ | 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