[Backgroundrb-devel] 'stack level too deep' error
hemant kumar
gethemant at gmail.com
Fri Dec 26 12:36:36 EST 2008
Yes, this has been fixed long back in recent versions of Packet library.
The problem is, the protocol parser used in 0.1.6 is recursive and
throws StackLevel too deep errors. Recent versions come with iterative
parser and hence do not have this problem.
On Fri, 2008-12-26 at 09:04 -0800, Raghu Srinivasan wrote:
> What might be causing this error? I see it once in 2-3 days and it
> goes away when I restart backgroundrb. Quoted below is
> my backgroundrb_server_11007.log file. Can I do anything to avoid
> this?
> Thanks,
> Raghu
>
> ==================================================================================
> /usr/lib/ruby/1.8/monitor.rb:224:in `mon_exit': stack level too deep
> (SystemStackError)
> from /usr/lib/ruby/1.8/monitor.rb:244:in `synchronize'
> from /usr/lib/ruby/1.8/logger.rb:496:in `write'
> from /usr/lib/ruby/1.8/logger.rb:326:in `add'
> from /usr/lib/ruby/1.8/logger.rb:374:in `info'
>
> from /home/raghus/public_html/feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/log_worker.rb:17:in `process_request'
>
> from /home/raghus/public_html/feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/log_worker.rb:10:in `receive_data'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:56:in `receive_internal_data'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_parser.rb:38:in `call'
> ... 13 levels...
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47:in `new'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47
> from /usr/bin/packet_worker_runner:19:in `load'
> from /usr/bin/packet_worker_runner:19
> /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_nbio.rb:41:in `write_once': Packet::DisconnectError (Packet::DisconnectError)
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_nbio.rb:52:in `write_and_schedule'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_nbio.rb:16:in `each_with_index'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_nbio.rb:51:in `each'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_nbio.rb:51:in `each_with_index'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_nbio.rb:51:in `write_and_schedule'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_core.rb:166:in `handle_write_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_core.rb:163:in `each'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_core.rb:163:in `handle_write_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_core.rb:135:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_core.rb:126:in `loop'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_core.rb:126:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/lib/packet/packet_master.rb:21:in `run'
>
> from /home/raghus/public_html/feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/master_worker.rb:167:in `initialize'
> from ./script/backgroundrb:46:in `new'
> from ./script/backgroundrb:46
> /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_nbio.rb:25:in `read_data': Packet::DisconnectError (Packet::DisconnectError)
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:49:in `handle_internal_messages'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:179:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `each'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:133:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `loop'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:21:in `start_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:33:in `load_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:26:in `initialize'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47:in `new'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47
> from /usr/bin/packet_worker_runner:19:in `load'
> from /usr/bin/packet_worker_runner:19
> /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_nbio.rb:25:in `read_data': Packet::DisconnectError (Packet::DisconnectError)
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:49:in `handle_internal_messages'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:179:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `each'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:133:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `loop'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:21:in `start_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:33:in `load_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:26:in `initialize'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47:in `new'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47
> from /usr/bin/packet_worker_runner:19:in `load'
> from /usr/bin/packet_worker_runner:19
> /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_nbio.rb:25:in `read_data': Packet::DisconnectError (Packet::DisconnectError)
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:49:in `handle_internal_messages'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:179:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `each'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:133:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `loop'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:21:in `start_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:33:in `load_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:26:in `initialize'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47:in `new'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47
> from /usr/bin/packet_worker_runner:19:in `load'
> from /usr/bin/packet_worker_runner:19
> /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_nbio.rb:25:in `read_data': Packet::DisconnectError (Packet::DisconnectError)
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:49:in `handle_internal_messages'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:179:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `each'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:177:in `handle_read_event'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:133:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `loop'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_core.rb:126:in `start_reactor'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/../lib/packet/packet_worker.rb:21:in `start_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:33:in `load_worker'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:26:in `initialize'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47:in `new'
>
> from /usr/lib/ruby/gems/1.8/gems/packet-0.1.6/bin/packet_worker_runner:47
> from /usr/bin/packet_worker_runner:19:in `load'
> from /usr/bin/packet_worker_runner:19
>
>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
More information about the Backgroundrb-devel
mailing list