In TRANSACTION READ ONLY mode, if general logging is enabled and directed to the table, MariaDB does not update the log table, and instead writes error messages in the error log:
bzr version-info (10.0-monty)
It works fine in MySQL 5.6, revno 3917.
Output in MariaDB:
Output in MySQL 5.6: