Bug #72760 SERVER NOT ACCEPTING SOME CONNECTIONS WHEN OFFLINE_MODE IS ON
| Submitted: | 27 May 2014 6:40 | Modified: | 27 Mar 2015 2:46 |
|---|---|---|---|
| Reporter: | Atanu Ghosh | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Security: Privileges | Severity: | S3 (Non-critical) |
| Version: | 5.7.5 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[27 May 2014 6:45]
Atanu Ghosh
Posted by developer:
Description:
The server runs into a race condition and occasionally rejects
SUPER connections when OFFLINE_MODE is TRUE.
The different error message seen are:
1) ERROR 2013 (HY000): Lost connection to MySQL server at
'reading authorization packet', system error: 95
2) ERROR 2013 (HY000): Lost connection to MySQL server at
'sending authentication information', system error: 32
3) ERROR 2006 (HY000) at line 1: MySQL server has gone away
How to repeat:
Run following from two terminals
cat f.sh
for i in {1..4096}
do
echo "Welcome $i times"
./mysql -uroot -e "SET @@global.offline_mode = TRUE;SET
@@global.offline_mode = FALSE;"
done
[27 Mar 2015 2:46]
Paul DuBois
Noted in 5.7.7, 5.8.0 changelogs. With the offline_mode system variable enabled, the server sometimes failed to accept connection from a user with the SUPER privilege due to a race condition.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: The server runs into a race condition and occasionally rejects SUPER connections when OFFLINE_MODE is TRUE. The different error message seen are: 1) \ How to repeat: Run following from two terminals cat f.sh for i in {1..4096} do echo \ Suggested fix: Root user must be allowed to connect.