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

mariadb_reconnect causes segfault

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Labels:
      None
    • Environment:
      Gentoo Linux; MariaDB 10.2.9

      Description

      This bug is easily demonstrated by running the Perl DBD-mysql tests.

      Backtrace:

      #0  0x0000110600000001 in ?? ()
      #1  0x00007ffff5a41779 in mariadb_reconnect (mysql=0x5555560b2a40)
          at /var/tmp/portage/dev-db/mariadb-10.2.9/work/mysql/libmariadb/libmariadb/mariadb_lib.c:1593
      #2  0x00007ffff5a41d9a in mthd_my_send_cmd (mysql=0x5555560b2a40, command=COM_STMT_PREPARE, arg=0x55555577c3c0 "SELECT 1", length=8,
          skipp_check=<optimized out>, opt_arg=0x5555560b7e50) at /var/tmp/portage/dev-db/mariadb-10.2.9/work/mysql/libmariadb/libmariadb/mariadb_lib.c:365
      #3  0x00007ffff5a49c91 in mysql_stmt_prepare (stmt=stmt@entry=0x5555560b7e50, query=query@entry=0x55555577c3c0 "SELECT 1", length=8)
          at /var/tmp/portage/dev-db/mariadb-10.2.9/work/mysql/libmariadb/libmariadb/mariadb_stmt.c:1571
      #4  0x00007ffff5c7e9d4 in XS_DBD__mysql__db_do (cv=<optimized out>) at mysql.xs:342
      #5  0x00007ffff5e9f93c in XS_DBI_dispatch () from /usr/lib64/perl5/vendor_perl/5.26.1/x86_64-linux/auto/DBI/DBI.so
      #6  0x00007ffff7ac2153 in Perl_pp_entersub () from /usr/lib64/libperl.so.5.26
      #7  0x00007ffff7ab9c83 in Perl_runops_standard () from /usr/lib64/libperl.so.5.26
      #8  0x00007ffff7a44be3 in perl_run () from /usr/lib64/libperl.so.5.26
      #9  0x0000555555554e0b in main ()
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            grknight Brian Evans
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: