Skip to content
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

ProxySQL 3.0.0 crash while proxy pgsql. #4811

Open
chuyengiason opened this issue Feb 3, 2025 · 0 comments
Open

ProxySQL 3.0.0 crash while proxy pgsql. #4811

chuyengiason opened this issue Feb 3, 2025 · 0 comments

Comments

@chuyengiason
Copy link

Hi
My environment is :

  • proxysql : 3.0.0 alpha
  • postgresql server : 16+260.pgdg20.04+1

When i use psql cli, I can connect to postgresql server via proxysql normally.
But when I use DBeaver on macos. it show the error while test connection and the proxysql is crashed

Image

Here is the driver that DBeaver is using

Image

Here is the proxysql's crash log

proxysql: ../include/PgSQL_Connection.h:253: int PgSQL_Conn_Param::get_param_name(const char*): Assertion key != -1' failed.
Error: signal 6:
/usr/bin/proxysql(_Z13crash_handleri+0x34)[0x5609c89cdf90]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef10)[0x7f4080a71f10]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f4080a71e87]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f4080a737f1]
/lib/x86_64-linux-gnu/libc.so.6(+0x303fa)[0x7f4080a633fa]
/lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7f4080a63472]
/usr/bin/proxysql(_ZN16PgSQL_Conn_Param14get_param_nameEPKc+0x82)[0x5609c8d41834]
/usr/bin/proxysql(ZN16PgSQL_Conn_Param9set_valueEPKcS1+0x27)[0x5609c8d4177b]
/usr/bin/proxysql(_ZN14PgSQL_Protocol20load_conn_parametersEP9pgsql_hdrb+0xbe)[0x5609c8d3c382]
/usr/bin/proxysql(_ZN14PgSQL_Protocol22process_startup_packetEPhjRb+0x1d2)[0x5609c8d3c574]
/usr/bin/proxysql(_ZN13PgSQL_Session59handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKEEP10_PtrSize_tPb+0xb0)[0x5609c8d7d79c]
/usr/bin/proxysql(_ZN13PgSQL_Session20get_pkts_from_clientERbR10_PtrSize_t+0x15e)[0x5609c8d779c6]
/usr/bin/proxysql(_ZN13PgSQL_Session7handlerEv+0x28d)[0x5609c8d7ba99]
/usr/bin/proxysql(_ZN12PgSQL_Thread20process_all_sessionsEv+0x6ef)[0x5609c8d559f7]
/usr/bin/proxysql(_ZN12PgSQL_Thread3runEv+0xbb3)[0x5609c8d53765]
/usr/bin/proxysql(_Z24pgsql_worker_thread_funcPv+0xe9)[0x5609c899dbb8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7f4081d7d6db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f4080b5461f]
---- /usr/bin/proxysql(_Z13crash_handleri+0x34) [0x5609c89cdf90] : crash_handler(int)
---- /usr/bin/proxysql(_ZN16PgSQL_Conn_Param14get_param_nameEPKc+0x82) [0x5609c8d41834] : PgSQL_Conn_Param::get_param_name(char const*)
---- /usr/bin/proxysql(ZN16PgSQL_Conn_Param9set_valueEPKcS1+0x27) [0x5609c8d4177b] : PgSQL_Conn_Param::set_value(char const*, char const*)
---- /usr/bin/proxysql(_ZN14PgSQL_Protocol20load_conn_parametersEP9pgsql_hdrb+0xbe) [0x5609c8d3c382] : PgSQL_Protocol::load_conn_parameters(pgsql_hdr*, bool)
---- /usr/bin/proxysql(_ZN14PgSQL_Protocol22process_startup_packetEPhjRb+0x1d2) [0x5609c8d3c574] : PgSQL_Protocol::process_startup_packet(unsigned char*, unsigned int, bool&)
---- /usr/bin/proxysql(_ZN13PgSQL_Session59handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKEEP10_PtrSize_tPb+0xb0) [0x5609c8d7d79c] : PgSQL_Session::handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKE(_PtrSize_t*, bool*)
---- /usr/bin/proxysql(_ZN13PgSQL_Session20get_pkts_from_clientERbR10_PtrSize_t+0x15e) [0x5609c8d779c6] : PgSQL_Session::get_pkts_from_client(bool&, _PtrSize_t&)
---- /usr/bin/proxysql(_ZN13PgSQL_Session7handlerEv+0x28d) [0x5609c8d7ba99] : PgSQL_Session::handler()
---- /usr/bin/proxysql(_ZN12PgSQL_Thread20process_all_sessionsEv+0x6ef) [0x5609c8d559f7] : PgSQL_Thread::process_all_sessions()
---- /usr/bin/proxysql(_ZN12PgSQL_Thread3runEv+0xbb3) [0x5609c8d53765] : PgSQL_Thread::run()
---- /usr/bin/proxysql(_Z24pgsql_worker_thread_funcPv+0xe9) [0x5609c899dbb8] : pgsql_worker_thread_func(void*)
To report a crashing bug visit: https://github.com/sysown/proxysql/issues
For support visit: https://proxysql.com/services/support/
2025-02-03 14:47:30 main.cpp:1687:ProxySQL_daemonize_phase3(): [ERROR] ProxySQL crashed. Restarting!`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant