==00:02:57:19.082 9019== Memcheck, a memory error detector ==00:02:57:19.082 9019== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==00:02:57:19.082 9019== Using Valgrind-3.15.0-608cb11914-20190413 and LibVEX; rerun with -h for copyright info ==00:02:57:19.082 9019== Command: /usr/bin/pgpool -f /etc/pgpool-II/pgpool.conf ==00:02:57:19.082 9019== Parent PID: 15320 ==00:02:57:19.082 9019== --00:02:57:19.082 9019-- --00:02:57:19.082 9019-- Valgrind options: --00:02:57:19.082 9019-- --tool=memcheck --00:02:57:19.082 9019-- --track-origins=yes --00:02:57:19.082 9019-- --trace-children=yes --00:02:57:19.082 9019-- --time-stamp=yes --00:02:57:19.082 9019-- --show-error-list=yes --00:02:57:19.082 9019-- -v --00:02:57:19.082 9019-- --log-file=/var/log/valgrind/pgpool-%p.log --00:02:57:19.082 9019-- Contents of /proc/version: --00:02:57:19.082 9019-- Linux version 3.10.0-1160.59.1.el7.x86_64 (mockbuild@x86-vm-37.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed Feb 16 12:17:35 UTC 2022 --00:02:57:19.082 9019-- --00:02:57:19.082 9019-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-ssse3-avx-f16c-rdrand --00:02:57:19.082 9019-- Page sizes: currently 4096, max supported 4096 --00:02:57:19.082 9019-- Valgrind library directory: /usr/libexec/valgrind ==00:02:57:19.087 9019== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-9019-by-postgres-on-chris-oneview-a.pprism.acs ==00:02:57:19.087 9019== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-9019-by-postgres-on-chris-oneview-a.pprism.acs ==00:02:57:19.087 9019== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-9019-by-postgres-on-chris-oneview-a.pprism.acs ==00:02:57:19.087 9019== ==00:02:57:19.087 9019== TO CONTROL THIS PROCESS USING vgdb (which you probably ==00:02:57:19.087 9019== don't want to do, unless you know exactly what you're doing, ==00:02:57:19.087 9019== or are doing some strange experiment): ==00:02:57:19.087 9019== /usr/libexec/valgrind/../../bin/vgdb --pid=9019 ...command... ==00:02:57:19.087 9019== ==00:02:57:19.087 9019== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==00:02:57:19.087 9019== /path/to/gdb /usr/bin/pgpool ==00:02:57:19.087 9019== and then give GDB the following command ==00:02:57:19.087 9019== target remote | /usr/libexec/valgrind/../../bin/vgdb --pid=9019 ==00:02:57:19.087 9019== --pid is optional if only one valgrind process is running ==00:02:57:19.087 9019== ==00:02:57:29.890 9019== Invalid write of size 4 ==00:02:57:29.890 9019== at 0x43532E: do_child (child.c:333) ==00:02:57:29.890 9019== by 0x40B7E4: fork_a_child (pgpool_main.c:686) ==00:02:57:29.890 9019== by 0x40D098: sync_backend_from_watchdog (pgpool_main.c:4277) ==00:02:57:29.890 9019== by 0x40F911: sigusr1_interrupt_processor (pgpool_main.c:1296) ==00:02:57:29.890 9019== by 0x412C4E: PgpoolMain (pgpool_main.c:477) ==00:02:57:29.890 9019== by 0x409B49: main (main.c:365) ==00:02:57:29.890 9019== Address 0x14 is not stack'd, malloc'd or (recently) free'd ==00:02:57:29.890 9019== ==00:02:57:29.890 9019== ==00:02:57:29.890 9019== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==00:02:57:29.890 9019== Access not within mapped region at address 0x14 ==00:02:57:29.890 9019== at 0x43532E: do_child (child.c:333) ==00:02:57:29.890 9019== by 0x40B7E4: fork_a_child (pgpool_main.c:686) ==00:02:57:29.890 9019== by 0x40D098: sync_backend_from_watchdog (pgpool_main.c:4277) ==00:02:57:29.890 9019== by 0x40F911: sigusr1_interrupt_processor (pgpool_main.c:1296) ==00:02:57:29.890 9019== by 0x412C4E: PgpoolMain (pgpool_main.c:477) ==00:02:57:29.890 9019== by 0x409B49: main (main.c:365) ==00:02:57:29.890 9019== If you believe this happened as a result of a stack ==00:02:57:29.890 9019== overflow in your program's main thread (unlikely but ==00:02:57:29.890 9019== possible), you can try to increase the size of the ==00:02:57:29.890 9019== main thread stack using the --main-stacksize= flag. ==00:02:57:29.890 9019== The main thread stack size used in this run was 8388608. --00:02:57:30.450 9019-- Discarding syms at 0xab8b1b0-0xab92501 in /usr/lib64/libnss_files-2.17.so (have_dinfo 1) ==00:02:57:30.459 9019== ==00:02:57:30.459 9019== HEAP SUMMARY: ==00:02:57:30.459 9019== in use at exit: 289,260 bytes in 49 blocks ==00:02:57:30.459 9019== total heap usage: 784 allocs, 735 frees, 440,995 bytes allocated ==00:02:57:30.459 9019== ==00:02:57:30.459 9019== Searching for pointers to 49 not-freed blocks ==00:02:57:30.714 9019== Checked 136,431,632 bytes ==00:02:57:30.714 9019== ==00:02:57:30.715 9019== LEAK SUMMARY: ==00:02:57:30.715 9019== definitely lost: 224 bytes in 1 blocks ==00:02:57:30.715 9019== indirectly lost: 2,356 bytes in 27 blocks ==00:02:57:30.715 9019== possibly lost: 0 bytes in 0 blocks ==00:02:57:30.715 9019== still reachable: 286,680 bytes in 21 blocks ==00:02:57:30.715 9019== suppressed: 0 bytes in 0 blocks ==00:02:57:30.715 9019== Rerun with --leak-check=full to see details of leaked memory ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ERROR SUMMARY: 596 errors from 7 contexts (suppressed: 0 from 0) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 1 errors in context 1 of 7: ==00:02:57:30.715 9019== Invalid write of size 4 ==00:02:57:30.715 9019== at 0x43532E: do_child (child.c:333) ==00:02:57:30.715 9019== by 0x40B7E4: fork_a_child (pgpool_main.c:686) ==00:02:57:30.715 9019== by 0x40D098: sync_backend_from_watchdog (pgpool_main.c:4277) ==00:02:57:30.715 9019== by 0x40F911: sigusr1_interrupt_processor (pgpool_main.c:1296) ==00:02:57:30.715 9019== by 0x412C4E: PgpoolMain (pgpool_main.c:477) ==00:02:57:30.715 9019== by 0x409B49: main (main.c:365) ==00:02:57:30.715 9019== Address 0x14 is not stack'd, malloc'd or (recently) free'd ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 1 errors in context 2 of 7: ==00:02:57:30.715 9019== Conditional jump or move depends on uninitialised value(s) ==00:02:57:30.715 9019== at 0x4C2D108: strlen (vg_replace_strmem.c:461) ==00:02:57:30.715 9019== by 0x4A84D3: appendStringInfoString (stringinfo.c:167) ==00:02:57:30.715 9019== by 0x476A32: log_line_prefix.isra.1 (elog.c:2154) ==00:02:57:30.715 9019== by 0x479634: send_message_to_server_log (elog.c:2210) ==00:02:57:30.715 9019== by 0x479634: EmitErrorReport (elog.c:1140) ==00:02:57:30.715 9019== by 0x47779D: errfinish (elog.c:440) ==00:02:57:30.715 9019== by 0x416692: SysLogger_Start (pgpool_logger.c:548) ==00:02:57:30.715 9019== by 0x411E72: PgpoolMain (pgpool_main.c:274) ==00:02:57:30.715 9019== by 0x409B49: main (main.c:365) ==00:02:57:30.715 9019== Uninitialised value was created by a stack allocation ==00:02:57:30.715 9019== at 0x4768B2: log_line_prefix.isra.1 (elog.c:1990) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 1 errors in context 3 of 7: ==00:02:57:30.715 9019== Syscall param open(filename) points to uninitialised byte(s) ==00:02:57:30.715 9019== at 0x6C7E900: __open_nocancel (in /usr/lib64/libc-2.17.so) ==00:02:57:30.715 9019== by 0x6C0A51F: _IO_file_fopen@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so) ==00:02:57:30.715 9019== by 0x6BFDCA3: __fopen_internal (in /usr/lib64/libc-2.17.so) ==00:02:57:30.715 9019== by 0x41A618: SetPgpoolNodeId (pool_config_variables.c:4960) ==00:02:57:30.715 9019== by 0x41A930: config_post_processor (pool_config_variables.c:4642) ==00:02:57:30.715 9019== by 0x41855A: pool_get_config (pool_config.l:485) ==00:02:57:30.715 9019== by 0x40989D: main (main.c:231) ==00:02:57:30.715 9019== Address 0x1ffeff2110 is on thread 1's stack ==00:02:57:30.715 9019== in frame #3, created by SetPgpoolNodeId (pool_config_variables.c:4947) ==00:02:57:30.715 9019== Uninitialised value was created by a stack allocation ==00:02:57:30.715 9019== at 0x41A586: SetPgpoolNodeId (pool_config_variables.c:4947) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 15 errors in context 4 of 7: ==00:02:57:30.715 9019== Conditional jump or move depends on uninitialised value(s) ==00:02:57:30.715 9019== at 0x6BDC079: vfprintf (in /usr/lib64/libc-2.17.so) ==00:02:57:30.715 9019== by 0x6CA4FF4: __vsnprintf_chk (in /usr/lib64/libc-2.17.so) ==00:02:57:30.715 9019== by 0x6CA4F57: __snprintf_chk (in /usr/lib64/libc-2.17.so) ==00:02:57:30.715 9019== by 0x41A609: UnknownInlinedFun (stdio2.h:64) ==00:02:57:30.715 9019== by 0x41A609: SetPgpoolNodeId (pool_config_variables.c:4955) ==00:02:57:30.715 9019== by 0x41A930: config_post_processor (pool_config_variables.c:4642) ==00:02:57:30.715 9019== by 0x41855A: pool_get_config (pool_config.l:485) ==00:02:57:30.715 9019== by 0x40989D: main (main.c:231) ==00:02:57:30.715 9019== Uninitialised value was created by a stack allocation ==00:02:57:30.715 9019== at 0x41A586: SetPgpoolNodeId (pool_config_variables.c:4947) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 20 errors in context 5 of 7: ==00:02:57:30.715 9019== Conditional jump or move depends on uninitialised value(s) ==00:02:57:30.715 9019== at 0x4C2D108: strlen (vg_replace_strmem.c:461) ==00:02:57:30.715 9019== by 0x4A84D3: appendStringInfoString (stringinfo.c:167) ==00:02:57:30.715 9019== by 0x476A32: log_line_prefix.isra.1 (elog.c:2154) ==00:02:57:30.715 9019== by 0x4797F1: send_message_to_server_log (elog.c:2203) ==00:02:57:30.715 9019== by 0x4797F1: EmitErrorReport (elog.c:1140) ==00:02:57:30.715 9019== by 0x47779D: errfinish (elog.c:440) ==00:02:57:30.715 9019== by 0x44DEEA: pool_shared_memory_cache_size (pool_memqcache.c:2059) ==00:02:57:30.715 9019== by 0x411F08: initialize_shared_mem_objects (pgpool_main.c:3499) ==00:02:57:30.715 9019== by 0x411F08: PgpoolMain (pgpool_main.c:283) ==00:02:57:30.715 9019== by 0x409B49: main (main.c:365) ==00:02:57:30.715 9019== Uninitialised value was created by a stack allocation ==00:02:57:30.715 9019== at 0x4768B2: log_line_prefix.isra.1 (elog.c:1990) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 279 errors in context 6 of 7: ==00:02:57:30.715 9019== Conditional jump or move depends on uninitialised value(s) ==00:02:57:30.715 9019== at 0x4C2D108: strlen (vg_replace_strmem.c:461) ==00:02:57:30.715 9019== by 0x4A84D3: appendStringInfoString (stringinfo.c:167) ==00:02:57:30.715 9019== by 0x476A32: log_line_prefix.isra.1 (elog.c:2154) ==00:02:57:30.715 9019== by 0x479849: send_message_to_server_log (elog.c:2241) ==00:02:57:30.715 9019== by 0x479849: EmitErrorReport (elog.c:1140) ==00:02:57:30.715 9019== by 0x47779D: errfinish (elog.c:440) ==00:02:57:30.715 9019== by 0x416692: SysLogger_Start (pgpool_logger.c:548) ==00:02:57:30.715 9019== by 0x411E72: PgpoolMain (pgpool_main.c:274) ==00:02:57:30.715 9019== by 0x409B49: main (main.c:365) ==00:02:57:30.715 9019== Uninitialised value was created by a stack allocation ==00:02:57:30.715 9019== at 0x4768B2: log_line_prefix.isra.1 (elog.c:1990) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== 279 errors in context 7 of 7: ==00:02:57:30.715 9019== Conditional jump or move depends on uninitialised value(s) ==00:02:57:30.715 9019== at 0x4C2D108: strlen (vg_replace_strmem.c:461) ==00:02:57:30.715 9019== by 0x4A84D3: appendStringInfoString (stringinfo.c:167) ==00:02:57:30.715 9019== by 0x476A32: log_line_prefix.isra.1 (elog.c:2154) ==00:02:57:30.715 9019== by 0x479564: send_message_to_server_log (elog.c:2174) ==00:02:57:30.715 9019== by 0x479564: EmitErrorReport (elog.c:1140) ==00:02:57:30.715 9019== by 0x47779D: errfinish (elog.c:440) ==00:02:57:30.715 9019== by 0x416692: SysLogger_Start (pgpool_logger.c:548) ==00:02:57:30.715 9019== by 0x411E72: PgpoolMain (pgpool_main.c:274) ==00:02:57:30.715 9019== by 0x409B49: main (main.c:365) ==00:02:57:30.715 9019== Uninitialised value was created by a stack allocation ==00:02:57:30.715 9019== at 0x4768B2: log_line_prefix.isra.1 (elog.c:1990) ==00:02:57:30.715 9019== ==00:02:57:30.715 9019== ERROR SUMMARY: 596 errors from 7 contexts (suppressed: 0 from 0)