lp:1312618: follow up patch to fix a segfault
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL patches by Codership | Status tracked in 5.6 | |||||
5.5 |
Fix Committed
|
Undecided
|
Yan Zhang | |||
5.6 |
Fix Released
|
Undecided
|
Yan Zhang | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
High
|
Unassigned | |||
5.6 |
Fix Released
|
High
|
Unassigned |
Bug Description
http://
Suggested fix:
=== modified file 'sql/event_
--- sql/event_
+++ sql/event_
@@ -1473,20 +1473,23 @@
#ifdef WITH_WSREP
- // sql_print_
- // sizeof(LEX) = 4512, so it's relatively safe to allocate it on stack.
- LEX lex;
- lex.sql_command = SQLCOM_DROP_EVENT;
- thd->lex = &lex;
- WSREP_TO_
+ if (WSREP(thd)) {
+ // sql_print_
+ // sizeof(LEX) = 4512, so it's relatively safe to allocate it on stack.
+ LEX *old_lex= thd->lex, new_lex;
+ new_lex.
+ thd->lex= &new_lex;
+ WSREP_TO_
+ thd->lex= old_lex;
+ }
#endif
-
+
ret= Events:
-#ifdef WITH_WSREP
+#ifdef WITH_WSREP
error:
-#endif
+#endif
}
Changed in codership-mysql: | |
status: | New → Triaged |
assignee: | nobody → Yan Zhang (yan.zhang) |
fixed in bazaar. launchpad. net/~codership/ codership- mysql/wsrep- 5.5/revision/ 4003 bazaar. launchpad. net/~codership/ codership- mysql/5. 6/revision/ 4102
http://
http://