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

LP:892014 - Assertion `de_check(gcalc_get_double(a, len), gcalc_get_double(b, len)) || gcalc_get_double(a, len) < gcalc_get_double(b, len)' failed in gcalc_slicescan.cc:556 in 5.3-main

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      mysqld: gcalc_slicescan.cc:556: int gcalc_cmp_coord(const Gcalc_internal_coord*, const Gcalc_internal_coord*, int): Assertion `de_check(gcalc_get_double(a, len), gcalc_get_double(b, len)) || gcalc_get_double(a, len) < gcalc_get_double(b, len)' failed.

      1. 2011-11-18T13:49:37 #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
      2. 2011-11-18T13:49:37 #9 0x0836b52e in gcalc_cmp_coord (a=0x915cd9c8, b=0x915cd9a0, len=10) at gcalc_slicescan.cc:554
      3. 2011-11-18T13:49:37 #10 0x0836bf66 in cmp_intersections (i1=0xa75d3930, i2=0xa75d39a0) at gcalc_slicescan.cc:733
      4. 2011-11-18T13:49:37 #11 0x0836f18b in Gcalc_scan_iterator::add_intersection (this=0xa758ab38, sp_a=0xa75a7ed0, sp_b=0xa75a8008, pi_from=0xa75d3460) at gcalc_slicescan.cc:1797
      5. 2011-11-18T13:49:37 #12 0x0836e853 in Gcalc_scan_iterator::add_events_for_node (this=0xa758ab38, sp_node=0xa75a8008) at gcalc_slicescan.cc:1627
      6. 2011-11-18T13:49:37 #13 0x0836ede3 in Gcalc_scan_iterator::node_scan (this=0xa758ab38) at gcalc_slicescan.cc:1713
      7. 2011-11-18T13:49:37 #14 0x0836d829 in Gcalc_scan_iterator::step (this=0xa758ab38) at gcalc_slicescan.cc:1307
      8. 2011-11-18T13:49:37 #15 0x0837026d in Gcalc_function::check_function (this=0xa758ab78, scan_it=...) at gcalc_tools.cc:271
      9. 2011-11-18T13:49:37 #16 0x0825f4f3 in Item_func_spatial_rel::val_int (this=0xa758aa10) at item_geofunc.cc:911
      10. 2011-11-18T13:49:37 #17 0x081de954 in Item::send (this=0xa758aa10, protocol=0xbd7bbfc, buffer=0x915ce050) at item.cc:5967
      11. 2011-11-18T13:49:37 #18 0x0828cb90 in select_send::send_data (this=0xa758ad58, items=...) at sql_class.cc:1976
      12. 2011-11-18T13:49:37 #19 0x0832b51e in JOIN::exec (this=0x91418290) at sql_select.cc:2088
      13. 2011-11-18T13:49:37 #20 0x0832dee4 in mysql_select (thd=0xbd7b8d0, rref_pointer_array=0xbd7d44c, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
      14. 2011-11-18T13:49:37 having=0x0, proc_param=0x0, select_options=2147764736, result=0xa758ad58, unit=0xbd7d030, select_lex=0xbd7d310) at sql_select.cc:2906
      15. 2011-11-18T13:49:37 #21 0x08325cfb in handle_select (thd=0xbd7b8d0, lex=0xbd7cfd4, result=0xa758ad58, setup_tables_done_option=0) at sql_select.cc:283
      16. 2011-11-18T13:49:37 #22 0x082c0418 in execute_sqlcom_select (thd=0xbd7b8d0, all_tables=0x0) at sql_parse.cc:5112
      17. 2011-11-18T13:49:37 #23 0x082b71d5 in mysql_execute_command (thd=0xbd7b8d0) at sql_parse.cc:2250
      18. 2011-11-18T13:49:37 #24 0x082c2a59 in mysql_parse (thd=0xbd7b8d0,
      19. 2011-11-18T13:49:37 rawbuf=0xa7589e60 "SELECT ST_WITHIN( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 9 1 , 0 9 , 8 5 , 4 4 ) , ( 6 7 , 5 3 , 6 4 , 7 8 , 5 9 ) ) ') , MULTIPOLYGONFROMTEXT(' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (0 5, 3 5, 3 4, 2 0 , 1 0, 2 4 , 0 4, 0 5) ) , ( ( 0 0 , 9 9 , 4 1 , 0 0 ) ) ) ') )",
      20. 2011-11-18T13:49:37 length=279, found_semicolon=0x915cf228) at sql_parse.cc:6113
      21. 2011-11-18T13:49:37 #25 0x082b4e24 in dispatch_command (command=COM_QUERY, thd=0xbd7b8d0, packet=0xbd7de81 "", packet_length=279) at sql_parse.cc:1221
      22. 2011-11-18T13:49:37 #26 0x082b427f in do_command (thd=0xbd7b8d0) at sql_parse.cc:916
      23. 2011-11-18T13:49:37 #27 0x082b1263 in handle_one_connection (arg=0xbd7b8d0) at sql_connect.cc:1191
      24. 2011-11-18T13:49:37 #28 0x00821919 in start_thread () from /lib/libpthread.so.0
      25. 2011-11-18T13:49:37 #29 0x0076acce in clone () from /lib/libc.so.6
      26. 2011-11-18T13:49:37 #5 0x00339424 in __kernel_vsyscall ()

      test case:

      SELECT ST_WITHIN(
      MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 9 1 , 0 9 , 8 5 , 4 4 ) , ( 6 7 , 5 3 , 6 4 , 7 8 , 5 9 ) ) ') ,
      MULTIPOLYGONFROMTEXT(' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (0 5, 3 5, 3 4, 2 0 , 1 0, 2 4 , 0 4, 0 5) ) , ( ( 0 0 , 9 9 , 4 1 , 0 0 ) ) ) ') );

      bzr version-info:

      revision-id: <email address hidden>
      date: 2011-11-17 08:00:22 -0800
      build-date: 2011-11-18 13:51:16 +0200
      revno: 3291
      branch-nick: maria-5.3

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 892014

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 892014

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: