unireg_abort(1) is called when wsrep_init() fails

Bug #857930 reported by Alex Yurchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Fix Released
Medium
Seppo Jaakola
5.1
Fix Released
Medium
Alex Yurchenko
5.5
Fix Released
Medium
Seppo Jaakola

Bug Description

yet when wsrep_init() fails provider is in uninitialized state and unireg_abort() tries to call wsrep->close() and stuff which would result in segfault. Somehow unireg_abort() should be told not to do this in that case, by e.g. zeroing up wsrep pointer.

Related branches

Changed in codership-mysql:
status: New → Confirmed
status: Confirmed → New
description: updated
Revision history for this message
Seppo Jaakola (seppo-jaakola) wrote :

Pushed a fix #3559. Setting wsrep handler to NULL, if wsrep_init() fails. In unireg_abort(), wsrep operations are already currently skipped if there is no wsrep handler, so aborting should be safe with #3559

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

Backported a fix from 5.5 in #3134

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.