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

mysql_real_query crashes in revision 113

    XMLWordPrintable

Details

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

    Description

      1)Connect to a mysql server after setting following options
      mysql_options(mysql, MYSQL_OPT_RECONNECT,(const char *)"true");
      mysql_options(mysql, MYSQL_SET_CHARSET_NAME, "utf8");
      mysql_options(mysql, MYSQL_OPT_COMPRESS, 0);
      mysql_options(mysql, MYSQL_INIT_COMMAND, "/*!40101 SET SQL_MODE='' */");
      mysql_options(mysql, MYSQL_INIT_COMMAND, "/*!40101 set @@session.wait_timeout=28800 */");
      2) after successful connection stop the server
      3) execute mysql_real_query.

      Here is a sample stack trace :

      _heap_alloc_base(unsigned int size) Line 55 C
      _heap_alloc_dbg_impl(unsigned int nSize, int nBlockUse, const char * szFileName, int nLine, int * errno_tmp) Line 431 + 0x9 bytes C++
      _nh_malloc_dbg_impl(unsigned int nSize, int nhFlag, int nBlockUse, const char * szFileName, int nLine, int * errno_tmp) Line 239 + 0x19 bytes C++
      _nh_malloc_dbg(unsigned int nSize, int nhFlag, int nBlockUse, const char * szFileName, int nLine) Line 302 + 0x1d bytes C++
      malloc(unsigned int nSize) Line 56 + 0x15 bytes C++
      my_malloc(unsigned int Size, int MyFlags) Line 36 + 0x9 bytes C
      alloc_root(st_mem_root * mem_root, unsigned int Size) Line 81 + 0xb bytes C
      mthd_my_read_rows(st_mysql * mysql, st_mysql_field * mysql_fields, unsigned int fields) Line 1195 + 0x31 bytes C
      mthd_my_read_query_result(st_mysql * mysql) Line 2274 + 0x18 bytes C
      mysql_real_query(st_mysql * mysql, const char * query, unsigned long length) Line 2303 + 0x25 bytes C

      Attachments

        Activity

          People

            georg Georg Richter
            Sudhindra Bhat Sudhindra Bhat
            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.