PenUltima Online

It is currently Sat Sep 06, 2008 7:17 pm

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: GetWorldHeight
PostPosted: Sat Nov 25, 2006 2:20 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
There is a bug inside GetWorldHeight... in some cirumstances it will return an error instead of expected z-value (no Core crash).

affected releases:
pol-linuxbin-097-2006-10-18-gentoo.tar.gz
pol-linuxbin-097-2006-10-29-RC-Coregina-gentoo.tar.gz

To be correct, _all_ releases are affected but all other releases just hide this problem. These releases were build on a new compiler release (gcc4.1.1).

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 6:51 pm 
Offline

Joined: Fri Feb 10, 2006 8:29 am
Posts: 21
Can I ask what are the circumstances of that error? or is it random error?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 25, 2006 7:36 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
the values was not initialized, but it was never a problem here. the value was taken from stack and it was greater than 1000 (huge value in real but positive) in any case... in Win, Linux and FreeBSD release if they use 32 bit integer, just by luck.

but now, using newer gcc, 64 bit integers are used (just by default). so the value taken from stack is different. not in includes an older return address and the whole value will become negative.

the algorithm inside needs a larger positive value to init... so it will break here...

Shinigami


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl