If binary logging is not enabled thd->user_var_events_alloc would never be initialized.
Attach a file by drag & drop or click to upload