[MDEV-3456] LP:782433 - free() of memory containing active spinlock 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 LPexportBug782433.xml    

 Description   

xt_heap_release() does not release spinlock hp->h_lock that is initialized in xt_heap_new().

This makes Windows application verifier unhappy.

Fix:
— storage/pbxt/src/heap_xt.cc 2009-11-24 10:55:06 +0000
+++ storage/pbxt/src/heap_xt.cc 2011-05-13 17:03:23 +0000
@@ -109,6 +109,7 @@
if (hp->h_finalize)
(*hp->h_finalize)(self, hp);
xt_spinlock_unlock(&hp->h_lock);
+ xt_spinlock_free(NULL, &hp->h_lock);
xt_free(self, hp);
return;
}



 Comments   
Comment by Vladislav Vaintroub [ 2011-06-14 ]

Re: free() of memory containing active spinlock
Fixed in MariaDB 5.2.7

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

Launchpad bug id: 782433

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