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

Program crashes with MariaDB C Client library revision 67

    XMLWordPrintable

Details

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

    Description

      My program crashes with MariaDB C client revision 67 in release mode. It was working fine with revision 64.
      It is crashing in Windows API. There is some sort of memory corruption that leads the program to crash.

      Can you please check the following code in my_thread_init function(my_thr_init.c).

      146 tmp= &THR_KEY_mysys;
      147 if (tmp->initialized) /* Already initialized */
      148

      { 149 #if !defined(_WIN32) || defined(USE_TLS) || ! defined(SAFE_MUTEX) 150 pthread_mutex_unlock(&THR_LOCK_lock); 151 #endif 152 return 0; 153 }

      154 tmp= &THR_KEY_mysys;

      And also, I am getting warnings when compiling MariaDB C Client revision 67
      my_thr_init.c(146): warning C4133: '=' : incompatible types - from 'DWORD *' to 'st_my_thread_var *'
      my_thr_init.c(154): warning C4133: '=' : incompatible types - from 'DWORD *' to 'st_my_thread_var *'
      my_thr_init.c(156): warning C4789: destination of memory copy is too small
      my_thr_init.c(162): warning C4789: destination of memory copy is too small

      Attachments

        Activity

          People

            georg Georg Richter
            sandhyasriraj Sandhya Sriraj
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.