Details
-
Bug
-
Status: Approved (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11
-
quay.io/mariadb-foundation/bb-worker:dev_debian13-msan-clang-22
Description
|
connect.odbc_sqlite3 |
CURRENT_TEST: connect.odbc_sqlite3
|
$ env _RR_TRACE_DIR=/build/mysql-test/var/log/mysqld.1.rr rr record --chaos /build/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/build/mysql-test/var/my.cnf --log-output=file --plugin-load-add=ha_connect.so --plugin-connect=ON --core-file --loose-debug-sync-timeout=300 --loose-debug-gdb --loose-skip-stack-trace --loose-skip-innodb-use-native-aio --loose-innodb-flush-method=fsync
|
2026-07-23 4:01:43 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32188)
|
2026-07-23 4:01:43 0 [Warning] Changed limits: max_open_files: 1024 max_connections: 151 (was 151) table_cache: 421 (was 2000)
|
2026-07-23 4:01:43 0 [Note] Starting MariaDB 10.11.19-MariaDB-asan-debug-log source revision server_uid 3NovTSA6sw5uP6gCMhuzdoMAiUc= as process 27131
|
2026-07-23 4:01:44 0 [Note] CONNECT: Version 1.07.0002 March 22, 2021
|
2026-07-23 4:01:44 0 [Note] Plugin 'SEQUENCE' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'InnoDB' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'partition' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_CMP' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'THREAD_POOL_WAITS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'THREAD_POOL_QUEUES' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'FEEDBACK' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'THREAD_POOL_GROUPS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'user_variables' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'THREAD_POOL_STATS' is disabled.
|
2026-07-23 4:01:44 0 [Note] Plugin 'unix_socket' is disabled.
|
2026-07-23 4:01:44 0 [Warning] /build/sql/mariadbd: unknown option '--loose-pam-debug'
|
2026-07-23 4:01:44 0 [Warning] /build/sql/mariadbd: unknown option '--loose-aria'
|
2026-07-23 4:01:44 0 [Note] Server socket created on IP: '127.0.0.1', port: '19000'.
|
2026-07-23 4:01:44 0 [Note] /build/sql/mariadbd: ready for connections.
|
Version: '10.11.19-MariaDB-asan-debug-log' socket: '/build/mysql-test/var/tmp/mysqld.1.sock' port: 19000 Source distribution
|
2026-07-23 4:01:55 0 [Note] /build/sql/mariadbd (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
|
2026-07-23 4:01:55 0 [Note] Debug sync points hit: 2694
|
2026-07-23 4:01:55 0 [Note] Debug sync points executed: 0
|
2026-07-23 4:01:55 0 [Note] Debug sync points max active per thread: 0
|
2026-07-23 4:01:55 0 [Note] /build/sql/mariadbd: Shutdown complete
|
|
|
=================================================================
|
==27131==ERROR: LeakSanitizer: detected memory leaks
|
|
|
Direct leak of 135 byte(s) in 3 object(s) allocated from:
|
#0 0x5639515137f8 in malloc (/build/sql/mariadbd+0x362f7f8) (BuildId: 415cd405b56b3b3cff52a11b51d1468b410d4e77)
|
#1 0x4bffff48afcc (<unknown module>)
|
|
|
Objects leaked above:
|
0x4c1ffffe9e50 (16 bytes)
|
0x4c300007b590 (31 bytes)
|
0x4c7fffff87a0 (88 bytes)
|
|
|
Direct leak of 16 byte(s) in 1 object(s) allocated from:
|
#0 0x5639515137f8 in malloc (/build/sql/mariadbd+0x362f7f8) (BuildId: 415cd405b56b3b3cff52a11b51d1468b410d4e77)
|
#1 0x4bffff48e4f1 (<unknown module>)
|
|
|
Objects leaked above:
|
0x4c1ffffe9f10 (16 bytes)
|
|
|
Indirect leak of 312 byte(s) in 7 object(s) allocated from:
|
#0 0x5639515137f8 in malloc (/build/sql/mariadbd+0x362f7f8) (BuildId: 415cd405b56b3b3cff52a11b51d1468b410d4e77)
|
#1 0x4bffff48afcc (<unknown module>)
|
|
|
Objects leaked above:
|
0x4c1ffffe9eb0 (7 bytes)
|
0x4c1ffffe9ef0 (9 bytes)
|
0x4c1ffffe9f30 (15 bytes)
|
0x4c600002c4c0 (49 bytes)
|
0x4c6ffffee330 (72 bytes)
|
0x4c6ffffee3a0 (72 bytes)
|
0x4c7fffff86a0 (88 bytes)
|
|
|
Indirect leak of 16 byte(s) in 1 object(s) allocated from:
|
#0 0x5639515137f8 in malloc (/build/sql/mariadbd+0x362f7f8) (BuildId: 415cd405b56b3b3cff52a11b51d1468b410d4e77)
|
#1 0x4bffff48e4f1 (<unknown module>)
|
|
|
Objects leaked above:
|
0x4c1ffffe9e30 (16 bytes)
|
|
|
SUMMARY: AddressSanitizer: 479 byte(s) leaked in 12 allocation(s).
|
buildbot@d630593953c4:/build$ rr replay mysql-test/var/log/mysqld.1.rr/mariadbd-3/
|
|
unknown modules is libltdl |
(rr) disassemble 0x4bffff48afcc
|
Dump of assembler code for function lt__malloc:
|
0x00004bffff48afc0 <+0>: endbr64
|
0x00004bffff48afc4 <+4>: sub $0x18,%rsp
|
0x00004bffff48afc8 <+8>: call 0x4bffff48a2c0 <malloc@plt>
|
0x00004bffff48afcd <+13>: test %rax,%rax
|
0x00004bffff48afd0 <+16>: je 0x4bffff48afd7 <lt__malloc+23>
|
0x00004bffff48afd2 <+18>: add $0x18,%rsp
|
0x00004bffff48afd6 <+22>: ret
|
0x00004bffff48afd7 <+23>: mov 0x6fca(%rip),%rdx # 0x4bffff491fa8
|
0x00004bffff48afde <+30>: mov %rax,0x8(%rsp)
|
0x00004bffff48afe3 <+35>: call *(%rdx)
|
0x00004bffff48afe5 <+37>: mov 0x8(%rsp),%rax
|
0x00004bffff48afea <+42>: jmp 0x4bffff48afd2 <lt__malloc+18>
|
End of assembler dump.
|
(rr) bt
|
#0 0x00004bffff48c417 in lt_dlinit () from /lib/x86_64-linux-gnu/libltdl.so.7
|
#1 0x000038643481e245 in ?? () from /lib/x86_64-linux-gnu/libodbc.so.2
|
#2 0x000038643482507f in SQLDriverConnect () from /lib/x86_64-linux-gnu/libodbc.so.2
|
#3 0x0000100080f7f95d in ODBConn::DriverConnect (this=0x49ad52cb18a0, Options=10) at /source/storage/connect/odbconn.cpp:1307
|
#4 0x0000100080f72548 in ODBConn::Open (this=0x49ad52cb18a0,
|
ConnectString=0x49ad52cb1810 "Driver=SQLite3;Database=/source/storage/connect/mysql-test/connect/std_data/test.sqlite3;NoWCHAR=yes", sop=0x49ad52cb1878, options=10)
|
at /source/storage/connect/odbconn.cpp:1161
|
#5 0x0000100080f77432 in ODBCSrcCols (g=0x4e500022b900,
|
dsn=0x49ad52cb1810 "Driver=SQLite3;Database=/source/storage/connect/mysql-test/connect/std_data/test.sqlite3;NoWCHAR=yes",
|
src=0x4e5000229220 "SELECT %s, %d FROM t1", sop=0x49ad52cb1878) at /source/storage/connect/odbconn.cpp:437
|
#6 0x0000100080b3ff15 in connect_assisted_discovery (thd=0x4ec000090218, table_s=0x54000337d830, create_info=0x5400031b88b0)
|
at /source/storage/connect/ha_connect.cc:6034
|
#7 0x000056395214961f in create_table_impl (thd=0x4ec000090218, ddl_log_state_create=0x540003051c20, ddl_log_state_rm=0x540003051c60, orig_db=...,
|
orig_table_name=..., db=..., table_name=..., path=..., options=..., create_info=0x5400031b88b0, alter_info=0x5400031b8bb0, create_table_mode=-1,
|
is_trans=0x540003051ca0, key_info=0x5400030e1020, key_count=0x5400030e1040, frm=0x5400030e1300) at /source/sql/sql_table.cc:4802
|
#8 0x0000563952145e20 in mysql_create_table_no_lock (thd=0x4ec000090218, ddl_log_state_create=0x540003051c20, ddl_log_state_rm=0x540003051c60,
|
create_info=0x5400031b88b0, alter_info=0x5400031b8bb0, is_trans=0x540003051ca0, create_table_mode=-1, table_list=0x4ed00004e6f8) at /source/sql/sql_table.cc:4955
|
#9 0x00005639521c1943 in mysql_create_table (thd=0x4ec000090218, create_table=0x4ed00004e6f8, create_info=0x5400031b88b0, alter_info=0x5400031b8bb0)
|
at /source/sql/sql_table.cc:5202
|
#10 0x00005639521bacd3 in Sql_cmd_create_table_like::execute (this=0x4ed00004e660, thd=0x4ec000090218) at /source/sql/sql_table.cc:13217
|
#11 0x0000563951c62fcc in mysql_execute_command (thd=0x4ec000090218, is_called_from_prepared_stmt=false) at /source/sql/sql_parse.cc:6199
|
#12 0x0000563951c20379 in mysql_parse (thd=0x4ec000090218,
|
rawbuf=0x4ed00004e438 "CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC SRCDEF='SELECT %s, %d FROM t1' CONNECTION='Driver=SQLite3;Database=/source/storage/connect/mysql-test/connect/std_data/test.sqlite3;NoWCHAR=yes' CHARSET="..., length=222, parser_state=0x5400034507f0) at /source/sql/sql_parse.cc:8219
|
#13 0x0000563951c14ecb in dispatch_command (command=COM_QUERY, thd=0x4ec000090218,
|
packet=0x4e900022e219 "CREATE TABLE t1 ENGINE=CONNECT TABLE_TYPE=ODBC SRCDEF='SELECT %s, %d FROM t1' CONNECTION='Driver=SQLite3;Database=/source/storage/connect/mysql-test/connect/std_data/test.sqlite3;NoWCHAR=yes' CHARSET="..., packet_length=223, blocking=true) at /source/sql/sql_parse.cc:1924
|
#14 0x0000563951c24957 in do_command (thd=0x4ec000090218, blocking=true) at /source/sql/sql_parse.cc:1434
|
#15 0x00005639524bc841 in do_handle_one_connection (connect=0x4c7ffffe41b8, put_in_cache=true) at /source/sql/sql_connect.cc:1482
|
#16 0x00005639524bc12f in handle_one_connection (arg=0x4c7ffffe4138) at /source/sql/sql_connect.cc:1394
|
#17 0x0000563953b00fa2 in pfs_spawn_thread (arg=0x4d6ffffe7098) at /source/storage/perfschema/pfs.cc:2201
|
#18 0x000056395151100b in asan_thread_start(void*) ()
|
#19 0x0000540000092b7b in ?? () from /lib/x86_64-linux-gnu/libc.so.6
|
#20 0x0000540000110630 in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Attachments
Issue Links
- relates to
-
MDEV-38838 Memory loss in CONNECT from handler::ha_rnd_init
-
- Closed
-