| Bug #104122 | mysqld.exe has weird established local connections with itself on high ports | ||
|---|---|---|---|
| Submitted: | 26 Jun 2021 21:29 | Modified: | 27 Jun 2021 19:17 |
| Reporter: | Marcelo Chas Cruz | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Windows | Severity: | S3 (Non-critical) |
| Version: | 8.0.25 | OS: | Windows (21H1 build 19043.1052) |
| Assigned to: | CPU Architecture: | x86 (Intel x64) | |
| Tags: | local connections, ports, weird | ||
[26 Jun 2021 21:29]
Marcelo Chas Cruz
[27 Jun 2021 19:17]
MySQL Verification Team
Thank you for the bug report. Probably a documentation issue.
[28 Jun 2021 9:17]
MySQL Verification Team
I was curious about this so checked in debugger. The follow code is responsible for creating these 127.0.0.1 connections.
/*
* Our signal handler is going to write to one end of the socket
* pair to wake up our event loop. The event loop then scans for
* signals that got delivered.
*/
if (evutil_make_internal_pipe_(base->sig.ev_signal_pair) == -1) {
at call stack
ws2_32.dll!bind() Unknown
> mysqld-debug.exe!evutil_ersatz_socketpair_(int family, int type, int protocol, __int64 * fd) Line 254 C
mysqld-debug.exe!evutil_socketpair(int family, int type, int protocol, __int64 * fd) Line 205 C
mysqld-debug.exe!evutil_make_internal_pipe_(__int64 * fd) Line 2663 C
mysqld-debug.exe!evsig_init_(event_base * base) Line 183 C
mysqld-debug.exe!win32_init(event_base * base) Line 203 C
mysqld-debug.exe!event_base_new_with_config(const event_config * cfg) Line 694 C
mysqld-debug.exe!event_base_new() Line 525 C
mysqld-debug.exe!ngs::Socket_events::Socket_events() Line 138 C++
[External Code]
mysqld-debug.exe!ngs::allocate_shared<ngs::Socket_events>() Line 83 C++
mysqld-debug.exe!xpl::Server_builder::Server_builder(void * plugin_handle) Line 47 C++
mysqld-debug.exe!modules::Module_mysqlx::initialize(void * plugin_handle) Line 146 C++
mysqld-debug.exe!plugin_initialize(st_plugin_int * plugin) Line 1304 C++
mysqld-debug.exe!plugin_init_initialize_and_reap() Line 1444 C++
mysqld-debug.exe!plugin_register_dynamic_and_init_all(int * argc, char * * argv, int flags) Line 1761 C++
mysqld-debug.exe!init_server_components() Line 6124 C++
mysqld-debug.exe!win_main(int argc, char * * argv) Line 7205 C++
mysqld-debug.exe!mysql_service(void * p) Line 7728 C++
mysqld-debug.exe!mysqld_main(int argc, char * * argv) Line 7944 C++
mysqld-debug.exe!main(int argc, char * * argv) Line 25 C++
