[#1611] set_trace_func/Array#fetch error — "Nathaniel Talbott" <nathaniel@...>

I've reduced the error I reported in ruby-talk:84013 to the following code:

17 messages 2003/10/11

Re: SystemStackError in embedding

From: Sentinel <sentinel27@...>
Date: 2003-10-19 08:36:56 UTC
List: ruby-core #1645
> Find the place in the Ruby source code that is generating this error
> message. Then make it print the stack start pointer, and the stack end
> pointer. Then try again and post the error message here.
>
> BTW I have a few more questions: do you call ruby_init() from main(), or
> from somewhere else? how big is the system stack when you do that?
>
> do this in the same function as ruby_init() :
>
> void * volatile hello = &hello;
> fprintf(stderr,"hello=%08lx\n",(long)hello);
>

Hi,

I am calling ruby_init from within the constructor of the XMRuby class
I put the 'fprintf' line both before the ruby_init and in the same function 
where the rb_protect, that generates the error, is called:

Output at ruby_init:
ruby_init. Stack pointer==bfffe5fc


Output at Error:
Error. Stack pointer==bfffecfc
Error in calling timer (6)
class = SystemStackError
message = stack level too deep
backtrace =     from /usr/lib/ruby/1.8/delegate.rb:36



Thank you for your help,


Peter


In This Thread