Statistics: ANALYZE TABLE failure and memory loss warnings after deleting records from a table

Description

With statistics enabled, If I create a table, insert a few records and then delete some, the following ANALYZE TABLE statement fails and memory loss warnings are thrown. The memory leak is for real, if I run a similar test for several minutes, the server ends up with "out of memory".

bzr version-info

As far as I can tell, it started happening since revno 3360 (not reproducible on revno 3359).

Test case:

Environment

None

Assignee

Igor Babaev

Reporter

Elena Stepanova

Labels

None

Fix versions

Priority

Major
Configure