Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
13.0
-
None
-
None
Description
Memleak is found with mtr non-standard options (see --mysqld=--thread_handling=pool-of-threads to main.pool_of_threads) to embedded server (sha1 bd06d0de6c4 )
built as
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ -DPLUGIN_TOKUDB=NO -DPLUGIN_MROONGA=NO -DPLUGIN_SPIDER=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_PERFSCHEMA=YES -DPLUGIN_SPHINX=NO -DWITH_EMBEDDED_SERVER:BOOL=ON -DWITH_DBUG_TRACE=OFF
|
To easy further analysis note the mtr test run can be rr-ecorded.
EMB/mysql-test$ ./mtr --force --max-test-fail=0 --retry-failure=0 --vardir=rr-main.pool_of_threads --testcase-timeout=9999 --mysqld=--binlog-format=mixed --embedded --ps-protocol --rr main.pool_of_threads --mysqld=--thread_handling=pool-of-threads
|
Logging: /home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/mariadb-test-run.pl --force --max-test-fail=0 --retry-failure=0 --vardir=rr-main.pool_of_threads --testcase-timeout=9999 --mysqld=--binlog-format=mixed --embedded --ps-protocol --rr main.pool_of_threads --mysqld=--thread_handling=pool-of-threads
|
VS config:
|
Using binlog format 'mixed'
|
vardir: /home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/rr-main.pool_of_threads
|
Checking leftover processes...
|
Removing old var directory...
|
Creating var directory '/home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/rr-main.pool_of_threads'...
|
Checking supported features...
|
MariaDB Version 13.0.0-MariaDB-debug
|
- skipping SSL
|
- binaries are debug compiled
|
Collecting tests...
|
Installing system database...
|
==============================================================================
|
|
|
TEST RESULT TIME (ms) or COMMENT
|
--------------------------------------------------------------------------
|
|
|
worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029
|
rr: Saving execution to trace directory `/home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/rr-main.pool_of_threads/log/client.rr/mariadb-test-embedded-0'.
|
main.pool_of_threads [ fail ]
|
Test ended at 2026-02-26 16:36:32
|
|
|
CURRENT_TEST: main.pool_of_threads
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown option '--loose-disable-ssl-verify-server-cert'
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown variable 'loose-ssl-ca=/home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/std_data/cacert.pem'
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown variable 'loose-ssl-cert=/home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/std_data/client-cert.pem'
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown variable 'loose-ssl-key=/home/andrei/MDB/WTs/CS/13/sandbox/mysql-test/std_data/client-key.pem'
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown option '--loose-skip-ssl'
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown option '--loose-debug-gdb'
|
Warning: /home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: unknown option '--loose-skip-stack-trace'
|
Got ERROR: "/home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: Error while setting value 'pool-of-threads' to 'thread_handling'" errno: 2000
|
Got ERROR: "/home/andrei/MDB/WTs/CS/13/sandbox/EMB/libmysqld/examples/mariadb-test-embedded: Error while setting value 'pool-of-threads' to 'thread_handling'" errno: 2000
|
Memory report from safemalloc
|
Warning: 120 bytes lost at 0x5f38e59272d0, allocated by T@0 at mysys/my_malloc.c:240, mysys/my_getopt.c:842, mysys/my_getopt.c:688, sql/mysqld.cc:9055, sql/mysqld.cc:4121, libmysqld/lib_sql.cc:591, libmysqld/libmysql.c:184, client/mysqltest.cc:13125
|
Warning: 120 bytes lost at 0x5f38e59271d0, allocated by T@0 at mysys/my_malloc.c:240, mysys/my_getopt.c:842, mysys/my_getopt.c:688, sql/mysqld.cc:9055, sql/mysqld.cc:4121, libmysqld/lib_sql.cc:591, libmysqld/libmysql.c:184, client/mysqltest.cc:13125
|
Warning: 96 bytes lost at 0x5f38e5927040, allocated by T@0 at mysys/my_malloc.c:240, mysys/my_getopt.c:842, mysys/my_getopt.c:688, sql/mysqld.cc:9055, sql/mysqld.cc:4121, libmysqld/lib_sql.cc:591, libmysqld/libmysql.c:184, client/mysqltest.cc:13125
|
Warning: 52328 bytes lost at 0x5f38e591a350, allocated by T@0 at mysys/array.c:73, sql/mysqld.cc:9045, sql/mysqld.cc:4121, libmysqld/lib_sql.cc:591, libmysqld/libmysql.c:184, client/mysqltest.cc:13125, x86/libc-start.c:74, csu/libc-start.c:128
|
Warning: 6024 bytes lost at 0x5f38e5918b40, allocated by T@0 at mysys/array.c:73, sql/sql_show.cc:3657, sql/mysqld.cc:4089, libmysqld/lib_sql.cc:591, libmysqld/libmysql.c:184, client/mysqltest.cc:13125, x86/libc-start.c:74, csu/libc-start.c:128
|
|
|
...
|
Warning: 2072 bytes lost at 0x5f38e58ed3d0, allocated by T@0 at 0x5f38b47e37e3, mysys/array.c:73, client/mysqltest.cc:13057, x86/libc-start.c:74, csu/libc-start.c:128, 0x5f38b4650965
|
Warning: 8216 bytes lost at 0x5f38e58eb330, allocated by T@0 at 0x5f38b47e37e3, client/mysqltest.cc:13055, x86/libc-start.c:74, csu/libc-start.c:128, 0x5f38b4650965
|
Warning: 2072 bytes lost at 0x5f38e58eaa40, allocated by T@0 at 0x5f38b47e37e3, mysys/hash.c:99, mysys/thr_mutex.c:171, mysys/thr_mutex.c:312, mysys/my_thr_init.c:754, mysys/my_thr_init.c:285, mysys/my_thr_init.c:166, mysys/my_init.c:179
|
Warning: 2072 bytes lost at 0x5f38e58ea1a0, allocated by T@0 at mysys/array.c:73, mysys/hash.c:99, mysys/thr_mutex.c:168, mysys/thr_mutex.c:312, mysys/my_thr_init.c:754, mysys/my_thr_init.c:285, mysys/my_thr_init.c:166, mysys/my_init.c:179
|
Warning: 296 bytes lost at 0x5f38e58e9670, allocated by T@0 at mysys/mulalloc.c:59, mysys/thr_mutex.c:155, mysys/thr_mutex.c:312, mysys/my_thr_init.c:754, mysys/my_thr_init.c:285, mysys/my_thr_init.c:166, mysys/my_init.c:179, client/mysqltest.cc:13027
|
Memory lost: 213432 bytes in 91 chunks of 91 total chunks
|
|
|
|
|
mysqltest failed with unexpected return code 13
|
|