The MariaDB audit plugin that's included in 10.1.19 (and probably also the recent 5.5 and 10.0 releases) can sometimes cause the server to crash when used with MySQL.
I have seen the following backtrace with MySQL 5.6.30:
03:27:40 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68108 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x20c9530
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7efd6c423e90 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0x8e504b]
/usr/sbin/mysqld(handle_fatal_signal+0x491)[0x674761]
/lib64/libpthread.so.0(+0xf100)[0x7efd80cae100]
/usr/lib64/mysql/plugin/server_audit.so(auditing+0x4f4)[0x7efd7a590324]
/usr/sbin/mysqld[0x6a3105]
/usr/sbin/mysqld(_Z18mysql_audit_notifyP3THDjjz+0xba)[0x6a32fa]
/usr/sbin/mysqld[0x65db3c]
/usr/sbin/mysqld(_ZN6LOGGER11log_commandEP3THD19enum_server_commandPKcm+0x36)[0x661846]
/usr/sbin/mysqld(_Z17general_log_printP3THD19enum_server_commandPKcz+0x8b)[0x66193b]
/usr/sbin/mysqld(_Z16acl_authenticateP3THDj+0x2d3)[0x699ac3]
/usr/sbin/mysqld[0x6c34e3]
/usr/sbin/mysqld(_Z16login_connectionP3THD+0x3e)[0x6c441e]
/usr/sbin/mysqld(_Z22thd_prepare_connectionP3THD+0x24)[0x6c4a14]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x12c)[0x6c4d2c]
/usr/sbin/mysqld(handle_one_connection+0x40)[0x6c4e10]
/usr/sbin/mysqld(pfs_spawn_thread+0x143)[0xb39433]
/lib64/libpthread.so.0(+0x7dc5)[0x7efd80ca6dc5]
/lib64/libc.so.6(clone+0x6d)[0x7efd7f96a1cd]
Another user reported the following backtrace on 5.7.15:
Thread pointer: 0x7f2624000fa0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong…
stack_bottom = 7f263c4f5ea8 thread_stack 0x40000
/usr/local/mysql/bin/mysqld(my_print_stacktrace+0x35)[0xf1e045]
/usr/local/mysql/bin/mysqld(handle_fatal_signal+0x4a4)[0x79d404]
/lib64/libpthread.so.0(+0xf100)[0x7f266085d100]
/usr/local/mysql/lib/plugin/server_audit.so(auditing+0x4f4)[0x7f264409c324]
/usr/local/mysql/lib/plugin/server_audit.so(+0x940d)[0x7f264409f40d]
/usr/local/mysql/bin/mysqld(_Z18mysql_audit_notifyP3THD30mysql_event_general_subclass_tiPKcm+0x262)[0x79e032]
/usr/local/mysql/bin/mysqld(_ZN12Query_logger17general_log_printEP3THD19enum_server_commandPKcz+0xad)[0xc4267d]
/usr/local/mysql/bin/mysqld(_Z15acl_log_connectPKcS0_S0_S0_P3THD19enum_server_command+0xa5)[0x7a3e95]
/usr/local/mysql/bin/mysqld(_Z16acl_authenticateP3THD19enum_server_command+0xaa1)[0x7a5ec1]
/usr/local/mysql/bin/mysqld[0xcb8475]
/usr/local/mysql/bin/mysqld(_Z22thd_prepare_connectionP3THD+0x5e)[0xcb88de]
/usr/local/mysql/bin/mysqld(handle_connection+0x279)[0xdc5a39]
/usr/local/mysql/bin/mysqld(pfs_spawn_thread+0x174)[0x11d6ae4]
/lib64/libpthread.so.0(+0x7dc5)[0x7f2660855dc5]
/lib64/libc.so.6(clone+0x6d)[0x7f265f51dced]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): is an invalid pointer
Connection ID (thread ID): 4
Status: NOT_KILLED
The plugin was installed in the following way:
Download the MariaDB tarball and put the plugin in the proper location:
$ wget https://downloads.mariadb.org/interstitial/mariadb-10.1.19/bintar-linux-x86_64/mariadb-10.1.19-linux-x86_64.tar.gz
$ tar -xzf mariadb-10.1.19-linux-x86_64.tar.gz
$ ls -l mariadb-10.1.19-linux-x86_64/lib/plugin/ | grep "audit"
-rwxr-xr-x 1 ec2-user ec2-user 176024 Nov 4 09:37 server_audit.so
$ sudo install mariadb-10.1.19-linux-x86_64/lib/plugin/server_audit.so /usr/lib64/mysql/plugin/
Then install the plugin in MySQL:
INSTALL PLUGIN server_audit SONAME 'server_audit.so';
Then enable it in the configuration file:
server_audit_logging=ON
server_audit_events=connect,query,table,query_ddl,query_dml,query_dcl
server_audit_excl_users=root
And restart the server:
sudo systemctl restart mysqld
Elena Stepanova
made changes -
2016-12-09 10:24
Field
Original Value
New Value
Assignee
Alexey Botchkov
[ holyfoot
]
Alexey Botchkov
made changes -
2016-12-16 15:03
Status
Open
[ 1
]
In Progress
[ 3
]
Alexey Botchkov
made changes -
2016-12-16 15:03
issue.field.resolutiondate
2016-12-16 15:03:57.0
2016-12-16 15:03:57.613
Alexey Botchkov
made changes -
2016-12-16 15:03
Fix Version/s
5.5.54
[ 22307
]
Fix Version/s
5.5
[ 15800
]
Fix Version/s
10.0
[ 16000
]
Fix Version/s
10.1
[ 16100
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:43
Workflow
MariaDB v3
[ 78686
]
MariaDB v4
[ 151336
]
{"report":{"fcp":870.6999998092651,"ttfb":300.19999980926514,"pageVisibility":"visible","entityId":59286,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7195ed6b-8047-4d75-b652-f0ebda7b4f0a","navigationType":0,"readyForUser":956.5999999046326,"redirectCount":0,"resourceLoadedEnd":1389.0999999046326,"resourceLoadedStart":307.69999980926514,"resourceTiming":[{"duration":68.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":307.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":307.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":376.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":68.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":308,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":308,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":376.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":120.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":308.19999980926514,"connectEnd":308.19999980926514,"connectStart":308.19999980926514,"domainLookupEnd":308.19999980926514,"domainLookupStart":308.19999980926514,"fetchStart":308.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":385.5,"responseEnd":428.7999997138977,"responseStart":402.09999990463257,"secureConnectionStart":308.19999980926514},{"duration":128.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":308.40000009536743,"connectEnd":308.40000009536743,"connectStart":308.40000009536743,"domainLookupEnd":308.40000009536743,"domainLookupStart":308.40000009536743,"fetchStart":308.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":385.59999990463257,"responseEnd":436.69999980926514,"responseStart":403.90000009536743,"secureConnectionStart":308.40000009536743},{"duration":93.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":308.69999980926514,"connectEnd":308.69999980926514,"connectStart":308.69999980926514,"domainLookupEnd":308.69999980926514,"domainLookupStart":308.69999980926514,"fetchStart":308.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":385.69999980926514,"responseEnd":401.7999997138977,"responseStart":401.2999997138977,"secureConnectionStart":308.69999980926514},{"duration":95,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":308.7999997138977,"connectEnd":308.7999997138977,"connectStart":308.7999997138977,"domainLookupEnd":308.7999997138977,"domainLookupStart":308.7999997138977,"fetchStart":308.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":387.09999990463257,"responseEnd":403.7999997138977,"responseStart":403.19999980926514,"secureConnectionStart":308.7999997138977},{"duration":96,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":309,"connectEnd":309,"connectStart":309,"domainLookupEnd":309,"domainLookupStart":309,"fetchStart":309,"redirectEnd":0,"redirectStart":0,"requestStart":387.09999990463257,"responseEnd":405,"responseStart":404.40000009536743,"secureConnectionStart":309},{"duration":76.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":309.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":385.5,"responseStart":0,"secureConnectionStart":0},{"duration":97.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":309.40000009536743,"connectEnd":309.40000009536743,"connectStart":309.40000009536743,"domainLookupEnd":309.40000009536743,"domainLookupStart":309.40000009536743,"fetchStart":309.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":387.2999997138977,"responseEnd":406.59999990463257,"responseStart":405.09999990463257,"secureConnectionStart":309.40000009536743},{"duration":77.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":309.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":387,"responseStart":0,"secureConnectionStart":0},{"duration":191.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":309.69999980926514,"connectEnd":428,"connectStart":428,"domainLookupEnd":428,"domainLookupStart":428,"fetchStart":309.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":428.5,"responseEnd":501.19999980926514,"responseStart":480.59999990463257,"secureConnectionStart":428},{"duration":1068.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":319,"connectEnd":319,"connectStart":319,"domainLookupEnd":319,"domainLookupStart":319,"fetchStart":319,"redirectEnd":0,"redirectStart":0,"requestStart":658.4000000953674,"responseEnd":1387.2999997138977,"responseStart":1379.4000000953674,"secureConnectionStart":319},{"duration":1065.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":322.59999990463257,"connectEnd":322.59999990463257,"connectStart":322.59999990463257,"domainLookupEnd":322.59999990463257,"domainLookupStart":322.59999990463257,"fetchStart":322.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":672.0999999046326,"responseEnd":1388,"responseStart":1381.5999999046326,"secureConnectionStart":322.59999990463257},{"duration":273.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":630.6999998092651,"connectEnd":630.6999998092651,"connectStart":630.6999998092651,"domainLookupEnd":630.6999998092651,"domainLookupStart":630.6999998092651,"fetchStart":630.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":818.7999997138977,"responseEnd":904.1999998092651,"responseStart":903.1999998092651,"secureConnectionStart":630.6999998092651},{"duration":140.7000002861023,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":863.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":863.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1004.5,"responseStart":0,"secureConnectionStart":0},{"duration":212.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1002.4000000953674,"connectEnd":1002.4000000953674,"connectStart":1002.4000000953674,"domainLookupEnd":1002.4000000953674,"domainLookupStart":1002.4000000953674,"fetchStart":1002.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1156.7999997138977,"responseEnd":1214.6999998092651,"responseStart":1213.4000000953674,"secureConnectionStart":1002.4000000953674},{"duration":172.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1216.9000000953674,"connectEnd":1216.9000000953674,"connectStart":1216.9000000953674,"domainLookupEnd":1216.9000000953674,"domainLookupStart":1216.9000000953674,"fetchStart":1216.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1334.5999999046326,"responseEnd":1389.0999999046326,"responseStart":1383.9000000953674,"secureConnectionStart":1216.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":99,"responseStart":301,"responseEnd":323,"domLoading":304,"domInteractive":1407,"domContentLoadedEventStart":1407,"domContentLoadedEventEnd":1448,"domComplete":1993,"loadEventStart":1993,"loadEventEnd":1994,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1390.7999997138977},{"name":"bigPipe.sidebar-id.end","time":1391.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1391.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1393.9000000953674},{"name":"activityTabFullyLoaded","time":1466.7999997138977}],"measures":[],"correlationId":"6f8423c0b38bd3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":16,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
http://lists.askmonty.org/pipermail/commits/2016-December/010296.html