Skip to content

Instantly share code, notes, and snippets.

@yannick
Created October 18, 2017 11:51
Show Gist options
  • Select an option

  • Save yannick/6f957847bb7fa6d88bca12fd1b792d7d to your computer and use it in GitHub Desktop.

Select an option

Save yannick/6f957847bb7fa6d88bca12fd1b792d7d to your computer and use it in GitHub Desktop.
valgrind report for h2o empty mruby handler, POST request load test with h2load -n 50000 -c 500 -t 3 http://10.10.10.146:8080/empty.rb -d d
[yannick@varch mercator-h2o]$ valgrind --leak-check=yes h2o -c h2o.conf
==6594== Memcheck, a memory error detector
==6594== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6594== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==6594== Command: h2o -c h2o.conf
==6594==
fetch-ocsp-response (using OpenSSL 1.1.0f 25 May 2017)
failed to extract ocsp URI from certs/server.crt
[OCSP Stapling] disabled for certificate file:certs/server.crt
fetch-ocsp-response (using OpenSSL 1.1.0f 25 May 2017)
failed to extract ocsp URI from certs/server.crt
[OCSP Stapling] disabled for certificate file:certs/server.crt
[INFO] raised RLIMIT_NOFILE to 1024
h2o server (pid:6594) is ready to serve requests
true
==6594== Syscall param epoll_pwait(sigmask) points to unaddressable byte(s)
==6594== at 0x67593B6: epoll_pwait (in /usr/lib/libc-2.26.so)
==6594== by 0x19B40F: evloop_do_proceed (epoll.c.h:115)
==6594== by 0x19CA3C: h2o_evloop_run (evloop.c.h:574)
==6594== by 0x2622D0: run_loop (main.c:1639)
==6594== by 0x263B28: main (main.c:2237)
==6594== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6594==
^C==6595==
==6595== Process terminating with default action of signal 2 (SIGINT)
==6595== at 0x5967C7B: accept (in /usr/lib/libpthread-2.26.so)
==6595== by 0x25BE09: daemon_main (neverbleed.c:1139)
==6595== by 0x25C29B: neverbleed_init (neverbleed.c:1243)
==6595== by 0x25F45D: listener_setup_ssl (main.c:701)
==6595== by 0x260E01: on_config_listen (main.c:1161)
==6595== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6595== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6595== by 0x263453: main (main.c:2083)
==6594==
==6594== Process terminating with default action of signal 2 (SIGINT)
==6594== at 0x67593B6: epoll_pwait (in /usr/lib/libc-2.26.so)
==6594== by 0x19B40F: evloop_do_proceed (epoll.c.h:115)
==6594== by 0x19CA3C: h2o_evloop_run (evloop.c.h:574)
==6594== by 0x2622D0: run_loop (main.c:1639)
==6594== by 0x263B28: main (main.c:2237)
==6595==
==6595== HEAP SUMMARY:
==6595== in use at exit: 877,268 bytes in 15,496 blocks
==6595== total heap usage: 31,829 allocs, 16,333 frees, 2,891,960 bytes allocated
==6595==
==6594==
==6594== HEAP SUMMARY:
==6594== in use at exit: 6,439,923 bytes in 36,183 blocks
==6594== total heap usage: 1,015,719 allocs, 979,536 frees, 1,182,538,713 bytes allocated
==6594==
==6595== 32 bytes in 1 blocks are possibly lost in loss record 677 of 991
==6595== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C7F48: kh_resize_typeset (mimemap.c:44)
==6595== by 0x1C8379: kh_put_typeset (mimemap.c:44)
==6595== by 0x1C897C: rebuild_typeset (mimemap.c:107)
==6595== by 0x1C927A: set_type (mimemap.c:299)
==6595== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 40 bytes in 1 blocks are possibly lost in loss record 706 of 991
==6595== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C703B: kh_init_extmap (mimemap.c:28)
==6595== by 0x1C8BBD: h2o_mimemap_create (mimemap.c:165)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 40 bytes in 1 blocks are possibly lost in loss record 707 of 991
==6595== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C7C62: kh_init_typeset (mimemap.c:44)
==6595== by 0x1C8BCC: h2o_mimemap_create (mimemap.c:166)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 48 bytes in 1 blocks are possibly lost in loss record 715 of 991
==6595== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6595== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6595== by 0x1C8BB4: h2o_mimemap_create (mimemap.c:163)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 64 bytes in 1 blocks are possibly lost in loss record 744 of 991
==6595== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C72AB: kh_resize_extmap (mimemap.c:28)
==6595== by 0x1C77C0: kh_put_extmap (mimemap.c:28)
==6595== by 0x1C9203: set_type (mimemap.c:291)
==6595== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 169 bytes in 1 blocks are possibly lost in loss record 812 of 991
==6595== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6595== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6595== by 0x1C89E0: create_extension_type (mimemap.c:120)
==6595== by 0x1C8BE8: h2o_mimemap_create (mimemap.c:167)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 304 bytes in 1 blocks are possibly lost in loss record 837 of 991
==6595== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x4011C42: allocate_dtv (in /usr/lib/ld-2.26.so)
==6595== by 0x40125CD: _dl_allocate_tls (in /usr/lib/ld-2.26.so)
==6595== by 0x595EC4F: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.26.so)
==6595== by 0x25BDDC: daemon_main (neverbleed.c:1135)
==6595== by 0x25C29B: neverbleed_init (neverbleed.c:1243)
==6595== by 0x25F45D: listener_setup_ssl (main.c:701)
==6595== by 0x260E01: on_config_listen (main.c:1161)
==6595== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6595== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6595== by 0x263453: main (main.c:2083)
==6595==
==6595== 304 bytes in 1 blocks are possibly lost in loss record 838 of 991
==6595== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x4011C42: allocate_dtv (in /usr/lib/ld-2.26.so)
==6595== by 0x40125CD: _dl_allocate_tls (in /usr/lib/ld-2.26.so)
==6595== by 0x595EC4F: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.26.so)
==6595== by 0x25BE34: daemon_main (neverbleed.c:1141)
==6595== by 0x25C29B: neverbleed_init (neverbleed.c:1243)
==6595== by 0x25F45D: listener_setup_ssl (main.c:701)
==6595== by 0x260E01: on_config_listen (main.c:1161)
==6595== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6595== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6595== by 0x263453: main (main.c:2083)
==6595==
==6595== 1,024 bytes in 1 blocks are possibly lost in loss record 927 of 991
==6595== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C7FB4: kh_resize_typeset (mimemap.c:44)
==6595== by 0x1C8379: kh_put_typeset (mimemap.c:44)
==6595== by 0x1C897C: rebuild_typeset (mimemap.c:107)
==6595== by 0x1C927A: set_type (mimemap.c:299)
==6595== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 2,048 bytes in 1 blocks are possibly lost in loss record 947 of 991
==6595== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C731B: kh_resize_extmap (mimemap.c:28)
==6595== by 0x1C77C0: kh_put_extmap (mimemap.c:28)
==6595== by 0x1C9203: set_type (mimemap.c:291)
==6595== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 2,048 bytes in 1 blocks are possibly lost in loss record 948 of 991
==6595== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1C7366: kh_resize_extmap (mimemap.c:28)
==6595== by 0x1C77C0: kh_put_extmap (mimemap.c:28)
==6595== by 0x1C9203: set_type (mimemap.c:291)
==6595== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 2,222 bytes in 110 blocks are possibly lost in loss record 949 of 991
==6595== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6595== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6595== by 0x1C8707: dupref (mimemap.c:59)
==6595== by 0x1C91EA: set_type (mimemap.c:291)
==6595== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== 13,297 bytes in 81 blocks are possibly lost in loss record 977 of 991
==6595== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6595== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6595== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6595== by 0x1C89E0: create_extension_type (mimemap.c:120)
==6595== by 0x1C9335: h2o_mimemap_define_mimetype (mimemap.c:310)
==6595== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6595== by 0x1A5CD3: h2o_config_init (config.c:195)
==6595== by 0x262CEB: setup_configurators (main.c:1892)
==6595== by 0x263081: main (main.c:1969)
==6595==
==6595== LEAK SUMMARY:
==6595== definitely lost: 0 bytes in 0 blocks
==6595== indirectly lost: 0 bytes in 0 blocks
==6595== possibly lost: 21,640 bytes in 202 blocks
==6595== still reachable: 855,628 bytes in 15,294 blocks
==6595== suppressed: 0 bytes in 0 blocks
==6595== Reachable blocks (those to which a pointer was found) are not shown.
==6595== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==6595==
==6595== For counts of detected and suppressed errors, rerun with: -v
==6595== ERROR SUMMARY: 13 errors from 13 contexts (suppressed: 0 from 0)
==6594== 2 bytes in 1 blocks are definitely lost in loss record 13 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x66E926A: strdup (in /usr/lib/libc-2.26.so)
==6594== by 0x30E799: mrb_r3_f_matches (mrb_r3.c:132)
==6594== by 0x2C3545: mrb_vm_exec (vm.c:1412)
==6594== by 0x2C12AA: mrb_vm_run (vm.c:922)
==6594== by 0x2CAA81: mrb_run (vm.c:2873)
==6594== by 0x2BFF49: mrb_funcall_with_block (vm.c:480)
==6594== by 0x2BF7DB: mrb_funcall_with_block (vm.c:389)
==6594== by 0x2BFFF2: mrb_funcall_argv (vm.c:490)
==6594== by 0x26D03E: h2o_mruby_run_fiber (mruby.c:757)
==6594== by 0x26AD30: on_context_init (mruby.c:361)
==6594== by 0x1A9D44: h2o_context_init_pathconf_context (context.c:48)
==6594==
==6594== 4 bytes in 1 blocks are possibly lost in loss record 64 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x18704C: sdsnewlen (sds.c:91)
==6594== by 0x187207: sdsempty (sds.c:140)
==6594== by 0x183A22: redisBufferWrite (hiredis.c:850)
==6594== by 0x181121: redisAsyncHandleWrite (async.c:551)
==6594== by 0x199C82: on_write (redis.c:434)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8A9: run_pending (evloop.c.h:528)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594== by 0x2622D0: run_loop (main.c:1639)
==6594== by 0x263B28: main (main.c:2237)
==6594==
==6594== 17 bytes in 1 blocks are definitely lost in loss record 671 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x66E926A: strdup (in /usr/lib/libc-2.26.so)
==6594== by 0x30E900: mrb_r3_f_match (mrb_r3.c:172)
==6594== by 0x2C3545: mrb_vm_exec (vm.c:1412)
==6594== by 0x2C12AA: mrb_vm_run (vm.c:922)
==6594== by 0x2CAA81: mrb_run (vm.c:2873)
==6594== by 0x2BFF49: mrb_funcall_with_block (vm.c:480)
==6594== by 0x2BF7DB: mrb_funcall_with_block (vm.c:389)
==6594== by 0x2BFFF2: mrb_funcall_argv (vm.c:490)
==6594== by 0x26D03E: h2o_mruby_run_fiber (mruby.c:757)
==6594== by 0x26AD30: on_context_init (mruby.c:361)
==6594== by 0x1A9D44: h2o_context_init_pathconf_context (context.c:48)
==6594==
==6594== 32 bytes in 1 blocks are possibly lost in loss record 1,375 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C7F48: kh_resize_typeset (mimemap.c:44)
==6594== by 0x1C8379: kh_put_typeset (mimemap.c:44)
==6594== by 0x1C897C: rebuild_typeset (mimemap.c:107)
==6594== by 0x1C927A: set_type (mimemap.c:299)
==6594== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 40 bytes in 1 blocks are possibly lost in loss record 1,443 of 2,302
==6594== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C703B: kh_init_extmap (mimemap.c:28)
==6594== by 0x1C8BBD: h2o_mimemap_create (mimemap.c:165)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 40 bytes in 1 blocks are possibly lost in loss record 1,444 of 2,302
==6594== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C7C62: kh_init_typeset (mimemap.c:44)
==6594== by 0x1C8BCC: h2o_mimemap_create (mimemap.c:166)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 48 bytes in 1 blocks are possibly lost in loss record 1,497 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6594== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6594== by 0x1C8BB4: h2o_mimemap_create (mimemap.c:163)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 48 bytes in 1 blocks are definitely lost in loss record 1,509 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1A6508: h2o_mem_alloc (memory.h:333)
==6594== by 0x1A9ADC: h2o_configurator_get_cmd_path (configurator.c:1111)
==6594== by 0x2619E3: popen_crash_handler (main.c:1441)
==6594== by 0x261BED: setup_signal_handlers (main.c:1497)
==6594== by 0x263696: main (main.c:2146)
==6594==
==6594== 64 bytes in 1 blocks are possibly lost in loss record 1,591 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C72AB: kh_resize_extmap (mimemap.c:28)
==6594== by 0x1C77C0: kh_put_extmap (mimemap.c:28)
==6594== by 0x1C9203: set_type (mimemap.c:291)
==6594== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 64 bytes in 2 blocks are possibly lost in loss record 1,592 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1AB022: h2o_mem_alloc (memory.h:333)
==6594== by 0x1AB9DB: h2o_logconf_compile (logconf.c:134)
==6594== by 0x1BD704: h2o_access_log_open_handle (access_log.c:119)
==6594== by 0x1CF128: on_config (access_log.c:84)
==6594== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6594== by 0x1A79F4: on_config_hosts (configurator.c:377)
==6594== by 0x1A719E: h2o_configurator_apply_commands (configurator.c:224)
==6594== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6594== by 0x263453: main (main.c:2083)
==6594==
==6594== 64 bytes in 2 blocks are possibly lost in loss record 1,593 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6594== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6594== by 0x1BD788: h2o_access_log_open_handle (access_log.c:130)
==6594== by 0x1CF128: on_config (access_log.c:84)
==6594== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6594== by 0x1A79F4: on_config_hosts (configurator.c:377)
==6594== by 0x1A719E: h2o_configurator_apply_commands (configurator.c:224)
==6594== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6594== by 0x263453: main (main.c:2083)
==6594==
==6594== 106 bytes in 6 blocks are possibly lost in loss record 1,673 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x66E926A: strdup (in /usr/lib/libc-2.26.so)
==6594== by 0x30E5C5: mrb_r3_f_add (mrb_r3.c:89)
==6594== by 0x2C3545: mrb_vm_exec (vm.c:1412)
==6594== by 0x2C12AA: mrb_vm_run (vm.c:922)
==6594== by 0x2CAA81: mrb_run (vm.c:2873)
==6594== by 0x2BFF49: mrb_funcall_with_block (vm.c:480)
==6594== by 0x2BF7DB: mrb_funcall_with_block (vm.c:389)
==6594== by 0x2BFFF2: mrb_funcall_argv (vm.c:490)
==6594== by 0x26D03E: h2o_mruby_run_fiber (mruby.c:757)
==6594== by 0x26AD30: on_context_init (mruby.c:361)
==6594== by 0x1A9D44: h2o_context_init_pathconf_context (context.c:48)
==6594==
==6594== 108 bytes in 1 blocks are possibly lost in loss record 1,676 of 2,302
==6594== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1873FB: sdsMakeRoomFor (sds.c:221)
==6594== by 0x187A84: sdscatlen (sds.c:379)
==6594== by 0x1868EA: redisReaderFeed (read.c:464)
==6594== by 0x1838C4: redisBufferRead (hiredis.c:814)
==6594== by 0x181058: redisAsyncHandleRead (async.c:529)
==6594== by 0x199C55: on_read (redis.c:428)
==6594== by 0x19BD72: read_on_ready (evloop.c.h:235)
==6594== by 0x19C74E: run_socket (evloop.c.h:495)
==6594== by 0x19C8A9: run_pending (evloop.c.h:528)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594== by 0x2622D0: run_loop (main.c:1639)
==6594==
==6594== 169 bytes in 1 blocks are possibly lost in loss record 1,774 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6594== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6594== by 0x1C89E0: create_extension_type (mimemap.c:120)
==6594== by 0x1C8BE8: h2o_mimemap_create (mimemap.c:167)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 216 bytes in 4 blocks are possibly lost in loss record 1,807 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1AB022: h2o_mem_alloc (memory.h:333)
==6594== by 0x1ABE71: h2o_logconf_compile (logconf.c:187)
==6594== by 0x1BD704: h2o_access_log_open_handle (access_log.c:119)
==6594== by 0x1CF128: on_config (access_log.c:84)
==6594== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6594== by 0x1A79F4: on_config_hosts (configurator.c:377)
==6594== by 0x1A719E: h2o_configurator_apply_commands (configurator.c:224)
==6594== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6594== by 0x263453: main (main.c:2083)
==6594==
==6594== 304 bytes in 1 blocks are possibly lost in loss record 1,863 of 2,302
==6594== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x4011C42: allocate_dtv (in /usr/lib/ld-2.26.so)
==6594== by 0x40125CD: _dl_allocate_tls (in /usr/lib/ld-2.26.so)
==6594== by 0x595EC4F: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.26.so)
==6594== by 0x198967: h2o_multithread_create_thread (multithread.c:192)
==6594== by 0x26517A: spawn_cache_cleanup_thread (ssl.c:118)
==6594== by 0x2652A7: setup_cache_enable (ssl.c:137)
==6594== by 0x2652D2: setup_cache_internal (ssl.c:142)
==6594== by 0x26875B: ssl_setup_session_resumption (ssl.c:1047)
==6594== by 0x26397F: main (main.c:2195)
==6594==
==6594== 304 bytes in 1 blocks are possibly lost in loss record 1,864 of 2,302
==6594== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x4011C42: allocate_dtv (in /usr/lib/ld-2.26.so)
==6594== by 0x40125CD: _dl_allocate_tls (in /usr/lib/ld-2.26.so)
==6594== by 0x595EC4F: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.26.so)
==6594== by 0x198967: h2o_multithread_create_thread (multithread.c:192)
==6594== by 0x2687AF: ssl_setup_session_resumption (ssl.c:1059)
==6594== by 0x26397F: main (main.c:2195)
==6594==
==6594== 608 bytes in 2 blocks are possibly lost in loss record 1,993 of 2,302
==6594== at 0x4C2EF35: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x4011C42: allocate_dtv (in /usr/lib/ld-2.26.so)
==6594== by 0x40125CD: _dl_allocate_tls (in /usr/lib/ld-2.26.so)
==6594== by 0x595EC4F: pthread_create@@GLIBC_2.2.5 (in /usr/lib/libpthread-2.26.so)
==6594== by 0x198967: h2o_multithread_create_thread (multithread.c:192)
==6594== by 0x25F9E6: listener_setup_ssl (main.c:783)
==6594== by 0x260E01: on_config_listen (main.c:1161)
==6594== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6594== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6594== by 0x263453: main (main.c:2083)
==6594==
==6594== 756 bytes in 14 blocks are possibly lost in loss record 2,016 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1AB022: h2o_mem_alloc (memory.h:333)
==6594== by 0x1AF1E3: h2o_logconf_compile (logconf.c:307)
==6594== by 0x1BD704: h2o_access_log_open_handle (access_log.c:119)
==6594== by 0x1CF128: on_config (access_log.c:84)
==6594== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6594== by 0x1A79F4: on_config_hosts (configurator.c:377)
==6594== by 0x1A719E: h2o_configurator_apply_commands (configurator.c:224)
==6594== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6594== by 0x263453: main (main.c:2083)
==6594==
==6594== 1,024 bytes in 1 blocks are possibly lost in loss record 2,062 of 2,302
==6594== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C7FB4: kh_resize_typeset (mimemap.c:44)
==6594== by 0x1C8379: kh_put_typeset (mimemap.c:44)
==6594== by 0x1C897C: rebuild_typeset (mimemap.c:107)
==6594== by 0x1C927A: set_type (mimemap.c:299)
==6594== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 1,536 bytes in 2 blocks are possibly lost in loss record 2,103 of 2,302
==6594== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x197116: h2o_mem_realloc (memory.h:341)
==6594== by 0x197E5C: h2o_vector__expand (memory.c:349)
==6594== by 0x1AB0BD: h2o_vector__reserve (memory.h:408)
==6594== by 0x1ABD82: h2o_logconf_compile (logconf.c:187)
==6594== by 0x1BD704: h2o_access_log_open_handle (access_log.c:119)
==6594== by 0x1CF128: on_config (access_log.c:84)
==6594== by 0x1A70DC: h2o_configurator_apply_commands (configurator.c:212)
==6594== by 0x1A79F4: on_config_hosts (configurator.c:377)
==6594== by 0x1A719E: h2o_configurator_apply_commands (configurator.c:224)
==6594== by 0x1A968B: h2o_configurator_apply (configurator.c:1023)
==6594== by 0x263453: main (main.c:2083)
==6594==
==6594== 2,048 bytes in 1 blocks are possibly lost in loss record 2,133 of 2,302
==6594== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C731B: kh_resize_extmap (mimemap.c:28)
==6594== by 0x1C77C0: kh_put_extmap (mimemap.c:28)
==6594== by 0x1C9203: set_type (mimemap.c:291)
==6594== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 2,048 bytes in 1 blocks are possibly lost in loss record 2,134 of 2,302
==6594== at 0x4C2F13F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1C7366: kh_resize_extmap (mimemap.c:28)
==6594== by 0x1C77C0: kh_put_extmap (mimemap.c:28)
==6594== by 0x1C9203: set_type (mimemap.c:291)
==6594== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 2,222 bytes in 110 blocks are possibly lost in loss record 2,140 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6594== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6594== by 0x1C8707: dupref (mimemap.c:59)
==6594== by 0x1C91EA: set_type (mimemap.c:291)
==6594== by 0x1C9350: h2o_mimemap_define_mimetype (mimemap.c:312)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 2,688 (336 direct, 2,352 indirect) bytes in 6 blocks are definitely lost in loss record 2,156 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1CDA5A: h2o_mem_alloc (memory.h:333)
==6594== by 0x1CEB79: on_context_init (durations.c:168)
==6594== by 0x1A9DFC: h2o_context_init_pathconf_context (context.c:50)
==6594== by 0x1AA350: h2o_context_init (context.c:124)
==6594== by 0x261F8F: run_loop (main.c:1596)
==6594== by 0x263B28: main (main.c:2237)
==6594==
==6594== 2,840 bytes in 71 blocks are possibly lost in loss record 2,161 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEA58: stat_access (durations.c:152)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 2,840 bytes in 71 blocks are possibly lost in loss record 2,162 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEA88: stat_access (durations.c:155)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 2,840 bytes in 71 blocks are possibly lost in loss record 2,163 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEAB8: stat_access (durations.c:159)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 2,840 bytes in 71 blocks are possibly lost in loss record 2,164 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEAE8: stat_access (durations.c:160)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 2,840 bytes in 71 blocks are possibly lost in loss record 2,165 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEB18: stat_access (durations.c:161)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 2,840 bytes in 71 blocks are possibly lost in loss record 2,166 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEB48: stat_access (durations.c:162)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 3,600 bytes in 90 blocks are possibly lost in loss record 2,184 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x189B6E: gkc_alloc (gkc.c:191)
==6594== by 0x18A0BD: gkc_insert_value (gkc.c:314)
==6594== by 0x1CEA28: stat_access (durations.c:151)
==6594== by 0x1B8418: h2o_dispose_request (request.c:300)
==6594== by 0x1E547B: h2o_http2_stream_close (stream.c:71)
==6594== by 0x1E65BF: h2o_http2_stream_proceed (stream.c:416)
==6594== by 0x1DEC8F: on_write_complete (connection.c:1101)
==6594== by 0x19E1F4: on_write_complete (socket.c:712)
==6594== by 0x19C852: run_socket (evloop.c.h:516)
==6594== by 0x19C8FC: run_pending (evloop.c.h:533)
==6594== by 0x19CA56: h2o_evloop_run (evloop.c.h:578)
==6594==
==6594== 13,297 bytes in 81 blocks are possibly lost in loss record 2,252 of 2,302
==6594== at 0x4C2CE5F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x1970D6: h2o_mem_alloc (memory.h:333)
==6594== by 0x19760D: h2o_mem_alloc_shared (memory.c:179)
==6594== by 0x1C89E0: create_extension_type (mimemap.c:120)
==6594== by 0x1C9335: h2o_mimemap_define_mimetype (mimemap.c:310)
==6594== by 0x1C8C46: h2o_mimemap_create (mimemap.c:179)
==6594== by 0x1A5CD3: h2o_config_init (config.c:195)
==6594== by 0x262CEB: setup_configurators (main.c:1892)
==6594== by 0x263081: main (main.c:1969)
==6594==
==6594== 50,802 (360 direct, 50,442 indirect) bytes in 3 blocks are definitely lost in loss record 2,277 of 2,302
==6594== at 0x4C2CD8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x4C2F195: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x2B14C0: mrb_default_allocf (state.c:60)
==6594== by 0x2A0F10: mrb_realloc_simple (gc.c:204)
==6594== by 0x2A0F92: mrb_realloc (gc.c:218)
==6594== by 0x2A1067: mrb_malloc (gc.c:240)
==6594== by 0x2B1C12: mrb_add_irep (state.c:264)
==6594== by 0x2D5F7E: scope_new (codegen.c:2806)
==6594== by 0x2CD6A7: scope_body (codegen.c:737)
==6594== by 0x2D09C8: codegen (codegen.c:1597)
==6594== by 0x2D6A78: mrb_generate_code (codegen.c:3011)
==6594== by 0x319EBC: create_proc_from_string (eval.c:247)
==6594==
==6594== 185,228 (3,240 direct, 181,988 indirect) bytes in 27 blocks are definitely lost in loss record 2,299 of 2,302
==6594== at 0x4C2CD8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x4C2F195: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6594== by 0x2B14C0: mrb_default_allocf (state.c:60)
==6594== by 0x2A0F10: mrb_realloc_simple (gc.c:204)
==6594== by 0x2A0F92: mrb_realloc (gc.c:218)
==6594== by 0x2A1067: mrb_malloc (gc.c:240)
==6594== by 0x2B1C12: mrb_add_irep (state.c:264)
==6594== by 0x2F1B55: read_irep_record_1 (load.c:52)
==6594== by 0x2F215D: read_irep_record (load.c:193)
==6594== by 0x2F226C: read_section_irep (load.c:220)
==6594== by 0x2F315D: read_irep (load.c:576)
==6594== by 0x2F32FC: mrb_read_irep (load.c:615)
==6594==
==6594== LEAK SUMMARY:
==6594== definitely lost: 4,003 bytes in 39 blocks
==6594== indirectly lost: 234,782 bytes in 6,038 blocks
==6594== possibly lost: 45,742 bytes in 752 blocks
==6594== still reachable: 6,155,396 bytes in 29,354 blocks
==6594== of which reachable via heuristic:
==6594== length64 : 1,000 bytes in 5 blocks
==6594== suppressed: 0 bytes in 0 blocks
==6594== Reachable blocks (those to which a pointer was found) are not shown.
==6594== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==6594==
==6594== For counts of detected and suppressed errors, rerun with: -v
==6594== ERROR SUMMARY: 241 errors from 36 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment