From: <no...@so...> - 2002-03-16 20:10:07
|
Bugs item #520096, was opened at 2002-02-19 13:01 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=103248&aid=520096&group_id=3248 Category: BZFlag Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bryan Jennings (bryjen) Assigned to: Nobody/Anonymous (nobody) Summary: Too many teleporters lock linux client Initial Comment: Trying to connect to a server using a custom world file that contains too many (>16) teleporters causes the linux client to lock up. Upon killing the bzflag process, it gives a "Segmentation fault" message. The Windows client works OK to the same server, although I haven't counted the teleporters to be sure they're all there. I believe this is a bug in src/bzflag/World.cxx. I was a little confused, as targetArraySize seems to really reflect a count of the teleporters, not the number of ints in the array. The varible is always multiplied by two when used. ( 2 faces/links/ints per teleporter ) Removing the divide and the multiplies solves the lock up problem, and makes targetArraySize truly be the size of the array. Maybe there was a rounding/comparison issue hiding in there somewhere? I donno. ---------------------------------------------------------------------- >Comment By: Bryan Jennings (bryjen) Date: 2002-03-16 14:10 Message: Logged In: YES user_id=463615 targetArraySize still isn't an exact count because the array is zero based. Need to add 1 to targetArraySize when memcpy'ing the array. New patch to be applied to a clean v1.7e4. ---------------------------------------------------------------------- Comment By: Bryan Jennings (bryjen) Date: 2002-02-20 09:03 Message: Logged In: YES user_id=463615 This is in version 1.7e4 ---------------------------------------------------------------------- Comment By: Bryan Jennings (bryjen) Date: 2002-02-19 15:16 Message: Logged In: YES user_id=463615 Oops, missed the patch file ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=103248&aid=520096&group_id=3248 |