Skip to content

Instantly share code, notes, and snippets.

@translunar
Last active December 21, 2015 07:28
Show Gist options
  • Save translunar/6271150 to your computer and use it in GitHub Desktop.
Save translunar/6271150 to your computer and use it in GitHub Desktop.
rake pry:valgrind output
$ bundle exec rake pry:valgrind
rake/gempackagetask is deprecated. Use rubygems/package_task instead
install -c tmp/x86_64-darwin12.4.0/nmatrix/2.0.0/nmatrix.bundle lib//nmatrix.bundle
valgrind --tool=memcheck --num-callers=15 --partial-loads-ok=yes --undef-value-errors=no ruby -r 'pry' -e 'binding.pry'
==11089== Memcheck, a memory error detector
==11089== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==11089== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==11089== Command: ruby -r pry -e binding.pry
==11089==
==11089== WARNING: Support on MacOS 10.8 is experimental and mostly broken.
==11089== WARNING: Expect incorrect results, assertions and crashes.
==11089== WARNING: In particular, Memcheck on 32-bit programs will fail to
==11089== WARNING: detect any errors associated with heap-allocated data.
==11089==
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/bin/ruby:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
UNKNOWN __pthread_sigmask is unsupported. This warning will not be repeated.
==11089== Warning: ignored attempt to set SIGUSR2 handler in sigaction();
==11089== the SIGUSR2 signal is used internally by Valgrind
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/encdb.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/enc/trans/transdb.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/stringio.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/etc.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/readline.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
UNKNOWN task message [id 3403, to mach_task_self(), reply 0x813]
UNKNOWN task message [id 3403, to mach_task_self(), reply 0x813]
==11089== Invalid read of size 1
==11089== at 0x5C979: loaded_feature_path.part.1 (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0x100034E5F: ???
==11089== by 0xFFFFFFFF: ???
==11089== by 0x1000352FF: ???
==11089== by 0x138D51: st_lookup (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0xE37: ???
==11089== by 0x1047FFC5F: ???
==11089== by 0x1007B99CF: ???
==11089== by 0x62: ???
==11089== by 0x101502C5F: ???
==11089== Address 0x1007b99cf is 1 bytes before a block of size 103 alloc'd
==11089== at 0x5227: malloc (in /usr/local/Cellar/valgrind/3.8.1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==11089== by 0x76547: vm_xmalloc (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0x1007B957F: ???
==11089== by 0x1007B957F: ???
==11089== by 0x66: ???
==11089== by 0x174F76: ruby_strdup (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0x1007B957F: ???
==11089== by 0x10035514F: ???
==11089== by 0x100034E4F: ???
==11089== by 0x5C21A: load_lock (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089==
==11089== Invalid read of size 1
==11089== at 0x5C979: loaded_feature_path.part.1 (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0x2F: ???
==11089== by 0xFFFFFFFF: ???
==11089== by 0xB97: ???
==11089== by 0x1028295F7: ???
==11089== by 0x1047FF1EF: ???
==11089== by 0x1047FF2BF: ???
==11089== by 0x1007E117F: ???
==11089== by 0x69: ???
==11089== by 0x10150234F: ???
==11089== Address 0x1007e117f is 1 bytes before a block of size 110 alloc'd
==11089== at 0x5227: malloc (in /usr/local/Cellar/valgrind/3.8.1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==11089== by 0x76547: vm_xmalloc (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0x1007DFF2F: ???
==11089== by 0x1007DFF2F: ???
==11089== by 0x6D: ???
==11089== by 0x174F76: ruby_strdup (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089== by 0x1007DFF2F: ???
==11089== by 0x10035514F: ???
==11089== by 0x100034E4F: ???
==11089== by 0x5C21A: load_lock (in /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/libruby.2.0.0.dylib)
==11089==
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/pathname.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/digest/sha1.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/digest.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/socket.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/fcntl.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
UNKNOWN task message [id 3403, to mach_task_self(), reply 0x813]
UNKNOWN task message [id 3403, to mach_task_self(), reply 0x813]
UNKNOWN task message [id 3403, to mach_task_self(), reply 0x813]
--11089-- /Users/jwoods/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/strscan.bundle:
--11089-- dSYM directory is missing; consider using --dsymutil=yes
[1] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment