Skip to content

Commit 9eff9ed

Browse files
author
Nirbhay Choubey
committed
MDEV-8208 : Sporadic SEGFAULT on startup
During server start, as wsrep initialization happens before plugin_init(), segfault may occur if wsrep THDs try to access the uninitialized maria_hton.
1 parent 0bfae35 commit 9eff9ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sql/mysqld.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4497,6 +4497,12 @@ will be ignored as the --log-bin option is not defined.");
44974497
set_ports(); // this is also called in network_init() later but we need
44984498
// to know mysqld_port now - lp:1071882
44994499
#endif /* !EMBEDDED_LIBRARY */
4500+
4501+
/*
4502+
Plugin initialization (plugin_init()) hasn't happened yet, set
4503+
maria_hton to 0.
4504+
*/
4505+
maria_hton= 0;
45004506
wsrep_init_startup(true);
45014507
}
45024508
}

0 commit comments

Comments
 (0)