Skip to content

Instantly share code, notes, and snippets.

@hassan
Created September 14, 2013 21:24
Show Gist options
  • Save hassan/e7b40be4fc888b508bf9 to your computer and use it in GitHub Desktop.
Save hassan/e7b40be4fc888b508bf9 to your computer and use it in GitHub Desktop.
Using the posted example from the HTTP 0.5.0 announcement with ruby -v rubinius 2.0.0.n257 (2.0.0 f79d9909 2013-09-14 JI) [x86_64-darwin11.4.2]
> ruby fetcher.rb
E, [2013-09-14T14:04:31.964072 #44732] ERROR -- : HttpFetcher crashed!
ArgumentError: Data object has already been freed
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http/response_parser.rb:12:in `<< (add)'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http/client.rb:82:in `perform'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http/client.rb:58:in `request'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http/chainable.rb:50:in `request'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http/chainable.rb:10:in `get'
fetcher.rb:8:in `fetch'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/calls.rb:25:in `dispatch'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/calls.rb:67:in `dispatch'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:322:in `handle_message'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:416:in `task'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/tasks.rb:55:in `initialize'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/tasks/task_fiber.rb:13:in `create'
kernel/bootstrap/proc.rb:22:in `call'
W, [2013-09-14T14:04:31.966264 #44732] WARN -- : Terminating task: type=:call, meta={:method_name=>:fetch}, status=:iowait
W, [2013-09-14T14:04:31.966931 #44732] WARN -- : Terminating task: type=:call, meta={:method_name=>:fetch}, status=:iowait
An exception occurred running fetcher.rb
task was terminated (Celluloid::Task::TerminatedError)
User defined backtrace:
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/tasks/task_fiber.rb:32:in `terminate'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:404:in `cleanup'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:404:in `cleanup'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:375:in `shutdown'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:367:in `handle_crash'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:187:in `run'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/actor.rb:157:in `initialize'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/thread_handle.rb:13:in `initialize'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/internal_pool.rb:100:in `create'
(celluloid):0:in `remote procedure call'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/future.rb:104:in `value'
/Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid/future.rb:68:in `value'
/Users/hassan/projects/testcases/rubinius/bleeding/fetcher.rb:20:in `__script__'
fetcher.rb:18:in `__script__'
Backtrace:
Celluloid::Task(Celluloid::TaskFiber)#suspend at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/tasks.rb:90
Celluloid::Task.suspend at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/tasks.rb:24
Celluloid::IO::Reactor#wait at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/reactor.rb:44
Celluloid::IO::Reactor#wait_readable at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/reactor.rb:21
Celluloid::IO.wait_readable at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io.rb:35
Celluloid::IO::Stream(Celluloid::IO::TCPSocket)#wait_readable at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/stream.rb:33
{ } in Celluloid::IO::Stream(Celluloid::IO::TCPSocket)#sysread at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/stream.rb:46
Celluloid::IO::Stream::Latch#synchronize at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/stream.rb:390
Celluloid::IO::Stream(Celluloid::IO::TCPSocket)#sysread at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/stream.rb:42
Celluloid::IO::Stream(Celluloid::IO::TCPSocket)#readpartial at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-io-0.15.0/lib
/celluloid/io/stream.rb:128
HTTP::Client#perform at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http
/client.rb:82
HTTP::Client#request at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http
/client.rb:58
HTTP::Chainable(Module)#request at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http
/chainable.rb:50
HTTP::Chainable(Module)#get at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/http-0.5.0/lib/http
/chainable.rb:10
HttpFetcher#fetch at fetcher.rb:8
Celluloid::Call(Celluloid::SyncCall)#dispatch at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/calls.rb:25
Celluloid::SyncCall#dispatch at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/calls.rb:67
{ } in Celluloid::Actor#handle_message at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/actor.rb:322
{ } in Celluloid::Actor#task at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/actor.rb:416
{ } in Celluloid::Task(Celluloid::TaskFiber)#initialize at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/tasks.rb:55
{ } in Celluloid::TaskFiber#create at /Users/hassan/.rvm/gems/rbx-head@rails4/gems/celluloid-0.15.1/lib/celluloid
/tasks/task_fiber.rb:13
Proc#call at kernel/bootstrap/proc.rb:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment