[MDEV-22671] ASAN: RockDB doesn't free ThreadLocalPtr::StaticMeta instance Created: 2020-05-22 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.10, 10.11, 11.0, 11.1, 11.2 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
ThreadLocalPtr::StaticMeta instance is a singleton. [1] static variable rocksdb_db_options initialized by calling rdb_init_rocksdb_db_options() that calls DBOptions::DBOptions(), Env::Default(), ThreadLocalPtr::InitSingletons(), ThreadLocalPtr::Instance(). Explicit delete seems to help:
|
| Comments |
| Comment by Elena Stepanova [ 2023-10-11 ] | |||||||||||||||
|
It also makes RocksDB destructive for MSAN builds – not only tests cannot be run with RocksDB, but the presence of the library itself is dangerous as for example queries from I_S.ALL_PLUGINS fail with
|