Percona XtraDB Cluster - HA scalable solution for MySQL

Segfault in find_wsrep_new_cluster() when loading plugin.

Reported by Alex Yurchenko on 2013-10-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
5.5
High
Alex Yurchenko
5.6
High
Alex Yurchenko
Percona XtraDB Cluster
Status tracked in Trunk
5.6
Undecided
Unassigned
Trunk
Undecided
Unassigned

Bug Description

It appears that some options in the argv list passed to find_wsrep_new_cluster() can be NULL. This is because:
1. find_wsrep_new_cluster() clears up all occurrences of --wsrep-new-cluster from the argv vector padding it with NULLs and reducing option count.
2. mysql_install_plugin() restores option count to orig_argc before calling my_load_defaults()

So we end up with modified argv vector but original argc count.

Related branches

description: updated
Alex Yurchenko (ayurchen) wrote :

The solution seems to be: move find_wsrep_new_cluster() out of my_load_defaults() and into main(), before setting orig_argc, since --wsrep-new-cluster is an option that should be seen only by mysqld and only once..

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers