Debug assertion `thd == _current_thd()' failed with audit_log plugin turned on when "too many connections" error occured
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.6 |
Fix Released
|
High
|
Sergei Glushchenko | |||
5.7 |
Fix Released
|
High
|
Sergei Glushchenko |
Bug Description
2016-10-13 16:17:04 31523 [Note] /sda/COMP8-
Version: '5.6.33-
mysqld: /git/COMP-
05:17:04 UTC - mysqld got signal 6 ;
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/
Core was generated by `/sda/COMP8-
Program terminated with signal 6, Aborted.
#0 0x00007f1b81708741 in __pthread_kill (threadid=
61 val = INTERNAL_SYSCALL (tgkill, err, 3, THREAD_GETMEM (THREAD_SELF, pid),
(gdb) bt
+bt
#0 0x00007f1b81708741 in __pthread_kill (threadid=
#1 0x0000000000ac271a in my_write_core (sig=6) at /git/COMP-
#2 0x0000000000736903 in handle_fatal_signal (sig=6) at /git/COMP-
#3 <signal handler called>
#4 0x00007f1b7fa9f5f7 in __GI_raise (sig=sig@entry=6) at ../nptl/
#5 0x00007f1b7faa0ce8 in __GI_abort () at abort.c:90
#6 0x00007f1b7fa98566 in __assert_fail_base (fmt=0x7f1b7fbe8ce8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=
#7 0x00007f1b7fa98612 in __GI___assert_fail (assertion=0xedb75b "thd == _current_thd()", file=0xedad30 "/git/COMP-
#8 0x00000000008026ea in plugin_
#9 0x00007f1b319eea1f in get_thd_local (thd=0x7f1b52e5
#10 0x00007f1b319eea95 in get_record_buffer (thd=0x7f1b52e5
#11 0x00007f1b319ee145 in audit_log_notify (thd=0x7f1b52e5
#12 0x00000000007723e9 in plugins_dispatch (thd=0x7f1b52e5
#13 0x0000000000772487 in event_class_
#14 0x0000000000771bee in connection_
#15 0x0000000000771ed3 in mysql_audit_notify (thd=0x7f1b52e5
#16 0x000000000062b165 in close_connection (thd=0x7f1b52e5
#17 0x0000000000631891 in create_new_thread (thd=0x7f1b52e5
#18 0x00000000006322db in handle_
#19 0x0000000000630e82 in mysqld_main (argc=41, argv=0x7f1b7d83
#20 0x0000000000625210 in main (argc=41, argv=0x7fff0d69
Multithreaded run, 20 threads
tags: | added: audit |
tags: | added: regression |
summary: |
- Assertion `thd == _current_thd()' failed + Debug assertion `thd == _current_thd()' failed with audit_log plugin + turned on when "too many connections" error occured |
From Sergei; "Probably when MySQL notifies audit plugin about too many connections error it doesn't set `current_thd`... ok. It is clear to me how to reproduce."