[root@appliance ~]# valgrind --leak-check=full --trace-children=yes --track-origins=yes --max-stackframe=5000000 --max-threads=1200 --read-var-info=yes --leak-resolution=high zabbix_server -c /etc/zabbix/zabbix_server.conf --foreground ==1784== Memcheck, a memory error detector ==1784== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==1784== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info ==1784== Command: zabbix_server -c /etc/zabbix/zabbix_server.conf --foreground ==1784== Starting Zabbix Server. Zabbix 6.0.35 (revision 8a9017e52e7). Press Ctrl+C to exit. ==1784== Warning: set address range perms: large range [0x59eb0000, 0xd9eb0000) (defined) ==1804== Invalid write of size 1 ==1804== at 0x4C43794: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1144) ==1804== by 0x265676: zbx_eval_serialize (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x296187: encode_expression (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x296765: dbsync_item_preproc_row (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x29524D: dbsync_preproc_row.part.1 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x295765: zbx_dbsync_next (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2B9608: DCsync_items (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2BD477: DCsync_configuration (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x3B8078: dbconfig_thread (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x253B36: zbx_thread_start (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x1800B9: server_startup.isra.0.constprop.159 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x3C07A9: MAIN_ZABBIX_ENTRY (in /usr/sbin/zabbix_server_mysql) ==1804== Address 0x1f4a0c90 is 0 bytes after a block of size 6,144 alloc'd ==1804== at 0x4C39185: malloc (vg_replace_malloc.c:442) ==1804== by 0x23CA7A: zbx_malloc2 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2653E2: reserve_buffer (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x265661: zbx_eval_serialize (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x296187: encode_expression (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x296765: dbsync_item_preproc_row (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x29524D: dbsync_preproc_row.part.1 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x295765: zbx_dbsync_next (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2B9608: DCsync_items (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2BD477: DCsync_configuration (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x3B8078: dbconfig_thread (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x253B36: zbx_thread_start (in /usr/sbin/zabbix_server_mysql) ==1804== --1804-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting --1804-- si_code=128; Faulting address: 0x0; sp: 0x1009af7e00 valgrind: the 'impossible' happened: Killed by fatal signal host stacktrace: ==1804== at 0x58053197: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==1804== by 0x5805416F: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==1804== by 0x5800422B: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==1804== by 0x58004E66: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==1804== by 0x580ABF4B: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==1804== by 0x580FD1A9: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) sched status: running_tid=1 Thread 1: status = VgTs_Runnable (lwpid 1804) ==1804== at 0x4C39185: malloc (vg_replace_malloc.c:442) ==1804== by 0x23CA7A: zbx_malloc2 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2655E5: zbx_eval_serialize (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x296187: encode_expression (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x296765: dbsync_item_preproc_row (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x29524D: dbsync_preproc_row.part.1 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x295765: zbx_dbsync_next (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2B9608: DCsync_items (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x2BD477: DCsync_configuration (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x3B8078: dbconfig_thread (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x253B36: zbx_thread_start (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x1800B9: server_startup.isra.0.constprop.159 (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x3C07A9: MAIN_ZABBIX_ENTRY (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x25AB56: daemon_start (in /usr/sbin/zabbix_server_mysql) ==1804== by 0x173F53: main (in /usr/sbin/zabbix_server_mysql) client stack range: [0x1FFEFEB000 0x1FFF000FFF] client SP: 0x1FFEFFB430 valgrind stack range: [0x10099F8000 0x1009AF7FFF] top usage: 10504 of 1048576 Note: see also the FAQ in the source distribution. It contains workarounds to several common problems. In particular, if Valgrind aborted or crashed after identifying problems in your program, there's a good chance that fixing those problems will prevent Valgrind aborting or crashing, especially if it happened in m_mallocfree.c. If that doesn't help, please report this bug to: www.valgrind.org In the bug report, send all the above text, the valgrind version, and what OS and version you are using. Thanks. ==1803== ==1803== HEAP SUMMARY: ==1803== in use at exit: 272,276 bytes in 3,289 blocks ==1803== total heap usage: 6,926 allocs, 3,637 frees, 6,070,135 bytes allocated ==1803== ==1803== LEAK SUMMARY: ==1803== definitely lost: 0 bytes in 0 blocks ==1803== indirectly lost: 0 bytes in 0 blocks ==1803== possibly lost: 0 bytes in 0 blocks ==1803== still reachable: 272,276 bytes in 3,289 blocks ==1803== suppressed: 0 bytes in 0 blocks ==1803== Reachable blocks (those to which a pointer was found) are not shown. ==1803== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1803== ==1803== For lists of detected and suppressed errors, rerun with: -s ==1803== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==1802== ==1802== HEAP SUMMARY: ==1802== in use at exit: 27,408 bytes in 170 blocks ==1802== total heap usage: 9,819 allocs, 9,649 frees, 12,598,031 bytes allocated ==1802== ==1802== LEAK SUMMARY: ==1802== definitely lost: 0 bytes in 0 blocks ==1802== indirectly lost: 0 bytes in 0 blocks ==1802== possibly lost: 0 bytes in 0 blocks ==1802== still reachable: 27,408 bytes in 170 blocks ==1802== suppressed: 0 bytes in 0 blocks ==1802== Reachable blocks (those to which a pointer was found) are not shown. ==1802== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1802== ==1802== For lists of detected and suppressed errors, rerun with: -s ==1802== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==1784== ==1784== HEAP SUMMARY: ==1784== in use at exit: 28,002 bytes in 130 blocks ==1784== total heap usage: 6,638 allocs, 6,508 frees, 4,620,041 bytes allocated ==1784== ==1784== LEAK SUMMARY: ==1784== definitely lost: 0 bytes in 0 blocks ==1784== indirectly lost: 0 bytes in 0 blocks ==1784== possibly lost: 0 bytes in 0 blocks ==1784== still reachable: 28,002 bytes in 130 blocks ==1784== suppressed: 0 bytes in 0 blocks ==1784== Reachable blocks (those to which a pointer was found) are not shown. ==1784== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1784== ==1784== For lists of detected and suppressed errors, rerun with: -s ==1784== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==1784== could not unlink /tmp/vgdb-pipe-from-vgdb-to-1784-by-root-on-appliance ==1784== could not unlink /tmp/vgdb-pipe-to-vgdb-from-1784-by-root-on-appliance ==1784== could not unlink /tmp/vgdb-pipe-shared-mem-vgdb-1784-by-root-on-appliance