Seems to me that you are trying to close a file that isn't open

Dale Kingston wrote:

> ok all, all i did was add a few fclose around my place to fix up some of the
> open files it was opening and not closeing and now i get this
> #0  0x400736e9 in chunk_alloc (ar_ptr=0x40108d40, nb=184) at malloc.c:2763
> 2763    malloc.c: No such file or directory.
> (gdb) bt
> #0  0x400736e9 in chunk_alloc (ar_ptr=0x40108d40, nb=184) at malloc.c:2763
> #1  0x400735ae in __libc_malloc (bytes=176) at malloc.c:2696
> #2  0x4006c81b in _IO_new_fopen (filename=0x8106e5a "../sys/disabled.txt",
>     mode=0x8106ecb "w") at iofopen.c:42
> #3  0x8093ee2 in save_disabled () at interp.c:1227
> #4  0x80c7f25 in update_handler (forced=1 '\001') at update.c:1263
> #5  0x807535a in game_loop_unix (control=4) at comm.c:873
> #6  0x8074e39 in main (argc=2, argv=0xbffffd14) at comm.c:457
>
> and it's not just the save_disabled i had a few over saveings on top i
> referanced out to see if it was them or something else. looks like it's
> killing when ever it uses fopen. Any suggestions? also thanks for the help
> on the freeing descropots problem i had
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to