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

free(): double free detected in tcache 2 in mysql_close

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 3.3, 3.4
    • None
    • Non blocking API
    • None
    • Debian 9

    Description

      Здравствуйте!

      При работе в многопоточной среде метод mysql_close() рандомно крашит процесс. Примерно, начиная с 15+ потоков, либо иногда может завершиться с той же ошибкой после 3+ тыс. циклов, с 1 запроса.

      Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
      Core was generated by `./hlds_linux -game cstrike -port 27017 +maxplayers 32 +map de_dust2 +log on -co'.
      Program terminated with signal SIGABRT, Aborted.
      #0  0xf7f4a069 in __kernel_vsyscall ()
      [Current thread is 1 (Thread 0xdf981b40 (LWP 172646))]
      #0  0xf7f4a069 in __kernel_vsyscall ()
      #1  0xf7d904f7 in ?? () from /lib/i386-linux-gnu/libc.so.6
      #2  0xf7d3f771 in raise () from /lib/i386-linux-gnu/libc.so.6
      #3  0xf7d272a5 in abort () from /lib/i386-linux-gnu/libc.so.6
      #4  0xf7d28358 in ?? () from /lib/i386-linux-gnu/libc.so.6
      #5  0xf7d9b94b in ?? () from /lib/i386-linux-gnu/libc.so.6
      #6  0xf7d9dc1a in ?? () from /lib/i386-linux-gnu/libc.so.6
      #7  0xf7da0002 in free () from /lib/i386-linux-gnu/libc.so.6
      #8  0xf0a462ab in list_free () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #9  0xf0a3f80f in ?? () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #10 0xf0a3f867 in ?? () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #11 0xf0a3f98f in mysql_close () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #12 0xf0a0e8d4 in ?? () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #13 0xf0a06b2d in ?? () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #14 0xf676fdfd in ?? () from /lib/i386-linux-gnu/libstdc++.so.6
      #15 0xf7d8e5cd in ?? () from /lib/i386-linux-gnu/libc.so.6
      #16 0xf7e297b6 in clone () from /lib/i386-linux-gnu/libc.so.6
      

      Или с такой ошибкой "malloc(): corrupted unsorted chunks 2":

      Program terminated with signal SIGABRT, Aborted.
      #0  0xf7f70069 in __kernel_vsyscall ()
      [Current thread is 1 (Thread 0xe8e92b40 (LWP 175666))]
      #0  0xf7f70069 in __kernel_vsyscall ()
      #1  0xf7db64f7 in ?? () from /lib/i386-linux-gnu/libc.so.6
      #2  0xf7d65771 in raise () from /lib/i386-linux-gnu/libc.so.6
      #3  0xf7d4d2a5 in abort () from /lib/i386-linux-gnu/libc.so.6
      #4  0xf7d4e358 in ?? () from /lib/i386-linux-gnu/libc.so.6
      #5  0xf7dc194b in ?? () from /lib/i386-linux-gnu/libc.so.6
      #6  0xf7dc515a in ?? () from /lib/i386-linux-gnu/libc.so.6
      #7  0xf7dc5a3e in malloc () from /lib/i386-linux-gnu/libc.so.6
      #8  0xf07be5d1 in my_context_init () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #9  0xf07a6db9 in mysql_optionsv () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #10 0xf07a8070 in mysql_options () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #11 0xf0775856 in ?? () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #12 0xf076fd7d in ?? () from cstrike/addons/amxmodx/modules/refsapi_amxx_i386.so
      #13 0xf6795dfd in ?? () from /lib/i386-linux-gnu/libstdc++.so.6
      #14 0xf7db45cd in ?? () from /lib/i386-linux-gnu/libc.so.6
      #15 0xf7e4f7b6 in clone () from /lib/i386-linux-gnu/libc.so.6
      No symbol table info available.
      

      Attachments

        Activity

          People

            georg Georg Richter
            Refresh Sergey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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