free() of memory containing active spinlock

Bug #782433 reported by Vladislav Vaintroub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Medium
Vladislav Vaintroub
PBXT
Fix Committed
Undecided
Vladimir Kolesnikov

Bug 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;
   }

Related branches

Revision history for this message
Vladislav Vaintroub (wlad-montyprogram) wrote :

Fixed in MariaDB 5.2.7

Changed in maria:
assignee: nobody → Vladislav Vaintroub (wlad-montyprogram)
importance: Undecided → Medium
milestone: none → 5.2
status: New → Fix Released
Changed in pbxt:
assignee: nobody → Vladimir Kolesnikov (vkolesnikov)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.