[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 ==2118== Memcheck, a memory error detector ==2118== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==2118== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info ==2118== Command: zabbix_server -c /etc/zabbix/zabbix_server.conf --foreground ==2118== Starting Zabbix Server. Zabbix 6.0.35 (revision 8a9017e52e7). Press Ctrl+C to exit. ==2118== Warning: set address range perms: large range [0x59eb0000, 0xd9eb0000) (defined) ==2137== Invalid write of size 1 ==2137== at 0x4C43794: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1144) ==2137== by 0x354A75: serialize_variant (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x354E2F: zbx_eval_serialize (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313F0C: encode_expression (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x316E6C: dbsync_item_preproc_row (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313AB8: dbsync_preproc_row (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313EAC: zbx_dbsync_next (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x2F1152: DCsync_items (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x2F7E1F: DCsync_configuration (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x185D3E: dbconfig_thread (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x369177: zbx_thread_start (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x172A8B: server_startup (in /usr/sbin/zabbix_server_mysql) ==2137== Address 0x1f4a0c90 is 0 bytes after a block of size 6,144 alloc'd ==2137== at 0x4C39185: malloc (vg_replace_malloc.c:442) ==2137== by 0x38706E: zbx_malloc2 (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x35488F: reserve_buffer (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x354A57: serialize_variant (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x354E2F: zbx_eval_serialize (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313F0C: encode_expression (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x316E6C: dbsync_item_preproc_row (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313AB8: dbsync_preproc_row (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313EAC: zbx_dbsync_next (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x2F1152: DCsync_items (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x2F7E1F: DCsync_configuration (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x185D3E: dbconfig_thread (in /usr/sbin/zabbix_server_mysql) ==2137== --2137-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting --2137-- si_code=128; Faulting address: 0x0; sp: 0x1009bf7e00 valgrind: the 'impossible' happened: Killed by fatal signal host stacktrace: ==2137== at 0x58053197: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==2137== by 0x5805416F: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==2137== by 0x5800422B: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==2137== by 0x58004E66: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==2137== by 0x580ABF4B: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) ==2137== by 0x580FD1A9: ??? (in /usr/libexec/valgrind/memcheck-amd64-linux) sched status: running_tid=1 Thread 1: status = VgTs_Runnable (lwpid 2137) ==2137== at 0x4C39185: malloc (vg_replace_malloc.c:442) ==2137== by 0x38706E: zbx_malloc2 (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x3B5407: zbx_default_mem_malloc_func (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x354E8F: zbx_eval_serialize (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313F0C: encode_expression (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x316E6C: dbsync_item_preproc_row (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313AB8: dbsync_preproc_row (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x313EAC: zbx_dbsync_next (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x2F1152: DCsync_items (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x2F7E1F: DCsync_configuration (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x185D3E: dbconfig_thread (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x369177: zbx_thread_start (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x172A8B: server_startup (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x173E5D: MAIN_ZABBIX_ENTRY (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x365F95: daemon_start (in /usr/sbin/zabbix_server_mysql) ==2137== by 0x172349: main (in /usr/sbin/zabbix_server_mysql) client stack range: [0x1FFEFEC000 0x1FFF000FFF] client SP: 0x1FFEFFC7A0 valgrind stack range: [0x1009AF8000 0x1009BF7FFF] 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. ==2136== ==2136== HEAP SUMMARY: ==2136== in use at exit: 272,276 bytes in 3,289 blocks ==2136== total heap usage: 6,580 allocs, 3,291 frees, 5,277,103 bytes allocated ==2136== ==2136== LEAK SUMMARY: ==2136== definitely lost: 0 bytes in 0 blocks ==2136== indirectly lost: 0 bytes in 0 blocks ==2136== possibly lost: 0 bytes in 0 blocks ==2136== still reachable: 272,276 bytes in 3,289 blocks ==2136== suppressed: 0 bytes in 0 blocks ==2136== Reachable blocks (those to which a pointer was found) are not shown. ==2136== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==2136== ==2136== For lists of detected and suppressed errors, rerun with: -s ==2136== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==2135== ==2135== HEAP SUMMARY: ==2135== in use at exit: 27,408 bytes in 170 blocks ==2135== total heap usage: 8,838 allocs, 8,668 frees, 10,352,911 bytes allocated ==2135== ==2135== LEAK SUMMARY: ==2135== definitely lost: 0 bytes in 0 blocks ==2135== indirectly lost: 0 bytes in 0 blocks ==2135== possibly lost: 0 bytes in 0 blocks ==2135== still reachable: 27,408 bytes in 170 blocks ==2135== suppressed: 0 bytes in 0 blocks ==2135== Reachable blocks (those to which a pointer was found) are not shown. ==2135== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==2135== ==2135== For lists of detected and suppressed errors, rerun with: -s ==2135== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==2118== ==2118== HEAP SUMMARY: ==2118== in use at exit: 28,002 bytes in 130 blocks ==2118== total heap usage: 6,246 allocs, 6,116 frees, 3,862,417 bytes allocated ==2118== ==2118== LEAK SUMMARY: ==2118== definitely lost: 0 bytes in 0 blocks ==2118== indirectly lost: 0 bytes in 0 blocks ==2118== possibly lost: 0 bytes in 0 blocks ==2118== still reachable: 28,002 bytes in 130 blocks ==2118== suppressed: 0 bytes in 0 blocks ==2118== Reachable blocks (those to which a pointer was found) are not shown. ==2118== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==2118== ==2118== For lists of detected and suppressed errors, rerun with: -s ==2118== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==2118== could not unlink /tmp/vgdb-pipe-from-vgdb-to-2118-by-root-on-appliance ==2118== could not unlink /tmp/vgdb-pipe-to-vgdb-from-2118-by-root-on-appliance ==2118== could not unlink /tmp/vgdb-pipe-shared-mem-vgdb-2118-by-root-on-appliance