[MDEV-375] Server crashes in THD::print_aborted_warning with log_warnings > 3 Created: 2012-06-30  Updated: 2012-08-01  Resolved: 2012-08-01

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.25
Fix Version/s: 5.5.27

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

#3  <signal handler called>
#4  0x00000000005683cf in THD::print_aborted_warning (this=0x2881e30, threshold=3, reason=0x2664227 "Too many connections") at sql/sql_class.h:3031
#5  0x000000000055e8b9 in close_connection (thd=0x2881e30, sql_errno=1040) at sql/mysqld.cc:2361
#6  0x00000000005634b9 in create_new_thread (thd=0x2881e30) at sql/mysqld.cc:5404
#7  0x0000000000563cbd in handle_connections_sockets () at sql/mysqld.cc:5690
#8  0x0000000000562b48 in mysqld_main (argc=75, argv=0x26123c0) at sql/mysqld.cc:4960
#9  0x000000000055af14 in main (argc=6, argv=0x7fff6545def8) at sql/main.c

bzr version-info

revision-id: monty@askmonty.org-20120627141312-z65pj80390f0f5pp
date: 2012-06-27 17:13:12 +0300
build-date: 2012-06-30 16:09:38 +0400
revno: 3460

Not reproducible on MariaDB 5.1-5.3, MySQL 5.5.25.

Test case:

SET GLOBAL log_warnings=4;
SET GLOBAL max_connections=2;
 
--connect (con1,localhost,root,,)
SELECT 1;
--connect (con2,localhost,root,,)
SELECT 2;
--error ER_CON_COUNT_ERROR
--connect (con3,localhost,root,,)
 
--connection default
SELECT 0;


Generated at Thu Feb 08 06:28:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.