==30167== Memcheck, a memory error detector
==30167== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==30167== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==30167== Command: ./maxscale -d -c ..
==30167== Parent PID: 5566
==30167== 
--30167-- 
--30167-- Valgrind options:
--30167--    -v
--30167--    --leak-check=full
--30167--    --show-leak-kinds=all
--30167--    --log-file=vg.log
--30167-- Contents of /proc/version:
--30167--   Linux version 3.18.9-200.fc21.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) ) #1 SMP Mon Mar 9 15:10:50 UTC 2015
--30167-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi
--30167-- Page sizes: currently 4096, max supported 4096
--30167-- Valgrind library directory: /usr/lib64/valgrind
--30167-- Reading syms from /home/markus/build/bin/maxscale
--30167-- Reading syms from /usr/lib64/ld-2.20.so
--30167-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux
--30167--    object doesn't have a symbol table
--30167--    object doesn't have a dynamic symbol table
--30167-- Scheduler: using generic scheduler lock implementation.
--30167-- Reading suppressions file: /usr/lib64/valgrind/default.supp
==30167== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-30167-by-markus-on-localhost.localdomain
==30167== embedded gdbserver: writing to   /tmp/vgdb-pipe-to-vgdb-from-30167-by-markus-on-localhost.localdomain
==30167== embedded gdbserver: shared mem   /tmp/vgdb-pipe-shared-mem-vgdb-30167-by-markus-on-localhost.localdomain
==30167== 
==30167== TO CONTROL THIS PROCESS USING vgdb (which you probably
==30167== don't want to do, unless you know exactly what you're doing,
==30167== or are doing some strange experiment):
==30167==   /usr/lib64/valgrind/../../bin/vgdb --pid=30167 ...command...
==30167== 
==30167== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==30167==   /path/to/gdb ./maxscale
==30167== and then give GDB the following command
==30167==   target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=30167
==30167== --pid is optional if only one valgrind process is running
==30167== 
--30167-- REDIR: 0x4019ea0 (ld-linux-x86-64.so.2:strlen) redirected to 0x380c1e51 (???)
--30167-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
--30167--    object doesn't have a symbol table
==30167== WARNING: new redirection conflicts with existing -- ignoring it
--30167--     old: 0x04019ea0 (strlen              ) R-> (0000.0) 0x380c1e51 ???
--30167--     new: 0x04019ea0 (strlen              ) R-> (2007.0) 0x04c2cc40 strlen
--30167-- REDIR: 0x4019c50 (ld-linux-x86-64.so.2:index) redirected to 0x4c2c7f0 (index)
--30167-- REDIR: 0x4019e70 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2dcf0 (strcmp)
--30167-- REDIR: 0x401ab90 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c30840 (mempcpy)
--30167-- Reading syms from /usr/lib64/libcurl.so.4.3.0
--30167-- Reading syms from /home/markus/build/lib/liblog_manager.so
--30167-- Reading syms from /usr/lib64/libssl.so.1.0.1k
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libaio.so.1.0.1
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libpthread-2.20.so
--30167-- Reading syms from /usr/lib64/libcrypt-2.20.so
--30167-- Reading syms from /usr/lib64/libdl-2.20.so
--30167-- Reading syms from /usr/lib64/libcrypto.so.1.0.1k
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libz.so.1.2.8
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/librt-2.20.so
--30167-- Reading syms from /usr/lib64/libstdc++.so.6.0.20
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libm-2.20.so
--30167-- Reading syms from /usr/lib64/libgcc_s-4.9.2-20150212.so.1
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libc-2.20.so
--30167-- Reading syms from /usr/lib64/libgssapi_krb5.so.2.2
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libkrb5.so.3.3
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libcom_err.so.2.1
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libk5crypto.so.3.1
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libfreebl3.so
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libkrb5support.so.0.1
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libkeyutils.so.1.5
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libresolv-2.20.so
--30167-- Reading syms from /usr/lib64/libselinux.so.1
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/libpcre.so.1.2.3
--30167--    object doesn't have a symbol table
--30167-- Reading syms from /usr/lib64/liblzma.so.5.0.99
--30167--    object doesn't have a symbol table
--30167-- REDIR: 0x6e2ff40 (libc.so.6:strcasecmp) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e32230 (libc.so.6:strncasecmp) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e2f6c0 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e2a200 (libc.so.6:strcmp) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e2d960 (libc.so.6:rindex) redirected to 0x4c2c4d0 (rindex)
--30167-- REDIR: 0x6e2bc60 (libc.so.6:strlen) redirected to 0x4c2cb80 (strlen)
--30167-- REDIR: 0x6e240f0 (libc.so.6:malloc) redirected to 0x4c29b48 (malloc)
--30167-- REDIR: 0x6e34980 (libc.so.6:__GI_memcpy) redirected to 0x4c2e6f0 (__GI_memcpy)
--30167-- REDIR: 0x6e2be20 (libc.so.6:strnlen) redirected to 0x4c2cb00 (strnlen)
--30167-- REDIR: 0x6e2f720 (libc.so.6:memset) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e2f790 (libc.so.6:__GI_memset) redirected to 0x4c2fdd0 (memset)
--30167-- REDIR: 0x6ee6630 (libc.so.6:__memmove_avx_unaligned) redirected to 0x4c2de50 (memcpy@GLIBC_2.2.5)
--30167-- REDIR: 0x6e25860 (libc.so.6:calloc) redirected to 0x4c2b8b0 (calloc)
--30167-- REDIR: 0x6e2f140 (libc.so.6:__GI_memcmp) redirected to 0x4c2f680 (__GI_memcmp)
--30167-- REDIR: 0x6ee7250 (libc.so.6:__strcmp_ssse3) redirected to 0x4c2dbb0 (strcmp)
--30167-- REDIR: 0x6e29fe0 (libc.so.6:__GI_strchr) redirected to 0x4c2c630 (__GI_strchr)
--30167-- REDIR: 0x6e36a90 (libc.so.6:rawmemchr) redirected to 0x4c30490 (rawmemchr)
--30167-- REDIR: 0x6dda030 (libc.so.6:setenv) redirected to 0x4c310e0 (setenv)
--30167-- REDIR: 0x6e2c0d0 (libc.so.6:__GI_strncmp) redirected to 0x4c2d330 (__GI_strncmp)
--30167-- REDIR: 0x6e25340 (libc.so.6:realloc) redirected to 0x4c2ba52 (realloc)
--30167-- REDIR: 0x6e36ca0 (libc.so.6:strchrnul) redirected to 0x4c30460 (strchrnul)
--30167-- REDIR: 0x6e24440 (libc.so.6:free) redirected to 0x4c2ac62 (free)
--30167-- REDIR: 0x6e35e70 (libc.so.6:strcasestr) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e35970 (libc.so.6:__strcasestr_sse2) redirected to 0x4c30d20 (strcasestr)
--30167-- REDIR: 0x6e2c040 (libc.so.6:strncat) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e44f90 (libc.so.6:__strncat_sse2_unaligned) redirected to 0x4c2c9f0 (strncat)
--30167-- REDIR: 0x6e29db0 (libc.so.6:strcat) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e446a0 (libc.so.6:__strcat_sse2_unaligned) redirected to 0x4c2c830 (strcat)
--30167-- REDIR: 0x6e2e5a0 (libc.so.6:__GI_strstr) redirected to 0x4c30ac0 (__strstr_sse2)
--30167-- REDIR: 0xffffffffff600400 (???:???) redirected to 0x380c1e3d (???)
--30167-- REDIR: 0x6e2a240 (libc.so.6:__GI_strcmp) redirected to 0x4c2dc00 (__GI_strcmp)
--30167-- REDIR: 0x6ee4c70 (libc.so.6:__strncasecmp_avx) redirected to 0x4c2d560 (strncasecmp)
--30167-- REDIR: 0x6e34910 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6ee6b20 (libc.so.6:__memcpy_avx_unaligned) redirected to 0x4c2e0d0 (memcpy@@GLIBC_2.14)
--30167-- REDIR: 0x6e2b690 (libc.so.6:strcpy) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e41880 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4c2cc60 (strcpy)
--30167-- REDIR: 0x6e2edb0 (libc.so.6:memchr) redirected to 0x4c2dd90 (memchr)
--30167-- REDIR: 0x6e2fdd0 (libc.so.6:__GI_stpcpy) redirected to 0x4c2f890 (__GI_stpcpy)
--30167-- Reading syms from /usr/lib64/libnss_files-2.20.so
--30167-- REDIR: 0x6e2b6d0 (libc.so.6:__GI_strcpy) redirected to 0x4c2cd30 (__GI_strcpy)
--30167-- REDIR: 0x65d25f0 (libstdc++.so.6:operator new(unsigned long)) redirected to 0x4c2a050 (operator new(unsigned long))
--30167-- REDIR: 0x6e2f100 (libc.so.6:bcmp) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6f070b0 (libc.so.6:__memcmp_sse4_1) redirected to 0x4c2f700 (__memcmp_sse4_1)
--30167-- REDIR: 0x6e29fb0 (libc.so.6:index) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e2fd90 (libc.so.6:stpcpy) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e42e90 (libc.so.6:__stpcpy_sse2_unaligned) redirected to 0x4c2fa30 (__stpcpy_sse2_unaligned)
--30167-- REDIR: 0x6e2c080 (libc.so.6:strncmp) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6ee84b0 (libc.so.6:__strncmp_ssse3) redirected to 0x4c2d2c0 (strncmp)
--30167-- REDIR: 0x65d2660 (libstdc++.so.6:operator new(unsigned long, std::nothrow_t const&)) redirected to 0x4c2a305 (operator new(unsigned long, std::nothrow_t const&))
--30167-- REDIR: 0x65d0740 (libstdc++.so.6:operator delete(void*)) redirected to 0x4c2b07c (operator delete(void*))
--30167-- REDIR: 0x6e2eb70 (libc.so.6:strstr) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e45f20 (libc.so.6:__strstr_sse2_unaligned) redirected to 0x4c30a30 (strstr)
--30167-- REDIR: 0x6e2f540 (libc.so.6:__GI_memmove) redirected to 0x4c30100 (__GI_memmove)
--30167-- REDIR: 0x6e2d920 (libc.so.6:strncpy) redirected to 0x4a2472e (_vgnU_ifunc_wrapper)
--30167-- REDIR: 0x6e41eb0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c2d190 (__strncpy_sse2_unaligned)
--30167-- REDIR: 0x6ee3600 (libc.so.6:__strcasecmp_avx) redirected to 0x4c2d480 (strcasecmp)
--30167-- Reading syms from /home/markus/build/modules/libcli.so
--30167-- Reading syms from /home/markus/build/modules/libdebugcli.so
--30167-- Reading syms from /home/markus/build/modules/libreadconnroute.so
--30167-- Reading syms from /home/markus/build/modules/libreadwritesplit.so
--30167-- Reading syms from /home/markus/build/lib/libquery_classifier.so
--30167-- Reading syms from /home/markus/build/modules/libschemarouter.so
--30167-- Reading syms from /home/markus/build/modules/libmysqlmon.so
--30167-- REDIR: 0x6e3c910 (libc.so.6:__GI_strncpy) redirected to 0x4c2cf30 (__GI_strncpy)
--30167-- Reading syms from /home/markus/build/modules/libMySQLClient.so
--30167-- Reading syms from /home/markus/build/modules/libtelnetd.so
--30167-- Reading syms from /home/markus/build/modules/libmaxscaled.so
--30167-- Reading syms from /home/markus/build/modules/libMySQLBackend.so
--30167-- Discarding syms at 0x1eccb0b0-0x1ecd428a in /home/markus/build/modules/libMySQLBackend.so due to munmap()
--30167-- Discarding syms at 0x1c2bc190-0x1c2bf174 in /home/markus/build/modules/libmaxscaled.so due to munmap()
--30167-- Discarding syms at 0x1c0b3140-0x1c0b6249 in /home/markus/build/modules/libtelnetd.so due to munmap()
--30167-- Discarding syms at 0x1baa32e0-0x1baabaee in /home/markus/build/modules/libMySQLClient.so due to munmap()
--30167-- Discarding syms at 0x1b0955e0-0x1b09a97d in /home/markus/build/modules/libmysqlmon.so due to munmap()
--30167-- Discarding syms at 0x1ae82f10-0x1ae8cfeb in /home/markus/build/modules/libschemarouter.so due to munmap()
--30167-- Discarding syms at 0x1aa65c20-0x1aa70fc7 in /home/markus/build/modules/libreadwritesplit.so due to munmap()
--30167-- Discarding syms at 0x1ac78b90-0x1ac7bcd5 in /home/markus/build/lib/libquery_classifier.so due to munmap()
--30167-- Discarding syms at 0x1a85aed0-0x1a85eeae in /home/markus/build/modules/libreadconnroute.so due to munmap()
--30167-- Discarding syms at 0x1a64d730-0x1a651fcc in /home/markus/build/modules/libdebugcli.so due to munmap()
--30167-- Discarding syms at 0x1a43d690-0x1a441def in /home/markus/build/modules/libcli.so due to munmap()
==30167== Invalid read of size 4
==30167==    at 0x7CDDCE: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6180 is 7,680 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid read of size 8
==30167==    at 0x7CDDD6: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6178 is 7,672 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid read of size 8
==30167==    at 0x5A6309: PROFILING::status_change(char const*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x7CDDFF: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe7650 is 13,008 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid write of size 8
==30167==    at 0x7CDE04: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6178 is 7,672 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid write of size 4
==30167==    at 0x7CDE0E: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6180 is 7,680 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid write of size 8
==30167==    at 0x7CDE04: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684AFE: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6178 is 7,672 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid write of size 4
==30167==    at 0x7CDE0E: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684AFE: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6180 is 7,680 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid read of size 8
==30167==    at 0x7D35BD: thd_wait_begin (in /home/markus/build/bin/maxscale)
==30167==    by 0x6FB4FB: my_sync (in /home/markus/build/bin/maxscale)
==30167==    by 0x74B59F: translog_destroy (in /home/markus/build/bin/maxscale)
==30167==    by 0xA5E41E: maria_end (in /home/markus/build/bin/maxscale)
==30167==    by 0xA54374: maria_panic (in /home/markus/build/bin/maxscale)
==30167==    by 0x75525B: maria_hton_panic(handlerton*, ha_panic_function) (in /home/markus/build/bin/maxscale)
==30167==    by 0x5792B3: ha_finalize_handlerton(st_plugin_int*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x674FCC: reap_plugins() (in /home/markus/build/bin/maxscale)
==30167==    by 0x675A5C: plugin_shutdown() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54DA1E: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==  Address 0x1efe48c8 is 1,352 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid read of size 8
==30167==    at 0x7D3609: thd_wait_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x6FB530: my_sync (in /home/markus/build/bin/maxscale)
==30167==    by 0x74B59F: translog_destroy (in /home/markus/build/bin/maxscale)
==30167==    by 0xA5E41E: maria_end (in /home/markus/build/bin/maxscale)
==30167==    by 0xA54374: maria_panic (in /home/markus/build/bin/maxscale)
==30167==    by 0x75525B: maria_hton_panic(handlerton*, ha_panic_function) (in /home/markus/build/bin/maxscale)
==30167==    by 0x5792B3: ha_finalize_handlerton(st_plugin_int*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x674FCC: reap_plugins() (in /home/markus/build/bin/maxscale)
==30167==    by 0x675A5C: plugin_shutdown() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54DA1E: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==  Address 0x1efe48c8 is 1,352 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== Invalid read of size 8
==30167==    at 0x660323: get_server_errmsgs (in /home/markus/build/bin/maxscale)
==30167==    by 0x7110AF: my_error_unregister (in /home/markus/build/bin/maxscale)
==30167==    by 0x54DB83: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe4ce8 is 2,408 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
--30167-- Discarding syms at 0x962a240-0x96312d3 in /usr/lib64/libnss_files-2.20.so due to munmap()
==30167== 
==30167== HEAP SUMMARY:
==30167==     in use at exit: 198,367 bytes in 667 blocks
==30167==   total heap usage: 8,564 allocs, 7,897 frees, 282,520,787 bytes allocated
==30167== 
==30167== Searching for pointers to 667 not-freed blocks
==30167== Checked 26,917,640 bytes
==30167== 
==30167== 4 bytes in 1 blocks are still reachable in loss record 1 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x545ACD: bitmask_init (gwbitmask.c:51)
==30167==    by 0x53839F: poll_init (poll.c:208)
==30167==    by 0x529AEB: main (gateway.c:1796)
==30167== 
==30167== 6 bytes in 6 blocks are still reachable in loss record 2 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x5408B0: hashtable_add (hashtable.c:279)
==30167==    by 0x545066: resource_add (dbusers.c:1740)
==30167==    by 0x541D74: addDatabases (dbusers.c:425)
==30167==    by 0x542CD4: getAllUsers (dbusers.c:842)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 7 bytes in 1 blocks are still reachable in loss record 3 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x1B095B72: ???
==30167==    by 0x546299: monitorAddUser (monitor.c:192)
==30167==    by 0x53D68A: process_config_context (config.c:930)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 8 bytes in 1 blocks are still reachable in loss record 4 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x1B095B5B: ???
==30167==    by 0x546299: monitorAddUser (monitor.c:192)
==30167==    by 0x53D68A: process_config_context (config.c:930)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 8 bytes in 2 blocks are still reachable in loss record 5 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2BA09: strndup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x53DB92: config_clone_param (config.c:1144)
==30167==    by 0x5360AD: service_add_qualified_param (service.c:1467)
==30167==    by 0x535FE5: service_set_param_value (service.c:1415)
==30167==    by 0x53C0B6: process_config_context (config.c:445)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 8 bytes in 8 blocks are still reachable in loss record 6 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x544C10: uh_keydup (dbusers.c:1612)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x543003: getAllUsers (dbusers.c:908)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167== 
==30167== 9 bytes in 1 blocks are still reachable in loss record 7 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x509C3C6: fnames_conf_init(fnames_conf_st*, int, char**) (log_manager.cc:1785)
==30167==    by 0x509A808: logmanager_init_nomutex(int, char**) (log_manager.cc:406)
==30167==    by 0x509A97D: skygw_logmanager_init (log_manager.cc:491)
==30167==    by 0x52939F: main (gateway.c:1624)
==30167== 
==30167== 11 bytes in 2 blocks are still reachable in loss record 8 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x540151: users_add (users.c:101)
==30167==    by 0x54699D: loadUsers (adminusers.c:137)
==30167==    by 0x54678F: initialise (adminusers.c:76)
==30167==    by 0x5467B2: admin_verify (adminusers.c:91)
==30167==    by 0x1C2BC484: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 11 bytes in 1 blocks are indirectly lost in loss record 9 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x52608D: gwbuf_alloc (buffer.c:92)
==30167==    by 0x52C140: dcb_read (dcb.c:826)
==30167==    by 0x1ECCBBD5: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x529C9F: main (gateway.c:1848)
==30167== 
==30167== 13 bytes in 1 blocks are still reachable in loss record 10 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x54A92D: hktask_add (housekeeper.c:94)
==30167==    by 0x538438: poll_init (poll.c:222)
==30167==    by 0x529AEB: main (gateway.c:1796)
==30167== 
==30167== 14 bytes in 1 blocks are still reachable in loss record 11 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x545F8E: monitor_alloc (monitor.c:69)
==30167==    by 0x53D3D4: process_config_context (config.c:873)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 16 bytes in 1 blocks are still reachable in loss record 12 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x53DF95: global_defaults (config.c:1332)
==30167==    by 0x53B94A: config_load (config.c:221)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 16 bytes in 1 blocks are still reachable in loss record 13 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x548D3C: filterAddParameter (filter.c:295)
==30167==    by 0x53CA0F: process_config_context (config.c:677)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 16 bytes in 1 blocks are still reachable in loss record 14 of 115
==30167==    at 0x4C2BB1C: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x534DC6: serviceSetFilters (service.c:922)
==30167==    by 0x53CE04: process_config_context (config.c:763)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 16 bytes in 1 blocks are still reachable in loss record 15 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1A85B0F0: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 16 bytes in 1 blocks are still reachable in loss record 16 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1A85B156: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 16 bytes in 1 blocks are indirectly lost in loss record 17 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x52605E: gwbuf_alloc (buffer.c:84)
==30167==    by 0x52C140: dcb_read (dcb.c:826)
==30167==    by 0x1ECCBBD5: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x529C9F: main (gateway.c:1848)
==30167== 
==30167== 18 bytes in 18 blocks are still reachable in loss record 18 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x5408B0: hashtable_add (hashtable.c:279)
==30167==    by 0x545066: resource_add (dbusers.c:1740)
==30167==    by 0x542154: getDatabases (dbusers.c:534)
==30167==    by 0x54425C: getUsers (dbusers.c:1335)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 23 bytes in 4 blocks are still reachable in loss record 19 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x54858D: filter_alloc (filter.c:66)
==30167==    by 0x53C885: process_config_context (config.c:647)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 24 bytes in 6 blocks are still reachable in loss record 20 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x545ACD: bitmask_init (gwbitmask.c:51)
==30167==    by 0x52AFEA: dcb_alloc (dcb.c:204)
==30167==    by 0x5336D9: serviceStartPort (service.c:198)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 24 bytes in 24 blocks are still reachable in loss record 21 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x544C10: uh_keydup (dbusers.c:1612)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x544451: getUsers (dbusers.c:1385)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 28 bytes in 2 blocks are still reachable in loss record 22 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x5408B0: hashtable_add (hashtable.c:279)
==30167==    by 0x540151: users_add (users.c:101)
==30167==    by 0x54699D: loadUsers (adminusers.c:137)
==30167==    by 0x54678F: initialise (adminusers.c:76)
==30167==    by 0x5467B2: admin_verify (adminusers.c:91)
==30167==    by 0x1C2BC484: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 28 bytes in 4 blocks are still reachable in loss record 23 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x534B0D: serviceSetUser (service.c:775)
==30167==    by 0x53BFD5: process_config_context (config.c:417)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 28 bytes in 4 blocks are still reachable in loss record 24 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x1AE84139: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 30 bytes in 2 blocks are still reachable in loss record 25 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x53492C: serviceAddRouterOption (service.c:723)
==30167==    by 0x53CDA1: process_config_context (config.c:757)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 32 bytes in 1 blocks are still reachable in loss record 26 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5B6570E: _dlerror_run (in /usr/lib64/libdl-2.20.so)
==30167==    by 0x5B650D0: dlopen@@GLIBC_2.2.5 (in /usr/lib64/libdl-2.20.so)
==30167==    by 0x52F6DB: load_module (load_utils.c:163)
==30167==    by 0x533469: service_alloc (service.c:113)
==30167==    by 0x53BBA2: process_config_context (config.c:319)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 32 bytes in 2 blocks are still reachable in loss record 27 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x53490D: serviceAddRouterOption (service.c:722)
==30167==    by 0x53CDA1: process_config_context (config.c:757)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 32 bytes in 4 blocks are still reachable in loss record 28 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x536AC3: server_set_unique_name (server.c:140)
==30167==    by 0x53C59A: process_config_context (config.c:588)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 32 bytes in 4 blocks are still reachable in loss record 29 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x548577: filter_alloc (filter.c:65)
==30167==    by 0x53C885: process_config_context (config.c:647)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 32 bytes in 4 blocks are still reachable in loss record 30 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x534AF6: serviceSetUser (service.c:774)
==30167==    by 0x53BFD5: process_config_context (config.c:417)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 32 bytes in 4 blocks are still reachable in loss record 31 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x1AE840EC: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 32 bytes in 1 blocks are definitely lost in loss record 32 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x5A2241: get_lock_data(THD*, TABLE**, unsigned int, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x5A268B: mysql_lock_tables(THD*, TABLE**, unsigned int, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x6C54D0: lock_tables(THD*, TABLE_LIST*, unsigned int, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x6CCDD1: open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x678D79: plugin_init(int*, char**, int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x550D59: init_server_components() (in /home/markus/build/bin/maxscale)
==30167==    by 0x551EDC: init_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x5297D3: main (gateway.c:1719)
==30167== 
==30167== 40 bytes in 1 blocks are still reachable in loss record 33 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1AE83FA8: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 40 bytes in 1 blocks are still reachable in loss record 34 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1A64D8DA: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 40 bytes in 1 blocks are still reachable in loss record 35 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1A43D83A: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 40 bytes in 4 blocks are still reachable in loss record 36 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x536910: server_alloc (server.c:73)
==30167==    by 0x53C56C: process_config_context (config.c:585)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 44 bytes in 2 blocks are still reachable in loss record 37 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2BA09: strndup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x53DB73: config_clone_param (config.c:1143)
==30167==    by 0x5360AD: service_add_qualified_param (service.c:1467)
==30167==    by 0x535FE5: service_set_param_value (service.c:1415)
==30167==    by 0x53C0B6: process_config_context (config.c:445)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 44 bytes in 7 blocks are still reachable in loss record 38 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x548DF4: filterAddParameter (filter.c:306)
==30167==    by 0x53CA0F: process_config_context (config.c:677)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 47 bytes in 1 blocks are indirectly lost in loss record 39 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x52608D: gwbuf_alloc (buffer.c:92)
==30167==    by 0x1BAA75FA: ???
==30167==    by 0x1BAA46E9: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 48 bytes in 1 blocks are still reachable in loss record 40 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x545F62: monitor_alloc (monitor.c:64)
==30167==    by 0x53D3D4: process_config_context (config.c:873)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 48 bytes in 2 blocks are still reachable in loss record 41 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540835: hashtable_add (hashtable.c:260)
==30167==    by 0x540151: users_add (users.c:101)
==30167==    by 0x54699D: loadUsers (adminusers.c:137)
==30167==    by 0x54678F: initialise (adminusers.c:76)
==30167==    by 0x5467B2: admin_verify (adminusers.c:91)
==30167==    by 0x1C2BC484: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 52 bytes in 4 blocks are still reachable in loss record 42 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x536927: server_alloc (server.c:74)
==30167==    by 0x53C56C: process_config_context (config.c:585)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 56 bytes in 1 blocks are still reachable in loss record 43 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x54A90C: hktask_add (housekeeper.c:90)
==30167==    by 0x538438: poll_init (poll.c:222)
==30167==    by 0x529AEB: main (gateway.c:1796)
==30167== 
==30167== 56 bytes in 1 blocks are still reachable in loss record 44 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1A85B080: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 56 bytes in 1 blocks are still reachable in loss record 45 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540058: users_alloc (users.c:61)
==30167==    by 0x546954: loadUsers (adminusers.c:130)
==30167==    by 0x54678F: initialise (adminusers.c:76)
==30167==    by 0x5467B2: admin_verify (adminusers.c:91)
==30167==    by 0x1C2BC484: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 63 bytes in 6 blocks are still reachable in loss record 46 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x545066: resource_add (dbusers.c:1740)
==30167==    by 0x541D74: addDatabases (dbusers.c:425)
==30167==    by 0x542CD4: getAllUsers (dbusers.c:842)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 63 (16 direct, 47 indirect) bytes in 1 blocks are definitely lost in loss record 47 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x52605E: gwbuf_alloc (buffer.c:84)
==30167==    by 0x1BAA75FA: ???
==30167==    by 0x1BAA46E9: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 64 bytes in 4 blocks are possibly lost in loss record 48 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x728CD6: my_strdup (in /home/markus/build/bin/maxscale)
==30167==    by 0x55BD78: mysql_init_character_set (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E40A: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 64 bytes in 4 blocks are possibly lost in loss record 49 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x728CD6: my_strdup (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E4CF: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 64 bytes in 4 blocks are possibly lost in loss record 50 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x728CD6: my_strdup (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E4ED: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 66 bytes in 6 blocks are still reachable in loss record 51 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x5346DF: serviceAddProtocol (service.c:627)
==30167==    by 0x53D0EA: process_config_context (config.c:814)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 70 bytes in 6 blocks are still reachable in loss record 52 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x53354D: service_alloc (service.c:133)
==30167==    by 0x53BBA2: process_config_context (config.c:319)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 72 bytes in 3 blocks are still reachable in loss record 53 of 115
==30167==    at 0x4C2BB1C: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x548D9D: filterAddParameter (filter.c:302)
==30167==    by 0x53CA0F: process_config_context (config.c:677)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 80 bytes in 1 blocks are still reachable in loss record 54 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5404BA: hashtable_alloc_real (hashtable.c:128)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x544FF5: resource_alloc (dbusers.c:1719)
==30167==    by 0x5422EA: getAllUsers (dbusers.c:603)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 80 bytes in 1 blocks are still reachable in loss record 55 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x54058D: hashtable_alloc_real (hashtable.c:152)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x544FF5: resource_alloc (dbusers.c:1719)
==30167==    by 0x5422EA: getAllUsers (dbusers.c:603)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 80 bytes in 1 blocks are still reachable in loss record 56 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5404BA: hashtable_alloc_real (hashtable.c:128)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x540085: users_alloc (users.c:64)
==30167==    by 0x546954: loadUsers (adminusers.c:130)
==30167==    by 0x54678F: initialise (adminusers.c:76)
==30167==    by 0x5467B2: admin_verify (adminusers.c:91)
==30167==    by 0x1C2BC484: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 80 bytes in 2 blocks are still reachable in loss record 57 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x53DB37: config_clone_param (config.c:1136)
==30167==    by 0x5360AD: service_add_qualified_param (service.c:1467)
==30167==    by 0x535FE5: service_set_param_value (service.c:1415)
==30167==    by 0x53C0B6: process_config_context (config.c:445)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 80 bytes in 2 blocks are still reachable in loss record 58 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1AA66101: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 80 bytes in 4 blocks are still reachable in loss record 59 of 115
==30167==    at 0x4C2BB1C: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1B0961B2: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 88 bytes in 7 blocks are still reachable in loss record 60 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x548E1B: filterAddParameter (filter.c:307)
==30167==    by 0x53CA0F: process_config_context (config.c:677)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 96 bytes in 1 blocks are still reachable in loss record 61 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5383CD: poll_init (poll.c:211)
==30167==    by 0x529AEB: main (gateway.c:1796)
==30167== 
==30167== 96 bytes in 4 blocks are still reachable in loss record 62 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1AE8400E: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 96 bytes in 6 blocks are still reachable in loss record 63 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x53BE05: process_config_context (config.c:375)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 100 bytes in 6 blocks are still reachable in loss record 64 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x533537: service_alloc (service.c:132)
==30167==    by 0x53BBA2: process_config_context (config.c:319)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 104 bytes in 1 blocks are still reachable in loss record 65 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1B09579A: ???
==30167==    by 0x546183: monitorStart (monitor.c:130)
==30167==    by 0x53D43C: process_config_context (config.c:883)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 104 bytes in 1 blocks are still reachable in loss record 66 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1AE83F38: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 107 (80 direct, 27 indirect) bytes in 1 blocks are definitely lost in loss record 67 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x526044: gwbuf_alloc (buffer.c:78)
==30167==    by 0x52C140: dcb_read (dcb.c:826)
==30167==    by 0x1ECCBBD5: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x529C9F: main (gateway.c:1848)
==30167== 
==30167== 112 bytes in 2 blocks are still reachable in loss record 68 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540058: users_alloc (users.c:61)
==30167==    by 0x533DD7: serviceStartPort (service.c:326)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 112 bytes in 7 blocks are still reachable in loss record 69 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x548DCD: filterAddParameter (filter.c:305)
==30167==    by 0x53CA0F: process_config_context (config.c:677)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 144 bytes in 6 blocks are still reachable in loss record 70 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540835: hashtable_add (hashtable.c:260)
==30167==    by 0x545066: resource_add (dbusers.c:1740)
==30167==    by 0x541D74: addDatabases (dbusers.c:425)
==30167==    by 0x542CD4: getAllUsers (dbusers.c:842)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 160 bytes in 2 blocks are still reachable in loss record 71 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5404BA: hashtable_alloc_real (hashtable.c:128)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x540085: users_alloc (users.c:64)
==30167==    by 0x533DD7: serviceStartPort (service.c:326)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 160 bytes in 4 blocks are still reachable in loss record 72 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1B09593D: ???
==30167==    by 0x546262: monitorAddServer (monitor.c:178)
==30167==    by 0x53D58E: process_config_context (config.c:909)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 189 bytes in 18 blocks are still reachable in loss record 73 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x545066: resource_add (dbusers.c:1740)
==30167==    by 0x542154: getDatabases (dbusers.c:534)
==30167==    by 0x54425C: getUsers (dbusers.c:1335)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 192 bytes in 8 blocks are still reachable in loss record 74 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1AA66167: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 208 bytes in 13 blocks are still reachable in loss record 75 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x534821: serviceAddBackend (service.c:678)
==30167==    by 0x53CC0B: process_config_context (config.c:723)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 224 bytes in 2 blocks are still reachable in loss record 76 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1AA66091: ???
==30167==    by 0x534214: serviceStart (service.c:420)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 224 bytes in 4 blocks are still reachable in loss record 77 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x544808: mysql_users_alloc (dbusers.c:1463)
==30167==    by 0x53379D: serviceStartPort (service.c:217)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 224 bytes in 26 blocks are still reachable in loss record 78 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x544B8A: uh_keydup (dbusers.c:1601)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x543003: getAllUsers (dbusers.c:908)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167== 
==30167== 224 bytes in 4 blocks are possibly lost in loss record 79 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x7226AC: my_multi_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DE80: mysql_options4 (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E125: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 224 bytes in 4 blocks are possibly lost in loss record 80 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x7226AC: my_multi_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DE80: mysql_options4 (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E18D: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 240 bytes in 3 blocks are still reachable in loss record 81 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5404BA: hashtable_alloc_real (hashtable.c:128)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x544FF5: resource_alloc (dbusers.c:1719)
==30167==    by 0x5420F6: getDatabases (dbusers.c:529)
==30167==    by 0x54425C: getUsers (dbusers.c:1335)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 240 bytes in 3 blocks are still reachable in loss record 82 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x54058D: hashtable_alloc_real (hashtable.c:152)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x544FF5: resource_alloc (dbusers.c:1719)
==30167==    by 0x5420F6: getDatabases (dbusers.c:529)
==30167==    by 0x54425C: getUsers (dbusers.c:1335)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 240 bytes in 6 blocks are still reachable in loss record 83 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5346BE: serviceAddProtocol (service.c:623)
==30167==    by 0x53D0EA: process_config_context (config.c:814)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 256 bytes in 4 blocks are still reachable in loss record 84 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x548556: filter_alloc (filter.c:63)
==30167==    by 0x53C885: process_config_context (config.c:647)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 256 bytes in 4 blocks are possibly lost in loss record 85 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x7226AC: my_multi_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DE80: mysql_options4 (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E107: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 256 bytes in 4 blocks are possibly lost in loss record 86 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x7226AC: my_multi_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DE80: mysql_options4 (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E143: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 288 bytes in 4 blocks are possibly lost in loss record 87 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x7226AC: my_multi_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DE80: mysql_options4 (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E0E9: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 320 bytes in 4 blocks are still reachable in loss record 88 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5404BA: hashtable_alloc_real (hashtable.c:128)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x544835: mysql_users_alloc (dbusers.c:1466)
==30167==    by 0x53379D: serviceStartPort (service.c:217)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 332 bytes in 40 blocks are still reachable in loss record 89 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x544B8A: uh_keydup (dbusers.c:1601)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x544451: getUsers (dbusers.c:1385)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 352 bytes in 4 blocks are possibly lost in loss record 90 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x7226AC: my_multi_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E4BC: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 360 bytes in 1 blocks are still reachable in loss record 91 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5384A5: poll_init (poll.c:227)
==30167==    by 0x529AEB: main (gateway.c:1796)
==30167== 
==30167== 416 bytes in 1 blocks are still reachable in loss record 92 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x54058D: hashtable_alloc_real (hashtable.c:152)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x540085: users_alloc (users.c:64)
==30167==    by 0x546954: loadUsers (adminusers.c:130)
==30167==    by 0x54678F: initialise (adminusers.c:76)
==30167==    by 0x5467B2: admin_verify (adminusers.c:91)
==30167==    by 0x1C2BC484: ???
==30167==    by 0x5398C2: process_pollq (poll.c:869)
==30167==    by 0x539171: poll_waitevents (poll.c:609)
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 432 bytes in 18 blocks are still reachable in loss record 93 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540835: hashtable_add (hashtable.c:260)
==30167==    by 0x545066: resource_add (dbusers.c:1740)
==30167==    by 0x542154: getDatabases (dbusers.c:534)
==30167==    by 0x54425C: getUsers (dbusers.c:1335)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 624 bytes in 26 blocks are still reachable in loss record 94 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540835: hashtable_add (hashtable.c:260)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x543003: getAllUsers (dbusers.c:908)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 640 bytes in 4 blocks are still reachable in loss record 95 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5368EF: server_alloc (server.c:71)
==30167==    by 0x53C56C: process_config_context (config.c:585)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 640 bytes in 4 blocks are still reachable in loss record 96 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x1B0967B1: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 640 bytes in 1 blocks are possibly lost in loss record 97 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x40129E4: _dl_allocate_tls (in /usr/lib64/ld-2.20.so)
==30167==    by 0x5719EC7: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0xA524A0: ma_checkpoint_init (in /home/markus/build/bin/maxscale)
==30167==    by 0x755623: ha_maria_init(void*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x5793D3: ha_initialize_handlerton(st_plugin_int*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x677444: plugin_initialize(st_mem_root*, st_plugin_int*, int*, char**, bool) (in /home/markus/build/bin/maxscale)
==30167==    by 0x678728: plugin_init(int*, char**, int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x550D59: init_server_components() (in /home/markus/build/bin/maxscale)
==30167==    by 0x551EDC: init_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x5297D3: main (gateway.c:1719)
==30167== 
==30167== 640 bytes in 1 blocks are possibly lost in loss record 98 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x40129E4: _dl_allocate_tls (in /usr/lib64/ld-2.20.so)
==30167==    by 0x5719EC7: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x545A06: thread_start (thread.c:45)
==30167==    by 0x54A8E9: hkinit (housekeeper.c:66)
==30167==    by 0x529B93: main (gateway.c:1825)
==30167== 
==30167== 672 bytes in 4 blocks are possibly lost in loss record 99 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DD11: mysql_options (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E058: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 720 bytes in 1 blocks are still reachable in loss record 100 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x538456: poll_init (poll.c:224)
==30167==    by 0x529AEB: main (gateway.c:1796)
==30167== 
==30167== 832 bytes in 2 blocks are still reachable in loss record 101 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x54058D: hashtable_alloc_real (hashtable.c:152)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x540085: users_alloc (users.c:64)
==30167==    by 0x533DD7: serviceStartPort (service.c:326)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 912 bytes in 6 blocks are still reachable in loss record 102 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5313B8: session_alloc (session.c:77)
==30167==    by 0x533FEC: serviceStartPort (service.c:358)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 960 bytes in 40 blocks are still reachable in loss record 103 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x540835: hashtable_add (hashtable.c:260)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x544451: getUsers (dbusers.c:1385)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 1,040 bytes in 26 blocks are still reachable in loss record 104 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x544B31: uh_keydup (dbusers.c:1590)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x543003: getAllUsers (dbusers.c:908)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 1,066 bytes in 26 blocks are still reachable in loss record 105 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x5408B0: hashtable_add (hashtable.c:279)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x543003: getAllUsers (dbusers.c:908)
==30167==    by 0x5435FC: getUsers (dbusers.c:1044)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 1,248 bytes in 6 blocks are still reachable in loss record 106 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x533441: service_alloc (service.c:111)
==30167==    by 0x53BBA2: process_config_context (config.c:319)
==30167==    by 0x53B9AC: config_load (config.c:233)
==30167==    by 0x52996A: main (gateway.c:1770)
==30167== 
==30167== 1,600 bytes in 40 blocks are still reachable in loss record 107 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x544B31: uh_keydup (dbusers.c:1590)
==30167==    by 0x540867: hashtable_add (hashtable.c:268)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x544451: getUsers (dbusers.c:1385)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 1,640 bytes in 40 blocks are still reachable in loss record 108 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x6E2B9B9: strdup (in /usr/lib64/libc-2.20.so)
==30167==    by 0x5408B0: hashtable_add (hashtable.c:279)
==30167==    by 0x5448FE: mysql_users_add (dbusers.c:1499)
==30167==    by 0x541983: add_mysql_users_with_host_ipv4 (dbusers.c:315)
==30167==    by 0x544451: getUsers (dbusers.c:1385)
==30167==    by 0x541465: load_mysql_users (dbusers.c:128)
==30167==    by 0x5337BA: serviceStartPort (service.c:219)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 1,664 bytes in 4 blocks are still reachable in loss record 109 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x54058D: hashtable_alloc_real (hashtable.c:152)
==30167==    by 0x540460: hashtable_alloc (hashtable.c:105)
==30167==    by 0x544835: mysql_users_alloc (dbusers.c:1466)
==30167==    by 0x53379D: serviceStartPort (service.c:217)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 2,016 bytes in 4 blocks are possibly lost in loss record 110 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x72C47C: mysql_socket_vio_new (in /home/markus/build/bin/maxscale)
==30167==    by 0x72C820: vio_new (in /home/markus/build/bin/maxscale)
==30167==    by 0x55ED99: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 2,448 bytes in 6 blocks are still reachable in loss record 111 of 115
==30167==    at 0x4C2B946: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x52AE8E: dcb_alloc (dcb.c:173)
==30167==    by 0x5336D9: serviceStartPort (service.c:198)
==30167==    by 0x5342BC: serviceStart (service.c:433)
==30167==    by 0x5343E0: serviceStartAll (service.c:489)
==30167==    by 0x529AFA: main (gateway.c:1805)
==30167== 
==30167== 5,120 bytes in 4 blocks are possibly lost in loss record 112 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x55BA56: mysql_init (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095E9C: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 32,736 bytes in 4 blocks are possibly lost in loss record 113 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x6FB841: alloc_dynamic (in /home/markus/build/bin/maxscale)
==30167==    by 0x708828: my_hash_insert (in /home/markus/build/bin/maxscale)
==30167==    by 0x55DEE5: mysql_options4 (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E0E9: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 65,568 bytes in 4 blocks are possibly lost in loss record 114 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x72C6BE: mysql_socket_vio_new (in /home/markus/build/bin/maxscale)
==30167==    by 0x72C820: vio_new (in /home/markus/build/bin/maxscale)
==30167==    by 0x55ED99: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== 65,600 bytes in 4 blocks are possibly lost in loss record 115 of 115
==30167==    at 0x4C29BCF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x7289E6: my_malloc (in /home/markus/build/bin/maxscale)
==30167==    by 0x64CCB0: my_net_init (in /home/markus/build/bin/maxscale)
==30167==    by 0x55E2CA: cli_mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x54C61D: mysql_real_connect (in /home/markus/build/bin/maxscale)
==30167==    by 0x1B095F39: ???
==30167==    by 0x1B096772: ???
==30167==    by 0x5719529: start_thread (in /usr/lib64/libpthread-2.20.so)
==30167==    by 0x6EA122C: clone (in /usr/lib64/libc-2.20.so)
==30167== 
==30167== LEAK SUMMARY:
==30167==    definitely lost: 128 bytes in 3 blocks
==30167==    indirectly lost: 74 bytes in 3 blocks
==30167==      possibly lost: 174,784 bytes in 62 blocks
==30167==    still reachable: 23,381 bytes in 599 blocks
==30167==         suppressed: 0 bytes in 0 blocks
==30167== 
==30167== ERROR SUMMARY: 30 errors from 30 contexts (suppressed: 0 from 0)
==30167== 
==30167== 1 errors in context 1 of 30:
==30167== Invalid read of size 8
==30167==    at 0x660323: get_server_errmsgs (in /home/markus/build/bin/maxscale)
==30167==    by 0x7110AF: my_error_unregister (in /home/markus/build/bin/maxscale)
==30167==    by 0x54DB83: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe4ce8 is 2,408 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 2 of 30:
==30167== Invalid read of size 8
==30167==    at 0x7D3609: thd_wait_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x6FB530: my_sync (in /home/markus/build/bin/maxscale)
==30167==    by 0x74B59F: translog_destroy (in /home/markus/build/bin/maxscale)
==30167==    by 0xA5E41E: maria_end (in /home/markus/build/bin/maxscale)
==30167==    by 0xA54374: maria_panic (in /home/markus/build/bin/maxscale)
==30167==    by 0x75525B: maria_hton_panic(handlerton*, ha_panic_function) (in /home/markus/build/bin/maxscale)
==30167==    by 0x5792B3: ha_finalize_handlerton(st_plugin_int*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x674FCC: reap_plugins() (in /home/markus/build/bin/maxscale)
==30167==    by 0x675A5C: plugin_shutdown() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54DA1E: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==  Address 0x1efe48c8 is 1,352 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 3 of 30:
==30167== Invalid read of size 8
==30167==    at 0x7D35BD: thd_wait_begin (in /home/markus/build/bin/maxscale)
==30167==    by 0x6FB4FB: my_sync (in /home/markus/build/bin/maxscale)
==30167==    by 0x74B59F: translog_destroy (in /home/markus/build/bin/maxscale)
==30167==    by 0xA5E41E: maria_end (in /home/markus/build/bin/maxscale)
==30167==    by 0xA54374: maria_panic (in /home/markus/build/bin/maxscale)
==30167==    by 0x75525B: maria_hton_panic(handlerton*, ha_panic_function) (in /home/markus/build/bin/maxscale)
==30167==    by 0x5792B3: ha_finalize_handlerton(st_plugin_int*) (in /home/markus/build/bin/maxscale)
==30167==    by 0x674FCC: reap_plugins() (in /home/markus/build/bin/maxscale)
==30167==    by 0x675A5C: plugin_shutdown() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54DA1E: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==  Address 0x1efe48c8 is 1,352 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 4 of 30:
==30167== Invalid write of size 4
==30167==    at 0x7CDE0E: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684AFE: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6180 is 7,680 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 5 of 30:
==30167== Invalid write of size 8
==30167==    at 0x7CDE04: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684AFE: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6178 is 7,672 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 6 of 30:
==30167== Invalid write of size 4
==30167==    at 0x7CDE0E: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6180 is 7,680 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 7 of 30:
==30167== Invalid write of size 8
==30167==    at 0x7CDE04: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6178 is 7,672 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 8 of 30:
==30167== Invalid read of size 8
==30167==    at 0x5A6309: PROFILING::status_change(char const*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x7CDDFF: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe7650 is 13,008 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 9 of 30:
==30167== Invalid read of size 8
==30167==    at 0x7CDDD6: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6178 is 7,672 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== 
==30167== 1 errors in context 10 of 30:
==30167== Invalid read of size 4
==30167==    at 0x7CDDCE: THD::enter_stage(PSI_stage_info_v1 const*, PSI_stage_info_v1*, char const*, char const*, unsigned int) (in /home/markus/build/bin/maxscale)
==30167==    by 0x684A89: Query_cache::lock_and_suspend() (in /home/markus/build/bin/maxscale)
==30167==    by 0x685159: Query_cache::destroy() (in /home/markus/build/bin/maxscale)
==30167==    by 0x54D9EE: clean_up(bool) [clone .part.36] (in /home/markus/build/bin/maxscale)
==30167==    by 0x552128: end_embedded_server (in /home/markus/build/bin/maxscale)
==30167==    by 0x6BB70B: mysql_server_end (in /home/markus/build/bin/maxscale)
==30167==    by 0x5274A0: libmysqld_done (gateway.c:370)
==30167==    by 0x6DDA391: __run_exit_handlers (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DDA3E4: exit (in /usr/lib64/libc-2.20.so)
==30167==    by 0x6DC0FE6: (below main) (in /usr/lib64/libc-2.20.so)
==30167==  Address 0x1efe6180 is 7,680 bytes inside a block of size 19,856 free'd
==30167==    at 0x4C2ACE9: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30167==    by 0x5526A9: emb_free_embedded_thd (in /home/markus/build/bin/maxscale)
==30167==    by 0x1AC7ACAC: ???
==30167==    by 0x526AB9: gwbuf_remove_buffer_object (buffer.c:567)
==30167==    by 0x52623E: gwbuf_free (buffer.c:145)
==30167==    by 0x1AA6C411: ???
==30167==    by 0x1AA6C283: ???
==30167==    by 0x1AA66D4D: ???
==30167==    by 0x531C81: session_free (session.c:413)
==30167==    by 0x52B438: dcb_final_free (dcb.c:405)
==30167==    by 0x52BA34: dcb_process_zombies (dcb.c:606)
==30167==    by 0x5391BD: poll_waitevents (poll.c:614)
==30167== 
==30167== ERROR SUMMARY: 30 errors from 30 contexts (suppressed: 0 from 0)
