Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault when assigning DocumentFragment.children to Document.root #1900

Closed
whirsch-pubfactory opened this issue Apr 29, 2019 · 3 comments
Closed
Labels
help wanted topic/memory Segfaults, memory leaks, valgrind testing, etc.

Comments

@whirsch-pubfactory
Copy link

Describe the bug

I was playing around with nokogiri, and managed to segfault it by assigning DocumentFragment.children to Document.root, rather than DocumentFragment.children[0]

To Reproduce

require 'nokogiri'

a = Nokogiri::XML::Document.new
b = Nokogiri::XML::DocumentFragment.new a
a.root = b.children

Expected behavior

It should fail with an argument error like all other types passed into it do.

Environment

# Nokogiri (1.10.3)
    ---
    warnings: []
    nokogiri: 1.10.3
    ruby:
      version: 2.6.3
      platform: x86_64-linux
      description: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
      engine: ruby
    libxml:
      binding: extension
      source: packaged
      libxml2_path: "/home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/ports/x86_64-pc-linux-gnu/libxml2/2.9.9"
      libxslt_path: "/home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/ports/x86_64-pc-linux-gnu/libxslt/1.1.33"
      libxml2_patches:
      - 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
      - 0002-Remove-script-macro-support.patch
      - 0003-Update-entities-to-remove-handling-of-ssi.patch
      libxslt_patches:
      - 0001-Fix-security-framework-bypass.patch
      compiled: 2.9.9
      loaded: 2.9.9

Additional context

segfault.rb:5: [BUG] Segmentation fault at 0x0000000000000019
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0014 e:000013 CFUNC  :root=
c:0002 p:0054 s:0009 E:002480 EVAL   segfault.rb:5 [FINISH]
c:0001 p:0000 s:0003 E:001550 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
segfault.rb:5:in `<main>'
segfault.rb:5:in `root='

-- Machine register context ------------------------------------------------
 RIP: 0x00007fb0b7fd8a9f RBP: 0x00007ffd1e862890 RSP: 0x00007ffd1e862840
 RAX: 0x0000000000000001 RBX: 0x000055665d411e00 RCX: 0x0000000002a19626
 RDX: 0x000055665d4024c0 RDI: 0x000055665d4024c0 RSI: 0x00000000267ccb68
  R8: 0x00007fb0bb295e98  R9: 0x0000000000000010 R10: 0x0000000000000771
 R11: 0x00007fb0b7fd8eac R12: 0x000055665d3b5fc0 R13: 0x0000000000000000
 R14: 0x000055665d2a1a10 R15: 0x000055665d411f90 EFL: 0x0000000000010202

-- C level backtrace information -------------------------------------------
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(rb_vm_bugreport+0x53c) [0x55665c15cffc] vm_dump.c:715
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(rb_bug_context+0xe4) [0x55665c1505d4] error.c:609
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(sigsegv+0x42) [0x55665c023cd2] signal.c:998
/lib/x86_64-linux-gnu/libpthread.so.0(__restore_rt+0x0) [0x7fb0bbe770e0]
/home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so(0x7fb0b7fd8a9f) [0x7fb0b7fd8a9f]
/home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so(0x7fb0b7fd8ed9) [0x7fb0b7fd8ed9]
/home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so(set_root+0x5b) [0x7fb0b7f81fab] xml_document.c:144
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(vm_call_cfunc+0x10f) [0x55665c09ce6f] vm_insnhelper.c:1908
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(vm_call_method+0xf3) [0x55665c0a9253] vm_insnhelper.c:2397
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(vm_exec_core+0x147) [0x55665c0afd57] insns.def:765
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(rb_vm_exec+0xa9) [0x55665c0a55b9] vm.c:1885
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(ruby_exec_internal+0xd7) [0x55665bf09f87] eval.c:262
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(ruby_exec_node+0x11) [0x55665bf0ea5b] eval.c:326
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(ruby_run_node) eval.c:318
/home/whirsch/.rbenv/versions/2.6.3/bin/ruby(main+0x5b) [0x55665bf099cb] ./main.c:42

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

