Bug #78264 DO NOT ALLOCATE MEMORY ON GR PLUGIN P_S INTERFACE IMPLEMENTATION
Submitted: 28 Aug 2015 16:11 Modified: 10 Sep 2015 14:34
Reporter: Nuno Carvalho Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.7.6 OS:Any
Assigned to: CPU Architecture:Any

[28 Aug 2015 16:11] Nuno Carvalho
Description:
On current interface between Group Replication plugin and
Performance Tables there is memory allocation which is being
passed to server side. This memory allocation should be avoided,
also it can cause problems when it is released from a different
entity that allocated it.

How to repeat:
See code on storage/perfschema/table_replication_group_members.cc

Suggested fix:
Do not allocate memory, instead use callbacks or  similar approach to
pass information between plugin and performance schema tables.
[10 Sep 2015 14:34] Jon Stephens
DOcumented fix in the 5.7.9 and 5.8.0 changelogs, as follows:

    The interface between the Group Replication plugin and the
    Performance Schema engine made use of a type of memory
    allocation which was passed to the server, and was a potential
    source of problems when passing information between the plugin
    and performance_schema tables. The implementation for this
    interface has been reworked so as to avoid performing this type
    of memory allocation when sharing data.

Closed.