tmm1/perftools.rb

Segfault on Ruby 2.1.0

agrimm opened this issue · 2 comments

I got the following error when using perftools.rb on Ruby 2.1.0.

I didn't get an error when running it on Ruby 2.0.0.

bogus_filename.rb: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0001 p:0000 s:0002 E:001cc8 TOP    [FINISH]


-- C level backtrace information -------------------------------------------
ruby(+0x160175) [0x7ffa42184175]
ruby(+0x1bfcbc) [0x7ffa421e3cbc]
ruby(rb_bug+0xb7) [0x7ffa421e55d7]
ruby(+0xe3b46) [0x7ffa42107b46]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7ffa41bf1cb0] ../nptl/sysdeps/pthread/funlockfile.c:30
ruby(rb_class_real+0x14) [0x7ffa4209afb4]
ruby(rb_class2name+0xa) [0x7ffa4214ea5a]
/home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so(_ZN11ProfileData4StopEv+0x2ad) [0x7ffa3ffe5a5b] ../nptl/sysdeps/x86_64/../i386/pthread_spin_lock.c:49
/home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so(_ZN11CpuProfiler4StopEv+0x53) [0x7ffa3ffe2e99] pthread_mutex_lock.c:54
/home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so(ProfilerStop+0x13) [0x7ffa3ffe336e] pthread_mutex_trylock.c:291
/home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so(+0x944a) [0x7ffa3ffe244a] pthread_getschedparam.c:31
ruby(rb_exec_end_proc+0x1a3) [0x7ffa4204a2a3]
ruby(+0x26373) [0x7ffa4204a373]
ruby(ruby_cleanup+0x2cf) [0x7ffa4204a8ef]
ruby(ruby_run_node+0x3d) [0x7ffa4204ab7d]
ruby(+0x2329b) [0x7ffa4204729b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7ffa40f0276d] libc-start.c:226
ruby(+0x232c9) [0x7ffa420472c9]

-- Other runtime information -----------------------------------------------

* Loaded script: bin/statistics_aggregator_interface.rb

