Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/plugins/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 1 kB image not shown  

Quelle  server_audit_bugs.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[84] VHDL[72] VDM[60]} [Methode: maximale Elemente, drei Dimensionen]

--source include/not_embedded.inc

if (!$SERVER_AUDIT_SO) {
  skip No SERVER_AUDIT plugin;
}

--echo #
--echo # MDEV-34074 server_audit crashes in get_loc_info() with NULL loc_info
--echo #
# THDVAR() could return NULL if the plugin was previously uninstalled -
# uninstall wipes the session-variable placeholders and they are not
# reinitialized on re-install. Black magic to reproduce: install and
# uninstall server_audit, create a new session and touch any plugin session
# variable (aria_repair_threads), then install server_audit again.
# The "will be uninstalled on shutdown" warning below is misleading: the
# plugin is actually reaped as soon as its last reference drops (which is
# what wipes the placeholders), not on shutdown.
INSTALL PLUGIN server_audit SONAME 'server_audit';
UNINSTALL PLUGIN server_audit;

connect (con1,localhost,root,,);
DO @@session.aria_repair_threads;

connection default;
INSTALL PLUGIN server_audit SONAME 'server_audit';

connection con1;
SELECT 1;

connection default;
disconnect con1;
UNINSTALL PLUGIN server_audit;

[Dauer der Verarbeitung: 0.15 Sekunden, vorverarbeitet 2026-10-08]