--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -22722,6 +22722,15 @@ bool instantiate_tmp_table(TABLE *table, KEY *keyinfo,
     empty_record(table);
     table->status= STATUS_NO_RECORD;
   }
+#ifndef DBUG_OFF
+  /*
+    Sync point for MDEV-41295/MDEV-41294 regression testing: fires right
+    after the on-disk internal temp table has been created (maria_create
+    succeeded, table->set_created() called) but before open_tmp_table()
+    attempts to open it. An MTR test can block here, corrupt the file on
+    disk from a second connection, then release this one to exercise a
+    REAL maria_open() failure against real corruption.
+  */
+  DEBUG_SYNC(table->in_use, "instantiate_tmp_table_before_open");
+#endif
   if (open_tmp_table(table))
     return TRUE;
 
   return FALSE;
 }
