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, DotBot, Yandex

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » Odd "CPU Leak"
Forum Rules | Mark all | Recent Posts

Odd "CPU Leak"
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Mar 7, 2010, 3:11 pm
Go to the top of the page
Go to the bottom of the page

Atrox
Fledgling
GroupMembers
Posts19
JoinedFeb 14, 2005

I've recently been having some problems with my MUD freezing and taking up ridiculous amounts of the CPU. I'm assuming it's some kind of infinite recursion, but have NO idea where to start tracking it. I haven't recently added any for or while loops either. I'm running Smaug 1.6 FUSS. It only happens when a player's online, so I'm thinking it might be update_char, but I don't see any loops without exit conditions. I was wondering if anyone else has had any kind of problem like this, or knows some kind of debugging tool that might help me find it, GDB just doesn't do it for this kind of problem, unless it has some feature I'm not aware of.
       
Post is unread #2 Mar 7, 2010, 3:45 pm
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

Try getting the process id, then while it is looping do:

gdb ../src/smaug -p <process id>


so if the process id is 2232 do

gdb ../src/smaug -p 2232


That should allow you to attach to the game while it's still running and it will pause it wherever it's at.

Later,
KeB
       
Pages:<< prev 1 next >>