[CONC-254] memory corruption mysql_real_connect_start Created: 2017-05-19  Updated: 2017-07-05  Resolved: 2017-07-05

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

Type: Bug Priority: Critical
Reporter: Marc Pawlowsky Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

centos 7


Attachments: File bug.tar.gz    

 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



 Comments   
Comment by Marc Pawlowsky [ 2017-05-19 ]

Looks similar to MDEV-9112

Comment by Marc Pawlowsky [ 2017-05-19 ]

Looks like it is fixed in 3.01-beta

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