[MDEV-27232] Incorrect error message and memory free issue when using non-existing init file Created: 2021-12-12  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Major
Reporter: Roel Van de Paar Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

# mysqld options required for replay:  --init-file=/nonexisting

Leads to:

10.8.0 ccdf5711a8fff0cd610a91fdcf37c8ff1182878c (Optimized)

2021-12-12 13:40:51 0 [ERROR] mysqld: Can't create/write to file '/nonexisting' (Errcode: 2 "No such file or directory")
2021-12-12 13:40:51 0 [ERROR] Aborting
Warning: Memory not freed: 552

10.2.42 (Debug)

2021-12-12 13:44:47 23317388879808 [ERROR] mysqld: Can't create/write to file '/nonexisting' (Errcode: 2 "No such file or directory")
2021-12-12 13:44:47 23317388879808 [ERROR] Aborting
 
Warning: Memory not freed: 8856
Warning:  248 bytes lost at 0x55b0cfb8a9d0, allocated by T@0 at mysys/queues.c:78, sql/event_queue.cc:142, sql/events.cc:949, sql/mysqld.cc:6075, sql/main.cc:26, csu/libc-start.c:342, 0x55b0cc8eb07e
Warning: 2048 bytes lost at 0x55b0cfb8a150, allocated by T@0 at mysys/array.c:70, mysys/hash.c:98, mysys/thr_mutex.c:176, sql/event_queue.cc:714, sql/event_queue.cc:142, sql/events.cc:949, sql/mysqld.cc:6075, sql/main.cc:26
Warning: 2048 bytes lost at 0x55b0cfb898d0, allocated by T@0 at mysys/array.c:70, mysys/hash.c:98, mysys/thr_mutex.c:176, sql/event_queue.cc:714, sql/event_queue.cc:142, sql/events.cc:949, sql/mysqld.cc:6075, sql/main.cc:26
Warning:  208 bytes lost at 0x55b0cfb89780, allocated by T@0 at mysys/mulalloc.c:51, mysys/thr_mutex.c:158, sql/event_queue.cc:714, sql/event_queue.cc:142, sql/events.cc:949, sql/mysqld.cc:6075, sql/main.cc:26, csu/libc-start.c:342
Warning: 2048 bytes lost at 0x55b0cfb88f00, allocated by T@0 at mysys/array.c:70, mysys/hash.c:98, mysys/thr_mutex.c:176, psi/mysql_thread.h:693, sql/events.cc:943, sql/mysqld.cc:6075, sql/main.cc:26, csu/libc-start.c:342
Warning: 2048 bytes lost at 0x55b0cfb88680, allocated by T@0 at mysys/array.c:70, mysys/hash.c:98, mysys/thr_mutex.c:176, psi/mysql_thread.h:693, sql/events.cc:943, sql/mysqld.cc:6075, sql/main.cc:26, csu/libc-start.c:342
Warning:  208 bytes lost at 0x55b0cfb88530, allocated by T@0 at mysys/mulalloc.c:51, mysys/thr_mutex.c:158, psi/mysql_thread.h:693, sql/events.cc:943, sql/mysqld.cc:6075, sql/main.cc:26, csu/libc-start.c:342, 0x55b0cc8eb07e
Memory lost: 8856 bytes in 7 chunks

The message should read "mysqd: Can't read file '/nonexisting'"


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