Skip to content

Instantly share code, notes, and snippets.

@bjfish
Created December 24, 2019 18:34
Show Gist options
  • Save bjfish/8d4f1441f561038cef02c8fed9da876d to your computer and use it in GitHub Desktop.
Save bjfish/8d4f1441f561038cef02c8fed9da876d to your computer and use it in GitHub Desktop.
with cellulloid
behaves like an snmp client
#get
Threads and backtraces:
#<Thread:0x6300@<foreign thread> run>
#<Celluloid::Thread:0x6308@/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/group/spawner.rb:47 sleep>
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/truffle/truffle/cext_ruby.rb:37:in `closed?'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-io-0.17.3/lib/celluloid/io/reactor.rb:52:in `wait'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-io-0.17.3/lib/celluloid/io/reactor.rb:21:in `wait_readable'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-io-0.17.3/lib/celluloid/io.rb:54:in `wait_readable'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-io-0.17.3/lib/celluloid/io/udp_socket.rb:28:in `wait_readable'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/support/celluloid.rb:46:in `block in wait'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid.rb:414:in `block in timeout'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/actor.rb:255:in `timeout'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid.rb:413:in `timeout'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/support/celluloid.rb:45:in `wait'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/session.rb:113:in `block in perform_io'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/session.rb:109:in `loop'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/session.rb:109:in `perform_io'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/session.rb:100:in `recv'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/session.rb:90:in `send'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/session.rb:40:in `send'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/v3_session.rb:23:in `send'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/client.rb:56:in `block in get'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/client.rb:156:in `handle_retries'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/lib/netsnmp/client.rb:56:in `get'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/support/request_examples.rb:17:in `value'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:317:in `block (2 levels) in let'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:157:in `block (3 levels) in fetch_or_store'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:157:in `fetch'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:157:in `block (2 levels) in fetch_or_store'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-support-3.9.0/lib/rspec/support/reentrant_mutex.rb:23:in `synchronize'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:156:in `block in fetch_or_store'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:155:in `fetch'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:155:in `fetch_or_store'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb:317:in `value'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/support/request_examples.rb:19:in `block (3 levels) in <top (required)>'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:257:in `instance_exec'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:257:in `block in run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:503:in `block in with_around_and_singleton_context_hooks'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:460:in `block in with_around_example_hooks'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb:472:in `block in run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb:612:in `block in run_around_example_hooks_for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:345:in `call'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:345:in `call'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/handlers/celluloid_spec.rb:35:in `block (3 levels) in <top (required)>'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/support/celluloid.rb:10:in `wrap'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/calls.rb:28:in `dispatch'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/call/sync.rb:16:in `dispatch'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/cell.rb:50:in `block in dispatch'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/cell.rb:76:in `block in task'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/actor.rb:339:in `block in task'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/task.rb:44:in `block in initialize'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/task/fibered.rb:14:in `block in create'
#<Thread:0x6318@main run>
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/mailbox.rb:63:in `wait'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/mailbox.rb:63:in `block in check'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/timers-4.3.0/lib/timers/wait.rb:20:in `block in for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/timers-4.3.0/lib/timers/wait.rb:19:in `loop'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/timers-4.3.0/lib/timers/wait.rb:19:in `for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/mailbox.rb:58:in `check'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/mailbox.rb:77:in `block in receive'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/timers-4.3.0/lib/timers/wait.rb:20:in `block in for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/timers-4.3.0/lib/timers/wait.rb:19:in `loop'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/timers-4.3.0/lib/timers/wait.rb:19:in `for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/mailbox.rb:76:in `receive'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/call/sync.rb:50:in `wait'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid.rb:141:in `suspend'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/call/sync.rb:41:in `response'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/call/sync.rb:45:in `value'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/proxy/sync.rb:22:in `method_missing'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/support/celluloid.rb:20:in `within_io_actor'
/Users/brandonfish/Documents/oracle-workspace/projects/ruby-netsnmp/spec/handlers/celluloid_spec.rb:35:in `block (2 levels) in <top (required)>'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:450:in `instance_exec'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:450:in `instance_exec'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb:381:in `execute_with'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb:614:in `block (2 levels) in run_around_example_hooks_for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:345:in `call'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:345:in `call'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb:613:in `run_around_example_hooks_for'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb:472:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:460:in `with_around_example_hooks'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:503:in `with_around_and_singleton_context_hooks'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example.rb:254:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:633:in `block in run_examples'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:629:in `map'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:629:in `run_examples'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:595:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:596:in `block in run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:596:in `map'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:596:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:596:in `block in run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:596:in `map'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb:596:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:121:in `block (3 levels) in run_specs'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:121:in `map'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:121:in `block (2 levels) in run_specs'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/configuration.rb:2031:in `with_suite_hooks'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:116:in `block in run_specs'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/reporter.rb:74:in `report'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:115:in `run_specs'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:89:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:71:in `run'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb:45:in `invoke'
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/rspec-core-3.9.0/exe/rspec:4:in `<top (required)>'
/Users/brandonfish/Documents/oracle-workspace/gem_home/bin/rspec:23:in `load'
/Users/brandonfish/Documents/oracle-workspace/gem_home/bin/rspec:23:in `load'
/Users/brandonfish/Documents/oracle-workspace/gem_home/bin/rspec:23:in `<top (required)>'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli/exec.rb:74:in `load'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli/exec.rb:74:in `load'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli/exec.rb:74:in `kernel_load'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli/exec.rb:28:in `run'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli.rb:463:in `exec'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli.rb:27:in `dispatch'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/cli.rb:18:in `start'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/bin/bundle:48:in `block in <main>'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/bin/bundle:40:in `<main>'
#<Thread:0x6328@Ruby-reference-processor sleep>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment