Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-565

unit.conc_misc fails with LeakSanitizer errors in mysql_store_result

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.2.4
    • None
    • None

    Description

      10.6 fa45400d7

      perl  ./mtr unit.conc_misc
      ...
      unit.conc_misc                           [ fail ]
      ...
      ==3087871==ERROR: LeakSanitizer: detected memory leaks
       
      Direct leak of 144 byte(s) in 1 object(s) allocated from:
          #0 0x7f2c88ae9dc6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10ddc6)
          #1 0x555a427d2053 in mysql_store_result /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:2516
          #2 0x555a427baaea in test_conc49 /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:847
          #3 0x555a427b5463 in run_tests /data/src/10.6-bug/libmariadb/unittest/libmariadb/my_test.h:678
          #4 0x555a427bf3a7 in main /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:1663
          #5 0x7f2c883120b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
       
      Indirect leak of 8168 byte(s) in 1 object(s) allocated from:
          #0 0x7f2c88ae9bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
          #1 0x555a427e5d2a in ma_alloc_root /data/src/10.6-bug/libmariadb/libmariadb/ma_alloc.c:90
          #2 0x555a427c3d5f in unpack_fields /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:869
          #3 0x555a427d1385 in mthd_my_read_query_result /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:2429
          #4 0x555a427d1da1 in mysql_real_query /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:2494
          #5 0x555a427ce8c0 in mysql_query /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:2136
          #6 0x555a427baa89 in test_conc49 /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:845
          #7 0x555a427b5463 in run_tests /data/src/10.6-bug/libmariadb/unittest/libmariadb/my_test.h:678
          #8 0x555a427bf3a7 in main /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:1663
          #9 0x7f2c883120b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
       
      Indirect leak of 8168 byte(s) in 1 object(s) allocated from:
          #0 0x7f2c88ae9bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
          #1 0x555a427e5d2a in ma_alloc_root /data/src/10.6-bug/libmariadb/libmariadb/ma_alloc.c:90
          #2 0x555a427c4dd2 in mthd_my_read_rows /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:973
          #3 0x555a427d2323 in mysql_store_result /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:2524
          #4 0x555a427baaea in test_conc49 /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:847
          #5 0x555a427b5463 in run_tests /data/src/10.6-bug/libmariadb/unittest/libmariadb/my_test.h:678
          #6 0x555a427bf3a7 in main /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:1663
          #7 0x7f2c883120b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
       
      Indirect leak of 96 byte(s) in 1 object(s) allocated from:
          #0 0x7f2c88ae9dc6 in calloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10ddc6)
          #1 0x555a427c4af9 in mthd_my_read_rows /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:959
          #2 0x555a427d2323 in mysql_store_result /data/src/10.6-bug/libmariadb/libmariadb/mariadb_lib.c:2524
          #3 0x555a427baaea in test_conc49 /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:847
          #4 0x555a427b5463 in run_tests /data/src/10.6-bug/libmariadb/unittest/libmariadb/my_test.h:678
          #5 0x555a427bf3a7 in main /data/src/10.6-bug/libmariadb/unittest/libmariadb/misc.c:1663
          #6 0x7f2c883120b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
       
      SUMMARY: AddressSanitizer: 16576 byte(s) leaked in 4 allocation(s).
      Bail out! Signal 6 thrown
      

      Attachments

        Activity

          People

            georg Georg Richter
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.