Skip to content

Instantly share code, notes, and snippets.

@taf2
Created December 22, 2009 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taf2/261925 to your computer and use it in GitHub Desktop.
Save taf2/261925 to your computer and use it in GitHub Desktop.
valgrind --leak-check=full --track-origins=yes --leak-resolution=high --num-callers=64 /home/taf2/rb19/bin/ruby tests/tc_curl_multi.rb
==17923== Memcheck, a memory error detector.
==17923== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==17923== Using LibVEX rev 1884, a library for dynamic binary translation.
==17923== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==17923== Using valgrind-3.4.1, a dynamic binary instrumentation framework.
==17923== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==17923== For more details, rerun with: -v
==17923==
Loaded suite tests/tc_curl_multi
Started
==17923== Invalid read of size 4
==17923== at 0x80610AF: mark_locations_array (gc.c:1231)
==17923== by 0x810D894: rb_thread_mark (vm.c:1604)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x80613BF: gc_mark_children (gc.c:1585)
==17923== by 0x810D734: rb_thread_mark (vm.c:1573)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x810D620: vm_mark_each_thread_func (vm.c:1410)
==17923== by 0x80D4E5F: st_foreach (st.c:655)
==17923== by 0x810DA71: rb_vm_mark (vm.c:1433)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x8061A05: garbage_collect (gc.c:2023)
==17923== by 0x806236F: rb_gc (gc.c:2474)
==17923== by 0x806238A: rb_gc_start (gc.c:2110)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x811D97C: rb_yield (vm.c:524)
==17923== by 0x81293F0: rb_ary_each (array.c:1351)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x811D97C: rb_yield (vm.c:524)
==17923== by 0x81293F0: rb_ary_each (array.c:1351)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x8118F9F: rb_vm_invoke_proc (vm.c:524)
==17923== by 0x805D028: rb_proc_call (proc.c:545)
==17923== by 0x805ADF9: rb_call_end_proc (eval_jump.c:13)
==17923== by 0x805B9E6: rb_exec_end_proc (eval_jump.c:133)
==17923== by 0x805BA86: ruby_finalize_0 (eval.c:108)
==17923== by 0x805BD38: ruby_cleanup (eval.c:143)
==17923== by 0x805BF1D: ruby_run_node (eval.c:234)
==17923== by 0x8059649: main (main.c:35)
==17923== Address 0x5c209a0 is not stack'd, malloc'd or (recently) free'd
.==17923==
==17923== Invalid read of size 4
==17923== at 0x80610AF: mark_locations_array (gc.c:1231)
==17923== by 0x810D894: rb_thread_mark (vm.c:1604)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x810D620: vm_mark_each_thread_func (vm.c:1410)
==17923== by 0x80D4E5F: st_foreach (st.c:655)
==17923== by 0x810DA71: rb_vm_mark (vm.c:1433)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x8061A05: garbage_collect (gc.c:2023)
==17923== by 0x806236F: rb_gc (gc.c:2474)
==17923== by 0x806238A: rb_gc_start (gc.c:2110)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x811D97C: rb_yield (vm.c:524)
==17923== by 0x81293F0: rb_ary_each (array.c:1351)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x811D97C: rb_yield (vm.c:524)
==17923== by 0x81293F0: rb_ary_each (array.c:1351)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x8118F9F: rb_vm_invoke_proc (vm.c:524)
==17923== by 0x805D028: rb_proc_call (proc.c:545)
==17923== by 0x805ADF9: rb_call_end_proc (eval_jump.c:13)
==17923== by 0x805B9E6: rb_exec_end_proc (eval_jump.c:133)
==17923== by 0x805BA86: ruby_finalize_0 (eval.c:108)
==17923== by 0x805BD38: ruby_cleanup (eval.c:143)
==17923== by 0x805BF1D: ruby_run_node (eval.c:234)
==17923== by 0x8059649: main (main.c:35)
==17923== Address 0x5c209a0 is not stack'd, malloc'd or (recently) free'd
.==17923==
==17923== Invalid read of size 4
==17923== at 0x80610AF: mark_locations_array (gc.c:1231)
==17923== by 0x810D894: rb_thread_mark (vm.c:1604)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x806117C: mark_locations_array (gc.c:1234)
==17923== by 0x810D894: rb_thread_mark (vm.c:1604)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x810D620: vm_mark_each_thread_func (vm.c:1410)
==17923== by 0x80D4EAD: st_foreach (st.c:685)
==17923== by 0x810DA71: rb_vm_mark (vm.c:1433)
==17923== by 0x80614DA: gc_mark_children (gc.c:1577)
==17923== by 0x8061A05: garbage_collect (gc.c:2023)
==17923== by 0x806236F: rb_gc (gc.c:2474)
==17923== by 0x806238A: rb_gc_start (gc.c:2110)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x811D97C: rb_yield (vm.c:524)
==17923== by 0x81293F0: rb_ary_each (array.c:1351)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x811D97C: rb_yield (vm.c:524)
==17923== by 0x81293F0: rb_ary_each (array.c:1351)
==17923== by 0x810E80F: vm_call_cfunc (vm_insnhelper.c:384)
==17923== by 0x8110C57: vm_call_method (vm_insnhelper.c:517)
==17923== by 0x811363C: vm_exec_core (insns.def:999)
==17923== by 0x8116402: vm_exec (vm.c:1080)
==17923== by 0x8118F9F: rb_vm_invoke_proc (vm.c:524)
==17923== by 0x805D028: rb_proc_call (proc.c:545)
==17923== by 0x805ADF9: rb_call_end_proc (eval_jump.c:13)
==17923== by 0x805B9E6: rb_exec_end_proc (eval_jump.c:133)
==17923== by 0x805BA86: ruby_finalize_0 (eval.c:108)
==17923== by 0x805BD38: ruby_cleanup (eval.c:143)
==17923== by 0x805BF1D: ruby_run_node (eval.c:234)
==17923== by 0x8059649: main (main.c:35)
==17923== Address 0x65e69a0 is not stack'd, malloc'd or (recently) free'd
................
Finished in 7.427125 seconds.
18 tests, 310 assertions, 0 failures, 0 errors, 0 skips
==17923==
==17923== ERROR SUMMARY: 136 errors from 3 contexts (suppressed: 73 from 1)
==17923== malloc/free: in use at exit: 9,287,145 bytes in 26,094 blocks.
==17923== malloc/free: 114,785 allocs, 88,691 frees, 42,822,941 bytes allocated.
==17923== For counts of detected errors, rerun with: -v
==17923== searching for pointers to 26,094 not-freed blocks.
==17923== checked 2,672,808 bytes.
==17923==
==17923==
==17923== 9 bytes in 1 blocks are definitely lost in loss record 956 of 14,492
==17923== at 0x4006F3D: malloc (vg_replace_malloc.c:207)
==17923== by 0x806268E: vm_xmalloc.clone.4 (gc.c:625)
==17923== by 0x80F8EF4: ruby_strdup (util.c:602)
==17923== by 0x8126A05: enc_alias_internal (encoding.c:361)
==17923== by 0x8127985: enc_set_default_encoding (encoding.c:1080)
==17923== by 0x80CE2C3: process_options (ruby.c:1366)
==17923== by 0x810CFE1: rb_vm_call_cfunc (vm.c:1381)
==17923== by 0x80CC3EB: ruby_process_options (ruby.c:1815)
==17923== by 0x805B817: ruby_options (eval.c:89)
==17923== by 0x8059641: main (main.c:35)
==17923==
==17923==
==17923== 52 bytes in 1 blocks are definitely lost in loss record 12,958 of 14,492
==17923== at 0x4006F3D: malloc (vg_replace_malloc.c:207)
==17923== by 0x806268E: vm_xmalloc.clone.4 (gc.c:625)
==17923== by 0x8068BC7: argf_alloc (io.c:6080)
==17923== by 0x81194A6: vm_call0 (vm_eval.c:71)
==17923== by 0x811989F: rb_funcall (vm_eval.c:249)
==17923== by 0x8082031: rb_obj_alloc (object.c:1449)
==17923== by 0x80820F1: rb_class_new_instance (object.c:1481)
==17923== by 0x8071DE0: Init_IO (io.c:8739)
==17923== by 0x8067689: rb_call_inits (inits.c:43)
==17923== by 0x805BB54: ruby_init (eval.c:66)
==17923== by 0x805962F: main (main.c:34)
==17923==
==17923== LEAK SUMMARY:
==17923== definitely lost: 61 bytes in 2 blocks.
==17923== possibly lost: 0 bytes in 0 blocks.
==17923== still reachable: 9,287,084 bytes in 26,092 blocks.
==17923== suppressed: 0 bytes in 0 blocks.
==17923== Reachable blocks (those to which a pointer was found) are not shown.
==17923== To see them, rerun with: --leak-check=full --show-reachable=yes
spin~/work/curb>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment