Hello, I don't think this was posted elsewhere, but if it was, please excuse me.
I am using Samson's Dynamic Command Support snippet on my SWR 1 modified mud. I am running it through a shell account running Slackware Linux 7.1, and compiling with gcc. I seem to have a memory leak somewhere, and its causing me problems.
Whenever it is supposed to give me a message with a call to the bug function, I am crashing. Using gdb, it tells me this:
When I frame 2, it tells me the the code that seems to be bugging it is:
I did a print on iChar, and got :
$3 = 2147466537
And a print on fpArea produced:
$4 = (FILE *) 0x860b310
This whole thing only oocurs when one of the prototype areas are loaded. Otherwise, its not a problem.
I don't understand memory management very well, so if anyone has any suggestions on what I might do to track down this problem, and memory leaks in general, because I seem to have a lot of the, it would be muchly appreciated.
Thanks
I am using Samson's Dynamic Command Support snippet on my SWR 1 modified mud. I am running it through a shell account running Slackware Linux 7.1, and compiling with gcc. I seem to have a memory leak somewhere, and its causing me problems.
Whenever it is supposed to give me a message with a call to the bug function, I am crashing. Using gdb, it tells me this:
#0 0x2ab64c44 in _IO_seekoff () from /lib/libc.so.6
#1 0x2ab64207 in ftell () from /lib/libc.so.6
#2 0x80dcc15 in bug (str=0x822bc60 "Error locating %s in symbol table. %s") at db.c:3871
#3 0x81a3961 in skill_function (name=0x7ffff53f "adsfasdfasf") at tables.c:51
#4 0x8097440 in do_cedit (ch=0x86534e8, argument=0x7ffff53f "adsfasdfasf") at act_wiz.c:6527
When I frame 2, it tells me the the code that seems to be bugging it is:
iChar = ftell( fpArea );
I did a print on iChar, and got :
$3 = 2147466537
And a print on fpArea produced:
$4 = (FILE *) 0x860b310
This whole thing only oocurs when one of the prototype areas are loaded. Otherwise, its not a problem.
I don't understand memory management very well, so if anyone has any suggestions on what I might do to track down this problem, and memory leaks in general, because I seem to have a lot of the, it would be muchly appreciated.
Thanks