Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
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, Bing

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
633
Rhyader
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » possible bug with the CHECK_L...
Forum Rules | Mark all | Recent Posts

possible bug with the CHECK_LINKS macro
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jul 13, 2009, 8:38 am   Last edited Jul 13, 2009, 11:41 am by Andril
Go to the top of the page
Go to the bottom of the page

Andril
Magician
GroupMembers
Posts147
JoinedJun 9, 2009

Or maybe with the INSERT macro, though I don't think this is the case.

Anyways, I'm trying to use INSERT to, well, insert something in front of something else. Afterwards I'm calling CHECK_LINKS just to make sure everything is still working like it should be and the mud hangs. Here's what the log file shows for the last session when this happened.
Mon Jul 13 08:26:18 2009 :: [*****] BUG: CHECK_LINKS(ship->first_module): 0x91d3088:->prev != 0x91cf000.  Fixing.
Mon Jul 13 08:26:18 2009 :: [*****] BUG: CHECK_LINKS(ship->first_module): 0x91d3088:->prev != 0x91d3088.  Fixing.


Now, looking at the CHECK_LINKS macro, ship->first_module(*ptr)->prev is getting checked against *pptr, which should be NULL. This is, apparently, not the case. It also appears to be stuck in an infinite loop, which is why I believe the mud is hanging, because, as you can see, *pptr is changing, but it's not changing *ptr, which looks to be stuck on ship->first_module.

Then again, it only happens after using INSERT, so maybe it is the other way around?
       
Pages:<< prev 1 next >>