=== modified file 'sql/sql_parse.cc'
--- sql/sql_parse.cc	2013-05-08 18:37:17 +0000
+++ sql/sql_parse.cc	2013-05-27 00:50:02 +0000
@@ -914,6 +914,9 @@
   thd->enable_slow_log= TRUE;
   thd->query_plan_flags= QPLAN_INIT;
   thd->lex->sql_command= SQLCOM_END; /* to avoid confusing VIEW detectors */
+
+  DEBUG_SYNC(thd,"dispatch_command_before_set_time");
+
   thd->set_time();
   thd->set_query_id(get_query_id());
   if (!(server_command_flags[command] & CF_SKIP_QUERY_ID))

=== modified file 'sql/sql_show.cc'
--- sql/sql_show.cc	2013-05-11 17:31:50 +0000
+++ sql/sql_show.cc	2013-05-27 00:51:16 +0000
@@ -2297,6 +2297,8 @@
   my_hrtime_t unow= my_hrtime();
   DBUG_ENTER("fill_schema_processlist");
 
+  DEBUG_SYNC(thd,"fill_schema_processlist_after_unow");
+
   user= thd->security_ctx->master_access & PROCESS_ACL ?
         NullS : thd->security_ctx->priv_user;
 

