Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing, Yahoo!

Members: 0
Guests: 17
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
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 >>