[CONC-34] Program crashes with MariaDB C Client library revision 67 Created: 2013-06-19  Updated: 2013-07-01  Resolved: 2013-07-01

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sandhya Sriraj Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Sandhya Sriraj [ 2013-07-01 ]

It is working fine with revision 68.

Comment by Georg Richter [ 2013-07-01 ]

fixed in rev. 68

Generated at Thu Feb 08 03:02:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.