* Loaded script: segfault.rb

* Loaded features:

    0 enumerator.so
    1 thread.rb
    2 rational.so
    3 complex.so
    4 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/encdb.so
    5 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/trans/transdb.so
    6 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/rbconfig.rb
    7 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/compatibility.rb
    8 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/defaults.rb
    9 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/deprecate.rb
   10 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/errors.rb
   11 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/version.rb
   12 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/requirement.rb
   13 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/platform.rb
   14 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/basic_specification.rb
   15 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/stub_specification.rb
   16 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/delegate.rb
   17 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/rfc2396_parser.rb
   18 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/rfc3986_parser.rb
   19 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/common.rb
   20 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/generic.rb
   21 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/file.rb
   22 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/ftp.rb
   23 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/http.rb
   24 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/https.rb
   25 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/ldap.rb
   26 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/ldaps.rb
   27 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri/mailto.rb
   28 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/uri.rb
   29 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/specification_policy.rb
   30 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/util/list.rb
   31 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/stringio.so
   32 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/specification.rb
   33 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/exceptions.rb
   34 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/util.rb
   35 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/bundler_version_finder.rb
   36 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/dependency.rb
   37 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_gem.rb
   38 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/monitor.rb
   39 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb
   40 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_warn.rb
   41 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems.rb
   42 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/path_support.rb
   43 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/version.rb
   44 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/core_ext/name_error.rb
   45 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/levenshtein.rb
   46 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/jaro_winkler.rb
   47 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checker.rb
   48 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
   49 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
   50 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
   51 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
   52 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/key_error_checker.rb
   53 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/null_checker.rb
   54 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean/formatters/plain_formatter.rb
   55 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib/did_you_mean.rb
   56 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/version.rb
   57 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/compatibility_guard.rb
   58 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/pathname.so
   59 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/pathname.rb
   60 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/constants.rb
   61 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/text.rb
   62 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/user_interaction.rb
   63 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/etc.so
   64 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/config_file.rb
   65 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/rubygems_integration.rb
   66 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/current_ruby.rb
   67 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/shared_helpers.rb
   68 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/fileutils/lib/fileutils.rb
   69 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendored_fileutils.rb
   70 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/errors.rb
   71 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/environment_preserver.rb
   72 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/plugin/api.rb
   73 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/plugin.rb
   74 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source/git.rb
   75 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source/installed.rb
   76 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source/specific_file.rb
   77 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source/local.rb
   78 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source/lock.rb
   79 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source/vendor.rb
   80 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/source.rb
   81 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/gem_helpers.rb
   82 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/match_platform.rb
   83 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/rubygems_ext.rb
   84 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/build_metadata.rb
   85 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler.rb
   86 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/settings.rb
   87 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/yaml_serializer.rb
   88 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/ext/builder.rb
   89 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/feature_flag.rb
   90 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source.rb
   91 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source/path.rb
   92 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source/git.rb
   93 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source/rubygems.rb
   94 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/lockfile_parser.rb
   95 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/set.rb
   96 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/definition.rb
   97 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/dependency.rb
   98 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/ruby_dsl.rb
   99 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/dsl.rb
  100 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source_list.rb
  101 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source/metadata.rb
  102 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/ruby_version.rb
  103 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/lazy_specification.rb
  104 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/index.rb
  105 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb
  106 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/forwardable/impl.rb
  107 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/forwardable.rb
  108 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/spec_set.rb
  109 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/compatibility.rb
  110 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb
  111 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb
  112 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/errors.rb
  113 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
  114 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb
  115 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb
  116 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb
  117 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb
  118 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb
  119 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb
  120 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb
  121 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb
  122 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb
  123 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/state.rb
  124 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb
  125 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb
  126 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/resolution.rb
  127 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/resolver.rb
  128 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb
  129 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendor/molinillo/lib/molinillo.rb
  130 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/vendored_molinillo.rb
  131 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/resolver/spec_group.rb
  132 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/resolver.rb
  133 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/source/gemspec.rb
  134 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/runtime.rb
  135 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/dep_proxy.rb
  136 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/ui.rb
  137 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/ui/silent.rb
  138 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/ui/rg_proxy.rb
  139 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/remote_specification.rb
  140 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/stub_specification.rb
  141 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/endpoint_specification.rb
  142 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/bundler/setup.rb
  143 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so
  144 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/version.rb
  145 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/syntax_error.rb
  146 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/pp/node.rb
  147 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/pp/character_data.rb
  148 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/pp.rb
  149 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/parse_options.rb
  150 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/sax/document.rb
  151 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/sax/parser_context.rb
  152 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/sax/parser.rb
  153 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/sax/push_parser.rb
  154 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/sax.rb
  155 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/searchable.rb
  156 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/node/save_options.rb
  157 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/node.rb
  158 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/attribute_decl.rb
  159 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/element_decl.rb
  160 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/element_content.rb
  161 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/character_data.rb
  162 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/namespace.rb
  163 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/attr.rb
  164 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/dtd.rb
  165 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/cdata.rb
  166 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/text.rb
  167 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/document.rb
  168 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/document_fragment.rb
  169 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/processing_instruction.rb
  170 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/node_set.rb
  171 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/syntax_error.rb
  172 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/xpath/syntax_error.rb
  173 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/xpath.rb
  174 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/xpath_context.rb
  175 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/builder.rb
  176 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/reader.rb
  177 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/notation.rb
  178 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/entity_decl.rb
  179 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/entity_reference.rb
  180 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/schema.rb
  181 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml/relax_ng.rb
  182 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xml.rb
  183 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt/stylesheet.rb
  184 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/xslt.rb
  185 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/entity_lookup.rb
  186 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/document.rb
  187 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/document_fragment.rb
  188 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/sax/parser_context.rb
  189 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/sax/parser.rb
  190 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/sax/push_parser.rb
  191 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/element_description.rb
  192 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/element_description_defaults.rb
  193 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html.rb
  194 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/decorators/slop.rb
  195 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css/node.rb
  196 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css/xpath_visitor.rb
  197 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/racc/cparse.so
  198 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/racc/parser.rb
  199 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css/parser_extras.rb
  200 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css/parser.rb
  201 /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/strscan.so
  202 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css/tokenizer.rb
  203 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css/syntax_error.rb
  204 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/css.rb
  205 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/html/builder.rb
  206 /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri.rb

