[MDEV-2850] LP:782431 - active locks in released memory Created: 2011-05-13  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug782431.xml    

 Description   

Found during MariaDB tests with application verifier:

xt_ind_exit() frees memory block pointed to by ind_cac_globals.cg_blocks, but does not free page locks in it, that are initialized using XT_IPAGE_INIT_LOCK(self, &block->cb_lock) in xt_ind_init().

This makes application verifier unhappy on 64 bit Windows.

XTIndBlockPtr block = ind_cac_globals.cg_blocks;
for (u_int i=0; i<ind_cac_globals.cg_block_count; i++)

{ XT_IPAGE_FREE_LOCK(self, &block->cb_lock); block++; }

 Comments   
Comment by Vladislav Vaintroub [ 2011-05-13 ]

Re: active locks in released memory
the code at the end of bug report is meant to be the fix for it

Comment by Vladislav Vaintroub [ 2011-06-14 ]

Re: active locks in released memory
Fixed in MariaDB 5.2.7

Comment by Rasmus Johansson (Inactive) [ 2011-06-15 ]

Launchpad bug id: 782431

Generated at Thu Feb 08 06:44:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.