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

memory corruption mysql_real_connect_start

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 2.3.2
    • 3.0.1
    • None
    • None
    • centos 7

    Description

      Program may crash after call to mysql_real_connect_start. Valgrind reports 27 errors
      ==7== Warning: client switching stacks? SP change: 0xfff000670 --> 0x7ad50e0
      ==7== to suppress, use: --max-stackframe=68573902224 or greater
      ==7== Invalid write of size 8
      ==7== at 0x4C28CDD: free (vg_replace_malloc.c:530)
      ==7== by 0x404E15: mysql_close_options (libmariadb.c:2317)
      ==7== by 0x408BBE: mthd_my_real_connect (libmariadb.c:2105)
      ==7== by 0x40BA1F: mysql_real_connect_start_internal (mysql_async.c:441)
      ==7== by 0x40AE10: my_context_spawn (my_context.c:205)
      ==7== Address 0x7ad4b68 is 60,024 bytes inside a block of size 61,440 free'd
      ==7== at 0x4C28CDD: free (vg_replace_malloc.c:530)
      ==7== by 0x404E15: mysql_close_options (libmariadb.c:2317)
      ==7== by 0x408BBE: mthd_my_real_connect (libmariadb.c:2105)
      ==7== by 0x40BA1F: mysql_real_connect_start_internal (mysql_async.c:441)
      ==7== by 0x40AE10: my_context_spawn (my_context.c:205)
      ...

      to reproduce the problem, in Linux, extract the attachment to an empty directory, and execute docker build . |& tee out.txt

      Attachments

        Activity

          People

            georg Georg Richter
            marcpawl Marc Pawlowsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.