* Loaded features:

    0 enumerator.so
    1 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
    2 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
    3 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb
    4 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/compatibility.rb
    5 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/defaults.rb
    6 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/deprecate.rb
    7 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/errors.rb
    8 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/version.rb
    9 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/requirement.rb
   10 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/platform.rb
   11 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/basic_specification.rb
   12 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/stub_specification.rb
   13 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/util/stringio.rb
   14 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/specification.rb
   15 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/exceptions.rb
   16 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb
   17 thread.rb
   18 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so
   19 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb
   20 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb
   21 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems.rb
   22 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so
   23 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/forwardable.rb
   24 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/path_support.rb
   25 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/common.rb
   26 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/na.rb
   27 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/aa.rb
   28 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/compat.rb
   29 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/cgi/util.rb
   30 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/strscan.so
   31 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/erb.rb
   32 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/format.rb
   33 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/sequence_masker.rb
   34 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence.rb
   35 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/reference.rb
   36 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/feature.rb
   37 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/db.rb
   38 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/dblink.rb
   39 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/db/fasta/defline.rb
   40 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/db/fasta.rb
   41 /home/agrimm/bogus_file.rb
   42 /home/agrimm/bogus_file.rb
   43 /home/agrimm/bogus_file.rb
   44 /home/agrimm/bogus_file.rb
   45 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/delegate.rb
   46 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/etc.so
   47 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/fileutils.rb
   48 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/tmpdir.rb
   49 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/tempfile.rb
   50 /home/agrimm/bogus_file.rb
   51 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/open3.rb
   52 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/common.rb
   53 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/generic.rb
   54 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/ftp.rb
   55 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/http.rb
   56 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/https.rb
   57 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/ldap.rb
   58 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/ldaps.rb
   59 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/mailto.rb
   60 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/uri.rb
   61 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/stringio.so
   62 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/date_core.so
   63 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/date/format.rb
   64 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/date.rb
   65 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/time.rb
   66 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/open-uri.rb
   67 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/cgi/core.rb
   68 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/cgi/cookie.rb
   69 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/cgi.rb
   70 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/socket.so
   71 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/socket.rb
   72 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/timeout.rb
   73 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/protocol.rb
   74 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/zlib.so
   75 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/exceptions.rb
   76 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/header.rb
   77 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/generic_request.rb
   78 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/request.rb
   79 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/requests.rb
   80 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/response.rb
   81 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/responses.rb
   82 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/proxy_delta.rb
   83 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/backward.rb
   84 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http.rb
   85 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/command.rb
   86 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/alignment.rb
   87 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/appl/clustalw.rb
   88 /home/agrimm/bogus_file.rb
   89 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/e2mmap.rb
   90 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/matrix.rb
   91 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/pathway.rb
   92 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/tree/output.rb
   93 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/tree.rb
   94 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/db/newick.rb
   95 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/io/flatfile.rb
   96 /home/agrimm/bogus_file.rb
   97 /home/agrimm/bogus_file.rb
   98 /home/agrimm/bogus_file.rb
   99 /home/agrimm/bogus_file.rb
  100 /home/agrimm/bogus_file.rb
  101 /home/agrimm/bogus_file.rb
  102 /home/agrimm/bogus_file.rb
  103 /home/agrimm/bogus_file.rb
  104 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/dependency.rb
  105 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/exception.rb
  106 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/syntax_error.rb
  107 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/psych.so
  108 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/omap.rb
  109 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/set.rb
  110 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/class_loader.rb
  111 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/scalar_scanner.rb
  112 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/node.rb
  113 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/stream.rb
  114 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/document.rb
  115 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/sequence.rb
  116 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/scalar.rb
  117 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/mapping.rb
  118 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes/alias.rb
  119 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/nodes.rb
  120 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/streaming.rb
  121 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors/visitor.rb
  122 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors/to_ruby.rb
  123 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors/emitter.rb
  124 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/handler.rb
  125 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/tree_builder.rb
  126 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors/yaml_tree.rb
  127 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/json/ruby_events.rb
  128 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors/json_tree.rb
  129 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors/depth_first.rb
  130 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/visitors.rb
  131 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/parser.rb
  132 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/coder.rb
  133 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/core_ext.rb
  134 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/deprecated.rb
  135 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/stream.rb
  136 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/json/yaml_events.rb
  137 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/json/tree_builder.rb
  138 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/json/stream.rb
  139 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych/handlers/document_stream.rb
  140 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/psych.rb
  141 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/yaml.rb
  142 /home/agrimm/bogus_file.rb
  143 /home/agrimm/bogus_file.rb
  144 /home/agrimm/bogus_file.rb
  145 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/set.rb
  146 /home/agrimm/bogus_file.rb
  147 /home/agrimm/bogus_file.rb
  148 /home/agrimm/bogus_file.rb
  149 /home/agrimm/bogus_file.rb
  150 /home/agrimm/bogus_file.rb
  151 /home/agrimm/bogus_file.rb
  152 /home/agrimm/bogus_file.rb
  153 /home/agrimm/bogus_file.rb
  154 /home/agrimm/bogus_file.rb
  155 /home/agrimm/bogus_file.rb
  156 /home/agrimm/bogus_file.rb
  157 /home/agrimm/bogus_file.rb
  158 /home/agrimm/bogus_file.rb
  159 /home/agrimm/bogus_file.rb
  160 /home/agrimm/bogus_file.rb
  161 /home/agrimm/bogus_file.rb
  162 /home/agrimm/bogus_file.rb
  163 /home/agrimm/bogus_file.rb
  164 /home/agrimm/bogus_file.rb
  165 /home/agrimm/bogus_file.rb
  166 /home/agrimm/bogus_file.rb
  167 /home/agrimm/bogus_file.rb
  168 /home/agrimm/bogus_file.rb
  169 /home/agrimm/bogus_file.rb
  170 /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/bio-1.4.3/lib/bio/sequence/generic.rb

* Process memory map:

