[MDEV-6315] TokuDB: ERROR: AddressSanitizer: attempting to call malloc_usable_size() for pointer which is not owned: 0x601200008f80 Created: 2014-06-06  Updated: 2017-01-05  Resolved: 2017-01-05

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - TokuDB
Affects Version/s: 10.0.11
Fix Version/s: 10.0.28

Type: Bug Priority: Major
Reporter: Sergey Vojtovich Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: tokudb

Issue Links:
Relates
relates to MDEV-6314 Compile/run MariaDB with ASan Closed

 Description   

Compile with ASan:
cmake -DWITH_ASAN=ON -DMYSQL_MAINTAINER_MODE=ON

Run tests in all TokuDB suites. Many (if not all) tests report $subj:

==30066== ERROR: AddressSanitizer: attempting to call malloc_usable_size() for pointer which is not owned: 0x601200008f80
==30066== AddressSanitizer CHECK failed: ../../../../src/libsanitizer/asan/asan_allocator2.cc:216 "((id)) != (0)" (0x0, 0x0)

5.5 is most probably affected as well.



 Comments   
Comment by Sergei Golubchik [ 2017-01-05 ]

I cannot repeat it now. I suspect it was due to a bug when tokudb allocated memory with one allocator and freed with a different one. It was fixed eventually and we've merged the fix few releases ago.

Generated at Thu Feb 08 07:10:57 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.