* Process memory map:

55665bee3000-55665c250000 r-xp 00000000 fe:01 3021716                    /home/whirsch/.rbenv/versions/2.6.3/bin/ruby
55665c44f000-55665c454000 r--p 0036c000 fe:01 3021716                    /home/whirsch/.rbenv/versions/2.6.3/bin/ruby
55665c454000-55665c455000 rw-p 00371000 fe:01 3021716                    /home/whirsch/.rbenv/versions/2.6.3/bin/ruby
55665c455000-55665c466000 rw-p 00000000 00:00 0 
55665cab1000-55665d495000 rw-p 00000000 00:00 0                          [heap]
7fb0b5e61000-7fb0b5ffe000 r--s 00000000 fe:01 49676793                   /lib/x86_64-linux-gnu/libc-2.24.so
7fb0b5ffe000-7fb0b605f000 rw-p 00000000 00:00 0 
7fb0b605f000-7fb0b6305000 r--s 00000000 fe:01 663718                     /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so
7fb0b6305000-7fb0b74e0000 r--s 00000000 fe:01 3021716                    /home/whirsch/.rbenv/versions/2.6.3/bin/ruby
7fb0b74e0000-7fb0b74f6000 r-xp 00000000 fe:01 49678188                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb0b74f6000-7fb0b76f5000 ---p 00016000 fe:01 49678188                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb0b76f5000-7fb0b76f6000 r--p 00015000 fe:01 49678188                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb0b76f6000-7fb0b76f7000 rw-p 00016000 fe:01 49678188                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb0b76f7000-7fb0b770e000 r-xp 00000000 fe:01 39848750                   /usr/lib/x86_64-linux-gnu/gconv/CP932.so
7fb0b770e000-7fb0b790d000 ---p 00017000 fe:01 39848750                   /usr/lib/x86_64-linux-gnu/gconv/CP932.so
7fb0b790d000-7fb0b790e000 r--p 00016000 fe:01 39848750                   /usr/lib/x86_64-linux-gnu/gconv/CP932.so
7fb0b790e000-7fb0b790f000 rw-p 00017000 fe:01 39848750                   /usr/lib/x86_64-linux-gnu/gconv/CP932.so
7fb0b790f000-7fb0b7916000 r-xp 00000000 fe:01 3412637                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/strscan.so
7fb0b7916000-7fb0b7b15000 ---p 00007000 fe:01 3412637                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/strscan.so
7fb0b7b15000-7fb0b7b16000 r--p 00006000 fe:01 3412637                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/strscan.so
7fb0b7b16000-7fb0b7b17000 rw-p 00007000 fe:01 3412637                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/strscan.so
7fb0b7b17000-7fb0b7b1b000 r-xp 00000000 fe:01 4718961                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/racc/cparse.so
7fb0b7b1b000-7fb0b7d1a000 ---p 00004000 fe:01 4718961                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/racc/cparse.so
7fb0b7d1a000-7fb0b7d1b000 r--p 00003000 fe:01 4718961                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/racc/cparse.so
7fb0b7d1b000-7fb0b7d1c000 rw-p 00004000 fe:01 4718961                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/racc/cparse.so
7fb0b7d1c000-7fb0b7d41000 r-xp 00000000 fe:01 49676321                   /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fb0b7d41000-7fb0b7f40000 ---p 00025000 fe:01 49676321                   /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fb0b7f40000-7fb0b7f41000 r--p 00024000 fe:01 49676321                   /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fb0b7f41000-7fb0b7f42000 rw-p 00025000 fe:01 49676321                   /lib/x86_64-linux-gnu/liblzma.so.5.2.2
7fb0b7f42000-7fb0b8163000 r-xp 00000000 fe:01 663718                     /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so
7fb0b8163000-7fb0b8363000 ---p 00221000 fe:01 663718                     /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so
7fb0b8363000-7fb0b836b000 r--p 00221000 fe:01 663718                     /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so
7fb0b836b000-7fb0b836f000 rw-p 00229000 fe:01 663718                     /home/whirsch/source/nokogiri-bug/vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.3/lib/nokogiri/nokogiri.so
7fb0b836f000-7fb0b8371000 rw-p 00000000 00:00 0 
7fb0b8371000-7fb0b8377000 r-xp 00000000 fe:01 3412653                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/etc.so
7fb0b8377000-7fb0b8576000 ---p 00006000 fe:01 3412653                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/etc.so
7fb0b8576000-7fb0b8577000 r--p 00005000 fe:01 3412653                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/etc.so
7fb0b8577000-7fb0b8578000 rw-p 00006000 fe:01 3412653                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/etc.so
7fb0b8578000-7fb0b85d9000 rw-p 00000000 00:00 0 
7fb0b85d9000-7fb0b85e0000 r-xp 00000000 fe:01 3412645                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/pathname.so
7fb0b85e0000-7fb0b87df000 ---p 00007000 fe:01 3412645                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/pathname.so
7fb0b87df000-7fb0b87e0000 r--p 00006000 fe:01 3412645                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/pathname.so
7fb0b87e0000-7fb0b87e1000 rw-p 00007000 fe:01 3412645                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/pathname.so
7fb0b87e1000-7fb0b87e9000 r-xp 00000000 fe:01 3412650                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/stringio.so
7fb0b87e9000-7fb0b89e9000 ---p 00008000 fe:01 3412650                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/stringio.so
7fb0b89e9000-7fb0b89ea000 r--p 00008000 fe:01 3412650                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/stringio.so
7fb0b89ea000-7fb0b89eb000 rw-p 00009000 fe:01 3412650                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/stringio.so
7fb0b89eb000-7fb0b89ed000 r-xp 00000000 fe:01 4718917                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/trans/transdb.so
7fb0b89ed000-7fb0b8bed000 ---p 00002000 fe:01 4718917                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/trans/transdb.so
7fb0b8bed000-7fb0b8bee000 r--p 00002000 fe:01 4718917                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/trans/transdb.so
7fb0b8bee000-7fb0b8bef000 rw-p 00003000 fe:01 4718917                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/trans/transdb.so
7fb0b8bef000-7fb0b8bf1000 r-xp 00000000 fe:01 4718936                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/encdb.so
7fb0b8bf1000-7fb0b8df0000 ---p 00002000 fe:01 4718936                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/encdb.so
7fb0b8df0000-7fb0b8df1000 r--p 00001000 fe:01 4718936                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/encdb.so
7fb0b8df1000-7fb0b8df2000 rw-p 00002000 fe:01 4718936                    /home/whirsch/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-linux/enc/encdb.so
7fb0b8df2000-7fb0baefc000 rw-p 00000000 00:00 0 
7fb0baefc000-7fb0bb091000 r-xp 00000000 fe:01 49676793                   /lib/x86_64-linux-gnu/libc-2.24.so
7fb0bb091000-7fb0bb291000 ---p 00195000 fe:01 49676793                   /lib/x86_64-linux-gnu/libc-2.24.so
7fb0bb291000-7fb0bb295000 r--p 00195000 fe:01 49676793                   /lib/x86_64-linux-gnu/libc-2.24.so
7fb0bb295000-7fb0bb297000 rw-p 00199000 fe:01 49676793                   /lib/x86_64-linux-gnu/libc-2.24.so
7fb0bb297000-7fb0bb29b000 rw-p 00000000 00:00 0 
7fb0bb29b000-7fb0bb39e000 r-xp 00000000 fe:01 49676805                   /lib/x86_64-linux-gnu/libm-2.24.so
7fb0bb39e000-7fb0bb59d000 ---p 00103000 fe:01 49676805                   /lib/x86_64-linux-gnu/libm-2.24.so
7fb0bb59d000-7fb0bb59e000 r--p 00102000 fe:01 49676805                   /lib/x86_64-linux-gnu/libm-2.24.so
7fb0bb59e000-7fb0bb59f000 rw-p 00103000 fe:01 49676805                   /lib/x86_64-linux-gnu/libm-2.24.so
7fb0bb59f000-7fb0bb5a7000 r-xp 00000000 fe:01 49676798                   /lib/x86_64-linux-gnu/libcrypt-2.24.so
7fb0bb5a7000-7fb0bb7a7000 ---p 00008000 fe:01 49676798                   /lib/x86_64-linux-gnu/libcrypt-2.24.so
7fb0bb7a7000-7fb0bb7a8000 r--p 00008000 fe:01 49676798                   /lib/x86_64-linux-gnu/libcrypt-2.24.so
7fb0bb7a8000-7fb0bb7a9000 rw-p 00009000 fe:01 49676798                   /lib/x86_64-linux-gnu/libcrypt-2.24.so
7fb0bb7a9000-7fb0bb7d7000 rw-p 00000000 00:00 0 
7fb0bb7d7000-7fb0bb7da000 r-xp 00000000 fe:01 49676801                   /lib/x86_64-linux-gnu/libdl-2.24.so
7fb0bb7da000-7fb0bb9d9000 ---p 00003000 fe:01 49676801                   /lib/x86_64-linux-gnu/libdl-2.24.so
7fb0bb9d9000-7fb0bb9da000 r--p 00002000 fe:01 49676801                   /lib/x86_64-linux-gnu/libdl-2.24.so
7fb0bb9da000-7fb0bb9db000 rw-p 00003000 fe:01 49676801                   /lib/x86_64-linux-gnu/libdl-2.24.so
7fb0bb9db000-7fb0bba5c000 r-xp 00000000 fe:01 39850797                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7fb0bba5c000-7fb0bbc5c000 ---p 00081000 fe:01 39850797                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7fb0bbc5c000-7fb0bbc5d000 r--p 00081000 fe:01 39850797                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7fb0bbc5d000-7fb0bbc5e000 rw-p 00082000 fe:01 39850797                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.2
7fb0bbc5e000-7fb0bbc65000 r-xp 00000000 fe:01 49676861                   /lib/x86_64-linux-gnu/librt-2.24.so
7fb0bbc65000-7fb0bbe64000 ---p 00007000 fe:01 49676861                   /lib/x86_64-linux-gnu/librt-2.24.so
7fb0bbe64000-7fb0bbe65000 r--p 00006000 fe:01 49676861                   /lib/x86_64-linux-gnu/librt-2.24.so
7fb0bbe65000-7fb0bbe66000 rw-p 00007000 fe:01 49676861                   /lib/x86_64-linux-gnu/librt-2.24.so
7fb0bbe66000-7fb0bbe7e000 r-xp 00000000 fe:01 49676857                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fb0bbe7e000-7fb0bc07d000 ---p 00018000 fe:01 49676857                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fb0bc07d000-7fb0bc07e000 r--p 00017000 fe:01 49676857                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fb0bc07e000-7fb0bc07f000 rw-p 00018000 fe:01 49676857                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fb0bc07f000-7fb0bc083000 rw-p 00000000 00:00 0 
7fb0bc083000-7fb0bc09c000 r-xp 00000000 fe:01 49676378                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb0bc09c000-7fb0bc29b000 ---p 00019000 fe:01 49676378                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb0bc29b000-7fb0bc29c000 r--p 00018000 fe:01 49676378                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb0bc29c000-7fb0bc29d000 rw-p 00019000 fe:01 49676378                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fb0bc29d000-7fb0bc2c0000 r-xp 00000000 fe:01 49676292                   /lib/x86_64-linux-gnu/ld-2.24.so
7fb0bc2f0000-7fb0bc48b000 r--p 00000000 fe:01 39861030                   /usr/lib/locale/locale-archive
7fb0bc48b000-7fb0bc491000 rw-p 00000000 00:00 0 
7fb0bc497000-7fb0bc4b9000 r--s 00000000 fe:01 49676857                   /lib/x86_64-linux-gnu/libpthread-2.24.so
7fb0bc4b9000-7fb0bc4c0000 r--s 00000000 fe:01 39883666                   /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7fb0bc4c0000-7fb0bc4c1000 r--p 00023000 fe:01 49676292                   /lib/x86_64-linux-gnu/ld-2.24.so
7fb0bc4c1000-7fb0bc4c2000 rw-p 00024000 fe:01 49676292                   /lib/x86_64-linux-gnu/ld-2.24.so
7fb0bc4c2000-7fb0bc4c3000 rw-p 00000000 00:00 0 
7ffd1e066000-7ffd1e865000 rw-p 00000000 00:00 0                          [stack]
7ffd1e9c9000-7ffd1e9cb000 r--p 00000000 00:00 0                          [vvar]
7ffd1e9cb000-7ffd1e9cd000 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: https://www.ruby-lang.org/bugreport.html

In the unlikely event it matters, I'm running through rbenv exec bundle exec ruby segfault.rb

@flavorjones
Copy link
Member

Thanks for reporting. I will look into it in the next couple of days. In the meantime, if you tell me what you're trying to do I may be able to suggest a workaround.

@flavorjones flavorjones added the topic/memory Segfaults, memory leaks, valgrind testing, etc. label Feb 2, 2020
@flavorjones flavorjones added this to the v1.11.0 milestone Mar 1, 2020
@flavorjones
Copy link
Member

Note that the JRuby implementation does the right thing by raising an exception; we need to do the same in the CRuby implementation. Alternatively, we should have a Ruby wrapper for the extension implementation that does this type check consistently across both. Targetting v1.11.0.

@flavorjones
Copy link
Member

Sorry for the delay, this will be fixed in the next release (see #2210).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted topic/memory Segfaults, memory leaks, valgrind testing, etc.
Projects
None yet
Development

No branches or pull requests

2 participants