Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12705

10.1.18-MariaDB-1~jessie - mysqld got signal 11

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.18, 10.1(EOL), 10.2(EOL)
    • 10.1.32
    • GIS, Server
    • None
    • Debian GNU/Linux 8.2 (jessie)
      32GB Ram - CPU 16 Core - SSD 1TB
    • 10.2.10

    Description

      170505 16:17:38 [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 https://mariadb.com/kb/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.1.18-MariaDB-1~jessie
      key_buffer_size=8589934592
      read_buffer_size=2097152
      max_used_connections=1419
      max_threads=5002
      thread_count=1023
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 28979515 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x0x7f636b4ec008
      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 = 0x7f6299eef1f8 thread_stack 0x48400
      *** buffer overflow detected ***: /usr/sbin/mysqld terminated
      

      Attachments

        1. mariadb.err.0
          216 kB
        2. mariadb.err
          239 kB

        Activity

          Since we don't know enough about the initial problem, let's at least fix the test case above in scope of this bug report, maybe by luck it will also fix the reported failure.

          SELECT ST_RELATE( 
              ST_DIFFERENCE( 
                  GEOMETRYFROMTEXT(' 
                      MULTILINESTRING( 
                          ( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ), 
                          ( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ), 
                          ( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ), 
                          ( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ), 
                          ( 35944 64702, 14433 23728, 49317 26241, 790 16941 ) 
                      ) 
                  '),
                  GEOMETRYFROMTEXT('POINT(46061 13545)') 
              ), 
              GEOMETRYFROMTEXT('POINT(4599 60359)'), 
              'F*FFFF**F' 
          );
          

          10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700

          mysqltest: At line 1: query 'SELECT ST_RELATE( 
          ST_DIFFERENCE( 
          GEOMETRYFROMTEXT(' 
                      MULTILINESTRING( 
                          ( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ), 
                          ( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ), 
                          ( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ), 
                          ( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ), 
                          ( 35944 64702, 14433 23728, 49317 26241, 790 16941 ) 
                      ) 
                  '),
          GEOMETRYFROMTEXT('POINT(46061 13545)') 
          ), 
          GEOMETRYFROMTEXT('POINT(4599 60359)'), 
          'F*FFFF**F' 
          )' failed: 5: Out of memory (Needed 1024 bytes)
          

          10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700

          Error: Reallocating overrun buffer  0x55e501f16bbe, 0x55e501f04329, 0x55e50171e181, mysys/safemalloc.c:176, 0x55e50171f757, 0x55e501a4fdf2, 0x55e501a4fd68, 0x55e50192dfe8
          Allocated at 0x55e50171e1c5, 0x55e5015aedd0, 0x55e50171f757, 0x55e501a4fdf2, 0x55e50192e130, 0x55e5018cf033, sql/sql_string.h:331, sql/sql_string.cc:699
          Error: Reallocating overrun buffer  mysys/safemalloc.c:176, mysys/my_malloc.c:165, sql/sql_string.cc:94, sql/sql_string.h:331, sql/sql_string.h:485, sql/gcalc_tools.cc:119, sql/item_geofunc.cc:1262, sql/item.cc:6569
          Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837
          Error: Freeing overrun buffer  mysys/safemalloc.c:191, mysys/my_malloc.c:219, 0x55e5015aed7f, 0x55e5015aecee, 0x55e501934a92, 0x55e501935f88, sql/sql_string.h:317, sql/item_geofunc.h:329
          Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837
          

          10.1 valgrind 01209de7637a7206c18788e08919b5ccf0b3d700

          ==32512== Invalid write of size 4
          ==32512==    at 0x8ADC5F: String::q_append(unsigned int) (sql_string.h:500)
          ==32512==    by 0x9CFBB5: Gcalc_function::add_operation(unsigned int, unsigned int) (gcalc_tools.cc:50)
          ==32512==    by 0x8A8216: setup_relate_func(Geometry*, Geometry*, Gcalc_operation_transporter*, Gcalc_function*, char const*) (item_geofunc.cc:1197)
          ==32512==    by 0x8A85A8: Item_func_spatial_relate::val_int() (item_geofunc.cc:1256)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512==    by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
          ==32512==    by 0x5D8895: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1484)
          ==32512==    by 0x5D7632: do_command(THD*) (sql_parse.cc:1106)
          ==32512==  Address 0xddee1d8 is 0 bytes after a block of size 520 alloc'd
          ==32512==    at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
          ==32512==    by 0xED4FAB: my_malloc (my_malloc.c:101)
          ==32512==    by 0x68C2C8: String::realloc_raw(unsigned int) (sql_string.cc:100)
          ==32512==    by 0x518047: String::realloc(unsigned int) (sql_string.h:331)
          ==32512==    by 0x68D85A: String::reserve(unsigned int, unsigned int) (sql_string.cc:699)
          ==32512==    by 0x9CFD7B: Gcalc_function::reserve_op_buffer(unsigned int) (gcalc_tools.cc:113)
          ==32512==    by 0x8A83BD: Item_func_spatial_relate::val_int() (item_geofunc.cc:1245)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512== Conditional jump or move depends on uninitialised value(s)
          ==32512==    at 0x9CFE64: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:132)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
          ==32512==    by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
          ==32512==    by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512==    by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
          ==32512== Conditional jump or move depends on uninitialised value(s)
          ==32512==    at 0x9CFEB5: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:142)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
          ==32512==    by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
          ==32512==    by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512==    by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
          ==32512== Use of uninitialised value of size 8
          ==32512==    at 0x9CFED3: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
          ==32512==    by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
          ==32512==    by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512==    by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
          ==32512== Use of uninitialised value of size 8
          ==32512==    at 0x9CFEE7: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
          ==32512==    by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
          ==32512==    by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512==    by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
          ==32512== Conditional jump or move depends on uninitialised value(s)
          ==32512==    at 0x9D0179: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:224)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
          ==32512==    by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
          ==32512==    by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
          ==32512==    by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
          ==32512==    by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
          ==32512==    by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
          ==32512==    by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
          ==32512==    by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
          ==32512==    by 0x61E382: JOIN::exec() (sql_select.cc:2512)
          ==32512==    by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
          ==32512==    by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
          ==32512==    by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
          ==32512==    by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
          ==32512==    by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
          

          elenst Elena Stepanova added a comment - Since we don't know enough about the initial problem, let's at least fix the test case above in scope of this bug report, maybe by luck it will also fix the reported failure. SELECT ST_RELATE( ST_DIFFERENCE( GEOMETRYFROMTEXT( ' MULTILINESTRING( ( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ), ( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ), ( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ), ( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ), ( 35944 64702, 14433 23728, 49317 26241, 790 16941 ) ) ' ), GEOMETRYFROMTEXT( 'POINT(46061 13545)' ) ), GEOMETRYFROMTEXT( 'POINT(4599 60359)' ), 'F*FFFF**F' ); 10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700 mysqltest: At line 1: query 'SELECT ST_RELATE( ST_DIFFERENCE( GEOMETRYFROMTEXT(' MULTILINESTRING( ( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ), ( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ), ( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ), ( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ), ( 35944 64702, 14433 23728, 49317 26241, 790 16941 ) ) '), GEOMETRYFROMTEXT('POINT(46061 13545)') ), GEOMETRYFROMTEXT('POINT(4599 60359)'), 'F*FFFF**F' )' failed: 5: Out of memory (Needed 1024 bytes) 10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700 Error: Reallocating overrun buffer 0x55e501f16bbe, 0x55e501f04329, 0x55e50171e181, mysys/safemalloc.c:176, 0x55e50171f757, 0x55e501a4fdf2, 0x55e501a4fd68, 0x55e50192dfe8 Allocated at 0x55e50171e1c5, 0x55e5015aedd0, 0x55e50171f757, 0x55e501a4fdf2, 0x55e50192e130, 0x55e5018cf033, sql/sql_string.h:331, sql/sql_string.cc:699 Error: Reallocating overrun buffer mysys/safemalloc.c:176, mysys/my_malloc.c:165, sql/sql_string.cc:94, sql/sql_string.h:331, sql/sql_string.h:485, sql/gcalc_tools.cc:119, sql/item_geofunc.cc:1262, sql/item.cc:6569 Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837 Error: Freeing overrun buffer mysys/safemalloc.c:191, mysys/my_malloc.c:219, 0x55e5015aed7f, 0x55e5015aecee, 0x55e501934a92, 0x55e501935f88, sql/sql_string.h:317, sql/item_geofunc.h:329 Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837 10.1 valgrind 01209de7637a7206c18788e08919b5ccf0b3d700 ==32512== Invalid write of size 4 ==32512== at 0x8ADC5F: String::q_append(unsigned int) (sql_string.h:500) ==32512== by 0x9CFBB5: Gcalc_function::add_operation(unsigned int, unsigned int) (gcalc_tools.cc:50) ==32512== by 0x8A8216: setup_relate_func(Geometry*, Geometry*, Gcalc_operation_transporter*, Gcalc_function*, char const*) (item_geofunc.cc:1197) ==32512== by 0x8A85A8: Item_func_spatial_relate::val_int() (item_geofunc.cc:1256) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333) ==32512== by 0x5D8895: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1484) ==32512== by 0x5D7632: do_command(THD*) (sql_parse.cc:1106) ==32512== Address 0xddee1d8 is 0 bytes after a block of size 520 alloc'd ==32512== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299) ==32512== by 0xED4FAB: my_malloc (my_malloc.c:101) ==32512== by 0x68C2C8: String::realloc_raw(unsigned int) (sql_string.cc:100) ==32512== by 0x518047: String::realloc(unsigned int) (sql_string.h:331) ==32512== by 0x68D85A: String::reserve(unsigned int, unsigned int) (sql_string.cc:699) ==32512== by 0x9CFD7B: Gcalc_function::reserve_op_buffer(unsigned int) (gcalc_tools.cc:113) ==32512== by 0x8A83BD: Item_func_spatial_relate::val_int() (item_geofunc.cc:1245) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== Conditional jump or move depends on uninitialised value(s) ==32512== at 0x9CFE64: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:132) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124) ==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344) ==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333) ==32512== Conditional jump or move depends on uninitialised value(s) ==32512== at 0x9CFEB5: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:142) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124) ==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344) ==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333) ==32512== Use of uninitialised value of size 8 ==32512== at 0x9CFED3: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124) ==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344) ==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333) ==32512== Use of uninitialised value of size 8 ==32512== at 0x9CFEE7: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124) ==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344) ==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333) ==32512== Conditional jump or move depends on uninitialised value(s) ==32512== at 0x9D0179: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:224) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183) ==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124) ==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344) ==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263) ==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569) ==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914) ==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837) ==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591) ==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512) ==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449) ==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384) ==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912) ==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982) ==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)

          Issue with the ST_RELATE found by Elena is fixed now
          http://lists.askmonty.org/pipermail/commits/2017-October/011536.html

          Though the initial problem is not related to this. I'd really like to be able to reproduce it somehow.
          Is it possible to see the general log or install the audit plugin?

          holyfoot Alexey Botchkov added a comment - Issue with the ST_RELATE found by Elena is fixed now http://lists.askmonty.org/pipermail/commits/2017-October/011536.html Though the initial problem is not related to this. I'd really like to be able to reproduce it somehow. Is it possible to see the general log or install the audit plugin?
          elenst Elena Stepanova added a comment - - edited

          infodgit, have you experienced the reported problem on any recent releases?

          elenst Elena Stepanova added a comment - - edited infodgit , have you experienced the reported problem on any recent releases?
          infodgit dgit added a comment -

          Sorry for the delay.
          We patched with workaround validating the point before pass to geometry function.

          Thanks

          infodgit dgit added a comment - Sorry for the delay. We patched with workaround validating the point before pass to geometry function. Thanks

          dgit, i'm interested to take a look at the patch.
          Can you please send it?
          Or just explain a bit how it validates the point?

          holyfoot Alexey Botchkov added a comment - dgit, i'm interested to take a look at the patch. Can you please send it? Or just explain a bit how it validates the point?

          People

            holyfoot Alexey Botchkov
            infodgit dgit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.