mysql-udf-http icon indicating copy to clipboard operation
mysql-udf-http copied to clipboard

Crash on http_post

Open bhelm opened this issue 8 years ago • 2 comments

i got multiple mysqld crashes that have the mysql-udf-http module in its trace.

i have multple triggers that use the http_post function to send json data. but not sure which circumstances lead to the crash, i just want to document it. is it possible that there is a post data size that could lead to the crash? in my case, i possible post multiple MB of data.

 161208 11:37:50 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see http://kb.askmonty.org/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.

Server version: 10.0.17-MariaDB-1~wheezy-wsrep
key_buffer_size=209715200
read_buffer_size=4194304
max_used_connections=495
max_threads=502
thread_count=45
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 4327763 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0x7f83750cf008
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x7f85795ffe30 thread_stack 0x48000
/usr/sbin/mysqld(my_print_stacktrace+0x2b)[0x55a5566a626b]
/usr/sbin/mysqld(handle_fatal_signal+0x422)[0x55a55622c072]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f93b94e28d0]
/usr/sbin/mysqld(free+0x63)[0x55a556707ac3]
/usr/lib/mysql/plugin/mysql-udf-http.so(http_post_deinit+0x12)[0x7f92b1dfd052]
/usr/sbin/mysqld(_ZN11udf_handler7cleanupEv+0x39)[0x55a5562868b9]
/usr/sbin/mysqld(_ZN13Item_udf_func7cleanupEv+0x18)[0x55a556286968]
/usr/sbin/mysqld(_Z13cleanup_itemsP4Item+0x21)[0x55a5560b0c71]
/usr/sbin/mysqld(_ZN7sp_head7executeEP3THDb+0x734)[0x55a55632b414]
/usr/sbin/mysqld(_ZN7sp_head15execute_triggerEP3THDPK19st_mysql_lex_stringS4_P13st_grant_info+0x19b)[0x55a55632b7fb]
/usr/sbin/mysqld(_ZN19Table_triggers_list16process_triggersEP3THD14trg_event_type20trg_action_time_typeb+0x125)[0x55a5561471c5]
/usr/sbin/mysqld(_Z12mysql_updateP3THDP10TABLE_LISTR4ListI4ItemES6_PS4_jP8st_ordery15enum_duplicatesbPySB_+0x11eb)[0x55a55615207b]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x2c0b)[0x55a5560b95ab]
/usr/sbin/mysqld(+0x43e60a)[0x55a5560bf60a]
/usr/sbin/mysqld(+0x43ef67)[0x55a5560bff67]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x18a2)[0x55a5560c1e02]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x21f)[0x55a5560c272f]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x58b)[0x55a55618449b]
/usr/sbin/mysqld(handle_one_connection+0x47)[0x55a556184597]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4)[0x7f93b94db0a4]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f93b7a6307d]

bhelm avatar Dec 08 '16 16:12 bhelm

Hi. Could you send a patch for this issue?

y-ken avatar Jan 05 '17 10:01 y-ken

i have no patch and no reproducion call. i just wanted to document the issue.

bhelm avatar Jan 05 '17 10:01 bhelm