-
Notifications
You must be signed in to change notification settings - Fork 986
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
Crash when using more than one user #897
Comments
Hi @geotro . Is it possible to have a core dump? |
I have a core dump, but it's massive and I'd rather not share, but please let me know what you'd like me to run in gdb. I hope this helps a little:
|
Hi @geotro : no problem, I think I already understood where the issue is.
If my guess is right, I need to patch mariadb client library. |
I can wait with it. Not deleting the core and it's very easy for me to produce a new one. Which version of the mariadb client library are you using? I don't see anything interesting on line 2242 of v2.3.1 |
@geotro : it is using version 2.3.1 , but libmariadb.c is patched, that's is why you don't see anything on line 2242 : the line doesn't match. |
I'm sorry but apparently this was a false alarm. I used the wrong build (debian 8) instead of the ubuntu16 one, that build worked perfectly fine until I started using a second user. It looks like the right build works perfectly so far so this can be closed for now. |
@geotro : thank you for letting me know it was a false alarm. |
Damn. It crashed again but this time it took a lot longer. I closed it too soon. |
Ok, reserving the subject and the tags. |
Cross reference to #752 |
COM_CHANGE_USER could try to reset PS already invalidated from the PS manager.
COM_CHANGE_USER could try to reset PS already invalidated from the PS manager.
@geotro : this bug should be fixed in 1.3.4 : can you please try branch v1.3.4-dev before I release ? |
Hello Rene,
Thanks for quick update..
I will try to setup the same and update you.
Br,
Krupal
…On Thu, Feb 16, 2017 at 4:26 PM, René Cannaò ***@***.***> wrote:
@geotro <https://github.com/geotro> : this bug should be fixed in 1.3.4 :
can you please try branch v1.3.4-dev
<https://github.com/sysown/proxysql/tree/v1.3.4-dev> before I release ?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#897 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABTLtxX0OR-__g9CQ2VAjThPCuC9zZJ1ks5rdCt5gaJpZM4Ly5bZ>
.
|
It's working fine now. I'll keep running this version until the next release. Good job! |
Thanks! |
I've been running the new version, 1.3.4 in production since yesterday, it was working fine until minutes ago I had the crash below. I'm reopening the ticket as it may be related to the previous issue. I have the core in case you need anything else. Interestingly, the patched version worked for many days without a crash.
|
Hi @geotro : thank you for the report. I am not sure if it is related to the previous issue or not. |
It's 1.8GB in size and I would prefer not to share it as it contains sensitive info, however I can run any commands you may need to explore it. |
It may have a lot of empty buffers, and easily compressible. |
I'm running the debug version.
|
Thank you.
I will investigate it and I will probably ask you more info, but probably not today. |
@geotro : can you please check if there was any error in the log file just before the crash?
|
Yes:
|
Thank you @geotro ! |
Interestingly it happened once after the crash, but didn't cause a crash: 2017-02-21 09:37:09 MySQL_Session.cpp:2269:handler(): [WARNING] Error during query on (0,10.0.0.16,3306): 1180, Got error 35 "Resource deadlock avoided" during COMMIT |
COM_CHANGE_USER could try to reset PS already invalidated from the PS manager.
We have an instance of proxysql v1.3.3 which worked very well in production, until the very moment we started using a second mysql user/db utilizing the same config.
As soon as the user was used, proxysql would crash, and this appears to be happening consistently, backtrace and associated info below:
2017-01-31 16:45:55 [INFO] New mysql_replication_hostgroups table
Error: signal 11:
proxysql(_Z13crash_handleri+0x1a)[0x439a1a]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7fd6fdbab4b0]
proxysql(mysql_change_user+0x199)[0x5af0f9]
proxysql[0x5b51e3]
proxysql(my_context_spawn+0x41)[0x5b4491]
2017-01-31 16:46:58 main.cpp:642:ProxySQL_daemonize_phase3(): [ERROR] ProxySQL crashed. Restarting!
2017-01-31 16:46:58 [INFO] Angel process is waiting 1 seconds before starting a new ProxySQL process
2017-01-31 16:46:59 [INFO] Angel process started ProxySQL process 6431
2017-01-31 16:46:59 ProxySQL_Admin.cpp:2853:flush_admin_variables___database_to_runtime(): [ERROR] Impossible to set variable version with value "1.3.1-2-gc762ae9". Resetting to current "1.3.3-0-gf2b677a".
2017-01-31 16:46:59 ProxySQL_Admin.cpp:2902:flush_mysql_variables___database_to_runtime(): [ERROR] Impossible to set not existing variable session_debug with value "(null)". Deleting
The text was updated successfully, but these errors were encountered: