-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault when upgrading to 2.1.0 #3251
Comments
This is likely really a malformed packet: the library for backend communication is detecting this. Recently we came across to a crash in 1.4 , but also possible in 2.0 and 2.1 , and it seems to be related to this bug in MySQL: |
We just upgraded proxysql in dev from 2.0.15 to 2.1.0, got a segfault :(
|
Yes, some problem (upgrade 2.0.15 to 2.1.0): 2021-01-26 13:37:57 [INFO] Creating new server in HG 10 : 127.0.0.1:3306 , gtid_port=0, weight=1, status=0 2021-01-26 13:37:57 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (10,127.0.0.1,3306,3699286) , FD (Conn:64 , MyDS:64) : 2027, received malformed packet |
Hi, I'm afraid the issue template is very clear for reporting crashes, for further investigation of this issue, a Thank you. |
This did resolve my issue, disable query cache on the servers. |
Thanks @patrickdk77 - though, I wonder what changed? We only really upgraded proxysql and nothing else changed within the infrastructure. In fact, downgrading fixes the issue. I can only assume this is a problem introduced within the new version of proxysql? |
@patrickdk77 : I confirm there is no need for the core dump if disabling the query cache on the servers solved the issue, as this confirms my theory. @m4ce : what changed is that ProxySQL 2.1 supports For example, it is possible that some of your client connections use |
That said, we need a way to mitigate this issue. B specifically should be the main way to mitigate this issue. |
core.42.gz |
Hi @Hitesh-Agrawal . |
@renecannao - We are using your official docker image proxysql/proxysql:2.1.0 |
Thanks! |
Is there updates or workaround for this? We want to use this version because it supports Prometheus export. |
Hi, this issue is a candidate for being solved by #3434. If you are affected please update to v2.2.0. Please let us know if the issue is solved after upgrading. Thank you. |
Hi, due to inactivity and because of being a candidate for being solved by #3434, this issue is being close. Thank you. |
Running docker image proxysql/proxysql:2.1.0, proxysql/proxysql:2.0.15 does not have this issue.
2021-01-15 03:45:25 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.141,3306,1395441) , FD (Conn:59 , MyDS:59) : 2027, received malformed packet
2021-01-15 03:45:25 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.148,3306,1427181) , FD (Conn:58 , MyDS:58) : 2000, Unknown MySQL error
2021-01-15 03:45:25 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.141,3306,1395443) , FD (Conn:59 , MyDS:59) : 2027, received malformed packet
2021-01-15 03:45:25 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.148,3306,1427183) , FD (Conn:58 , MyDS:58) : 2000, Unknown MySQL error
2021-01-15 03:45:25 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.141,3306,1395445) , FD (Conn:59 , MyDS:59) : 2000, Unknown MySQL error
2021-01-15 03:45:25 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.147,3306,1422402) , FD (Conn:61 , MyDS:61) : 2000, Unknown MySQL error
2021-01-15 03:45:26 MySQL_Session.cpp:3847:handler_minus1_ClientLibraryError(): [ERROR] Detected a broken connection during query on (2,10.1.0.141,3306,1395448) , FD (Conn:60 , MyDS:60) : 2027, received malformed packet
Error: signal 11:
proxysql(_Z13crash_handleri+0x2a)[0x55f2978c7eea]
/lib/x86_64-linux-gnu/libc.so.6(+0x33060)[0x7fb62efda060]
proxysql(unpack_field+0x4e)[0x55f297d901fa]
proxysql(mthd_my_read_metadata_ex+0x179)[0x55f297d9103a]
proxysql(mthd_my_read_metadata+0x31)[0x55f297d91145]
proxysql(mthd_stmt_get_param_metadata+0x3b)[0x55f297da19d2]
proxysql(mysql_stmt_prepare+0x354)[0x55f297da1dde]
proxysql(+0x76c2c3)[0x55f297dbc2c3]
proxysql(my_context_spawn+0x61)[0x55f297dbee64]
proxysql(mysql_stmt_prepare_start+0xa3)[0x55f297dbc380]
proxysql(_ZN16MySQL_Connection18stmt_prepare_startEv+0x50)[0x55f297a77470]
proxysql(_ZN16MySQL_Connection7handlerEs+0xab0)[0x55f297a79eb0]
proxysql(_ZN16MySQL_Connection11async_queryEsPcmPP13st_mysql_stmtP23stmt_execute_metadata_t+0xd1)[0x55f297a7aa21]
proxysql(_ZN13MySQL_Session7handlerEv+0x1a5)[0x55f297938d75]
proxysql(_ZN12MySQL_Thread20process_all_sessionsEv+0x399)[0x55f297915879]
proxysql(_ZN12MySQL_Thread3runEv+0xad0)[0x55f29791d940]
proxysql(_Z24mysql_worker_thread_funcPv+0x6c)[0x55f2978c09dc]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x74a4)[0x7fb6302104a4]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fb62f08fd0f]
---- proxysql(_Z13crash_handleri+0x2a) [0x55f2978c7eea] : crash_handler(int)
---- proxysql(_ZN16MySQL_Connection18stmt_prepare_startEv+0x50) [0x55f297a77470] : MySQL_Connection::stmt_prepare_start()
---- proxysql(_ZN16MySQL_Connection7handlerEs+0xab0) [0x55f297a79eb0] : MySQL_Connection::handler(short)
---- proxysql(_ZN16MySQL_Connection11async_queryEsPcmPP13st_mysql_stmtP23stmt_execute_metadata_t+0xd1) [0x55f297a7aa21] : MySQL_Connection::async_query(short, char*, unsigned long, st_mysql_stmt**, stmt_execute_metadata_t*)
---- proxysql(_ZN13MySQL_Session7handlerEv+0x1a5) [0x55f297938d75] : MySQL_Session::handler()
---- proxysql(_ZN12MySQL_Thread20process_all_sessionsEv+0x399) [0x55f297915879] : MySQL_Thread::process_all_sessions()
---- proxysql(_ZN12MySQL_Thread3runEv+0xad0) [0x55f29791d940] : MySQL_Thread::run()
---- proxysql(_Z24mysql_worker_thread_funcPv+0x6c) [0x55f2978c09dc] : mysql_worker_thread_func(void*)
The text was updated successfully, but these errors were encountered: