Re: ASCII pfiles, dumped core...

From: Chris Gilbert (
Date: 09/24/99

Emil Nilimaa wrote:
> After i added ascii pfiles,
> i was gettin this core dump. but didnt know how to handle it.
> no errors compiling, and as it seems the pfiles work too.
> anyways ran gdb on the core.
> (as Z showed me how)...
> This is what i get:
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /lib/libcrypt.so1...done.
> Reading symbols from /lib/
> Reading symbols from /lib/
> #0  _IO_new_fclose (fp=0x0) at iofclose.c:41
> iofclose.c:41: No such file or directory.
> #0  _IO_new_fclose (fp=0x0) at iofclose.c:41
> #1  0x8070573 in init_game (port=4000) at comm.c:365
> #2  0x80704b5 in main (argc=3, argv=0xbffffc14) at comm.c:320
> #3  0x4005ecb3 in __libc_start_main (main=0x8070250 <main>, argc=3,
>     argv=0xbffffc14, init=0x8048fe0 <_init>, fini=0x80a8ccc <_fini>,
>     rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffc0c)
>     at ../sysdeps/generic/libc-start.c:78

I'd guess that your fclosing a file you've not opened (the IO_new_fclose
is just a call to fclose, but it's got an fp of NULL (0x0))  I'd suggest
you check line 320 of your comm.c, perhaps you forgot to remove a
reference to the old player binary player file)


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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