7ffa3de93000-7ffa3deb9000 r-xp 00000000 08:25 36836098                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/psych.so
7ffa3deb9000-7ffa3e0b8000 ---p 00026000 08:25 36836098                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/psych.so
7ffa3e0b8000-7ffa3e0b9000 r--p 00025000 08:25 36836098                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/psych.so
7ffa3e0b9000-7ffa3e0ba000 rw-p 00026000 08:25 36836098                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/psych.so
7ffa3e0ba000-7ffa3e0d0000 r-xp 00000000 08:06 5533                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffa3e0d0000-7ffa3e2cf000 ---p 00016000 08:06 5533                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffa3e2cf000-7ffa3e2d0000 r--p 00015000 08:06 5533                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffa3e2d0000-7ffa3e2d1000 rw-p 00016000 08:06 5533                       /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffa3e2d1000-7ffa3e2df000 r-xp 00000000 08:25 36836118                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/zlib.so
7ffa3e2df000-7ffa3e4de000 ---p 0000e000 08:25 36836118                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/zlib.so
7ffa3e4de000-7ffa3e4df000 r--p 0000d000 08:25 36836118                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/zlib.so
7ffa3e4df000-7ffa3e4e0000 rw-p 0000e000 08:25 36836118                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/zlib.so
7ffa3e4e0000-7ffa3e507000 r-xp 00000000 08:25 36836109                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/socket.so
7ffa3e507000-7ffa3e706000 ---p 00027000 08:25 36836109                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/socket.so
7ffa3e706000-7ffa3e707000 r--p 00026000 08:25 36836109                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/socket.so
7ffa3e707000-7ffa3e708000 rw-p 00027000 08:25 36836109                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/socket.so
7ffa3e708000-7ffa3e73a000 r-xp 00000000 08:25 36836117                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/date_core.so
7ffa3e73a000-7ffa3e93a000 ---p 00032000 08:25 36836117                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/date_core.so
7ffa3e93a000-7ffa3e93b000 r--p 00032000 08:25 36836117                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/date_core.so
7ffa3e93b000-7ffa3e93c000 rw-p 00033000 08:25 36836117                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/date_core.so
7ffa3e93c000-7ffa3e93e000 rw-p 00000000 00:00 0 
7ffa3e93e000-7ffa3e945000 r-xp 00000000 08:25 36836103                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/stringio.so
7ffa3e945000-7ffa3eb45000 ---p 00007000 08:25 36836103                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/stringio.so
7ffa3eb45000-7ffa3eb46000 r--p 00007000 08:25 36836103                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/stringio.so
7ffa3eb46000-7ffa3eb47000 rw-p 00008000 08:25 36836103                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/stringio.so
7ffa3eb47000-7ffa3eb4a000 r-xp 00000000 08:25 36836105                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/etc.so
7ffa3eb4a000-7ffa3ed49000 ---p 00003000 08:25 36836105                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/etc.so
7ffa3ed49000-7ffa3ed4a000 r--p 00002000 08:25 36836105                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/etc.so
7ffa3ed4a000-7ffa3ed4b000 rw-p 00003000 08:25 36836105                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/etc.so
7ffa3ed4b000-7ffa3ed50000 r-xp 00000000 08:25 36836112                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/strscan.so
7ffa3ed50000-7ffa3ef4f000 ---p 00005000 08:25 36836112                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/strscan.so
7ffa3ef4f000-7ffa3ef50000 r--p 00004000 08:25 36836112                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/strscan.so
7ffa3ef50000-7ffa3ef51000 rw-p 00005000 08:25 36836112                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/strscan.so
7ffa3ef51000-7ffa3fac3000 rw-p 00000000 00:00 0 
7ffa3fac3000-7ffa3fad8000 r-xp 00000000 08:06 5443                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffa3fad8000-7ffa3fcd7000 ---p 00015000 08:06 5443                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffa3fcd7000-7ffa3fcd8000 r--p 00014000 08:06 5443                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffa3fcd8000-7ffa3fcd9000 rw-p 00015000 08:06 5443                       /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffa3fcd9000-7ffa3fdbb000 r-xp 00000000 08:07 137087                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffa3fdbb000-7ffa3ffba000 ---p 000e2000 08:07 137087                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffa3ffba000-7ffa3ffc2000 r--p 000e1000 08:07 137087                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffa3ffc2000-7ffa3ffc4000 rw-p 000e9000 08:07 137087                     /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffa3ffc4000-7ffa3ffd9000 rw-p 00000000 00:00 0 
7ffa3ffd9000-7ffa3ffed000 r-xp 00000000 08:25 43129779                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so
7ffa3ffed000-7ffa401ed000 ---p 00014000 08:25 43129779                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so
7ffa401ed000-7ffa401ee000 r--p 00014000 08:25 43129779                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so
7ffa401ee000-7ffa401ef000 rw-p 00015000 08:25 43129779                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/perftools.rb-2.0.1/perftools.so
7ffa401ef000-7ffa401f3000 rw-p 00000000 00:00 0 
7ffa401f3000-7ffa401f6000 r-xp 00000000 08:25 36836100                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so
7ffa401f6000-7ffa403f5000 ---p 00003000 08:25 36836100                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so
7ffa403f5000-7ffa403f6000 r--p 00002000 08:25 36836100                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so
7ffa403f6000-7ffa403f7000 rw-p 00003000 08:25 36836100                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so
7ffa403f7000-7ffa403f9000 r-xp 00000000 08:25 41291085                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7ffa403f9000-7ffa405f9000 ---p 00002000 08:25 41291085                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7ffa405f9000-7ffa405fa000 r--p 00002000 08:25 41291085                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7ffa405fa000-7ffa405fb000 rw-p 00003000 08:25 41291085                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7ffa405fb000-7ffa405fd000 r-xp 00000000 08:25 41159670                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7ffa405fd000-7ffa407fc000 ---p 00002000 08:25 41159670                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7ffa407fc000-7ffa407fd000 r--p 00001000 08:25 41159670                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7ffa407fd000-7ffa407fe000 rw-p 00002000 08:25 41159670                   /home/agrimm/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7ffa407fe000-7ffa40ee1000 r--p 00000000 08:07 134744                     /usr/lib/locale/locale-archive
7ffa40ee1000-7ffa41096000 r-xp 00000000 08:06 5872                       /lib/x86_64-linux-gnu/libc-2.15.so
7ffa41096000-7ffa41296000 ---p 001b5000 08:06 5872                       /lib/x86_64-linux-gnu/libc-2.15.so
7ffa41296000-7ffa4129a000 r--p 001b5000 08:06 5872                       /lib/x86_64-linux-gnu/libc-2.15.so
7ffa4129a000-7ffa4129c000 rw-p 001b9000 08:06 5872                       /lib/x86_64-linux-gnu/libc-2.15.so
7ffa4129c000-7ffa412a1000 rw-p 00000000 00:00 0 
7ffa412a1000-7ffa4139c000 r-xp 00000000 08:06 44256                      /lib/x86_64-linux-gnu/libm-2.15.so
7ffa4139c000-7ffa4159b000 ---p 000fb000 08:06 44256                      /lib/x86_64-linux-gnu/libm-2.15.so
7ffa4159b000-7ffa4159c000 r--p 000fa000 08:06 44256                      /lib/x86_64-linux-gnu/libm-2.15.so
7ffa4159c000-7ffa4159d000 rw-p 000fb000 08:06 44256                      /lib/x86_64-linux-gnu/libm-2.15.so
7ffa4159d000-7ffa415a6000 r-xp 00000000 08:06 44246                      /lib/x86_64-linux-gnu/libcrypt-2.15.so
7ffa415a6000-7ffa417a6000 ---p 00009000 08:06 44246                      /lib/x86_64-linux-gnu/libcrypt-2.15.so
7ffa417a6000-7ffa417a7000 r--p 00009000 08:06 44246                      /lib/x86_64-linux-gnu/libcrypt-2.15.so
7ffa417a7000-7ffa417a8000 rw-p 0000a000 08:06 44246                      /lib/x86_64-linux-gnu/libcrypt-2.15.so
7ffa417a8000-7ffa417d6000 rw-p 00000000 00:00 0 
7ffa417d6000-7ffa417d8000 r-xp 00000000 08:06 44260                      /lib/x86_64-linux-gnu/libdl-2.15.so
7ffa417d8000-7ffa419d8000 ---p 00002000 08:06 44260                      /lib/x86_64-linux-gnu/libdl-2.15.so
7ffa419d8000-7ffa419d9000 r--p 00002000 08:06 44260                      /lib/x86_64-linux-gnu/libdl-2.15.so
7ffa419d9000-7ffa419da000 rw-p 00003000 08:06 44260                      /lib/x86_64-linux-gnu/libdl-2.15.so
7ffa419da000-7ffa419e1000 r-xp 00000000 08:06 44252                      /lib/x86_64-linux-gnu/librt-2.15.so
7ffa419e1000-7ffa41be0000 ---p 00007000 08:06 44252                      /lib/x86_64-linux-gnu/librt-2.15.so
7ffa41be0000-7ffa41be1000 r--p 00006000 08:06 44252                      /lib/x86_64-linux-gnu/librt-2.15.so
7ffa41be1000-7ffa41be2000 rw-p 00007000 08:06 44252                      /lib/x86_64-linux-gnu/librt-2.15.so
7ffa41be2000-7ffa41bfa000 r-xp 00000000 08:06 44254                      /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffa41bfa000-7ffa41df9000 ---p 00018000 08:06 44254                      /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffa41df9000-7ffa41dfa000 r--p 00017000 08:06 44254                      /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffa41dfa000-7ffa41dfb000 rw-p 00018000 08:06 44254                      /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffa41dfb000-7ffa41dff000 rw-p 00000000 00:00 0 
7ffa41dff000-7ffa41e21000 r-xp 00000000 08:06 44257                      /lib/x86_64-linux-gnu/ld-2.15.so
7ffa41f00000-7ffa42006000 rw-p 00000000 00:00 0 
7ffa42012000-7ffa42013000 rw-p 00000000 00:00 0 
7ffa42013000-7ffa4201a000 r--s 00000000 08:07 335086                     /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7ffa4201a000-7ffa4201b000 rw-p 00000000 00:00 0 
7ffa4201b000-7ffa4201c000 ---p 00000000 00:00 0 
7ffa4201c000-7ffa42021000 rw-p 00000000 00:00 0 
7ffa42021000-7ffa42022000 r--p 00022000 08:06 44257                      /lib/x86_64-linux-gnu/ld-2.15.so
7ffa42022000-7ffa42024000 rw-p 00023000 08:06 44257                      /lib/x86_64-linux-gnu/ld-2.15.so
7ffa42024000-7ffa422a0000 r-xp 00000000 08:25 36705024                   /home/agrimm/.rbenv/versions/2.1.0/bin/ruby
7ffa424a0000-7ffa424a5000 r--p 0027c000 08:25 36705024                   /home/agrimm/.rbenv/versions/2.1.0/bin/ruby
7ffa424a5000-7ffa424a7000 rw-p 00281000 08:25 36705024                   /home/agrimm/.rbenv/versions/2.1.0/bin/ruby
7ffa424a7000-7ffa424cc000 rw-p 00000000 00:00 0 
7ffa439b2000-7ffa58452000 rw-p 00000000 00:00 0                          [heap]
7fff00c5d000-7fff00c7e000 rw-p 00000000 00:00 0                          [stack]
7fff00dff000-7fff00e00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]


[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

The command I ran was

CPUPROFILE=/tmp/my_app_profile \
  RUBYOPT="-r`gem which perftools | tail -1`" \
  ruby bin/bogus_filename.rb 2> bogus_error_filename.txt

And the version of Linux:

$ uname -a
Linux [redacted] 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
tmm1 commented

Try stackprof or rblineprof instead. perftools.rb can be made to work with 2.1 but I might deprecate it.

Thanks for the recommendations! Stackprof is matching my needs much better.