Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, Bing

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,396
629
DarrenPayn
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » Memory and System Maintenance
Forum Rules | Mark all | Recent Posts

Memory and System Maintenance
< Newer Topic :: Older Topic > Methods of maintenance

Pages:<< prev 1 next >>
Post is unread #1 Aug 21, 2003, 9:39 am
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

Can anyone suggest some ways of tracking down memory leaks, or of general maintenance? Something like checking of file descriptors and the like. I've a bad problem, and at a total loss of how to track it down.
       
Post is unread #2 Aug 22, 2003, 3:23 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Perhaps you could elaborate on the problem you're having? With more information someone might be able to come up with a solution
       
Post is unread #3 Aug 22, 2003, 8:19 am
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

Well, this specific problem was an error with fpArea in bug(), but I resolved it later by when someone pointed me to the SML archives. However, I know from when I first started coding mud that I didn't have a CLUE about memory management, and at the moment I have several issues, including extra sockets after a reboot, I know I have issues with thing like "order remote score" crashing it, and it does have the check to do oldscore, stuff with me characters info not being de-allocated in free_char().

In regards specifically to free_char, what do you have to free? Everything that might have been allocated?

Thank you very much for the help.
       
Post is unread #4 Aug 22, 2003, 4:26 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Wow, extra sockets after reboots and such? That's not good. Assuming you mean a cold reboot and not a copyover. That would point to system problems rather than codebase problems.

As for the other, if you aren't too far along in development you might want to consider the SWR FUSS package available in the files section at www.mudplanet.org. Has all the bugfixes I could find applied to it already.

And yes, anything you allocate to a character using STRALLOC or str_dup needs to be freed up in free_char or you'll get leaks. Big ones :P
       
Post is unread #5 Aug 22, 2003, 4:45 pm
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

Ok, thanks, I'll go through and make sure all the STRALLOC are cleared up. And I did mean a copyover, sorry, that is creating the extra sockets. The other issues, like score, I was being an idiot, and I figured it out after looking at it for a quarter second. But the sockets I don't like. I'm fairly modified and it would take ALOT of work to move it into FUSS. I did download it though, and followed your list in buglist.txt, applying the same changes. Also, I do know a couple of SWR bugs if your interested in it for FUSS.

Thanks for the help.
-Greven
       
Post is unread #6 Aug 23, 2003, 3:06 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

I'm not sure which version of copyover your SWR has, but you might consider removing it and replacing it with my hotboot snippet. Should be compatible with it, though I haven't tested it for that.
       
Post is unread #7 Aug 24, 2003, 7:44 am
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

I'm using a SWR port from Erwin's Copyover 7 by Iczer. I tried to put in your hotboot on top of mine about a week ago, but it didn't work so good. Guess I'll go through and remove the original copyover stuff first. If you want, I can modify the instructions and the .c and .h files that come with it and send it back to you. Thanks.
       
Pages:<< prev 1 next >>