From: Nickolay S. <sk...@us...> - 2002-09-26 18:14:47
|
Build Version : T1.5.0.834 Firebird 1.5 Alpha 1 (writeBuildNum.sh,v 1.814 2002/09/26 18:14:44 skidder Exp $ ) Update of /cvsroot/firebird/firebird2/src/jrd In directory usw-pr-cvs1:/tmp/cvs-serv25780 Modified Files: vio.cpp Log Message: Fixed nasty memory corruption problem which caused server to crash quasi-randomly under high load (seems to be very old bug) Index: vio.cpp =================================================================== RCS file: /cvsroot/firebird/firebird2/src/jrd/vio.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -b -U3 -r1.12 -r1.13 --- vio.cpp 25 Sep 2002 17:12:11 -0000 1.12 +++ vio.cpp 26 Sep 2002 18:14:43 -0000 1.13 @@ -4162,6 +4162,9 @@ memcpy(temp, *rec_ptr, sizeof(rec) + sizeof(SCHAR)*(*gc_record)->rec_length); delete *rec_ptr; *rec_ptr = temp; + // 26 Sep 2002, SKIDDER: Failure to do so causes nasty memory corruption in + // some cases. + *gc_record = temp; /* V4_MUTEX_UNLOCK (&relation->rel_mutex); */ return (REC)*rec_ptr; } |