[MDEV-24084] ASAN: thread_pool_server_audit reports heap-use-after-free. Created: 2020-11-01  Updated: 2020-11-24  Resolved: 2020-11-24

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.3, 10.4
Fix Version/s: 10.3.28, 10.4.18

Type: Bug Priority: Major
Reporter: Alexey Botchkov Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

Marko came upon this:
built as
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_ASAN=ON) and then run ASAN_OPTIONS=abort_on_error=1:disable_coredump=0 ./mtr --parallel=auto --repeat=100 plugins.thread_pool_server_audit

reports:

plugins.thread_pool_server_audit w2 [ pass ] 18147
worker[2] > Restart [mysqld.1 - pid: 181054, winpid: 181054] - running with different options '-thread_stack=655360' != '-thread_handling=pool-of-threads'
***Warnings generated in error logs during shutdown after running tests: plugins.thread_pool_server_audit
==181055==ERROR: AddressSanitizer: heap-use-after-free on address 0x608000000fbc at pc 0x56171b923903 bp 0x7ffe76c68d50 sp 0x7ffe76c68d40
SUMMARY: AddressSanitizer: heap-use-after-free /home/buildbot/buildbot/build/mariadb-10.4.16/sql/threadpool_common.cc:534 in tp_post_kill_notification



 Comments   
Comment by Alexey Botchkov [ 2020-11-01 ]

Couldn't reproduce it on the equipment i tried.

Generated at Thu Feb 08 09:27:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.