[#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: Mathieu Bouchard <matju@...>
Date: 2003-10-19 01:00:04 UTC
List: ruby-core #1644
On Sun, 19 Oct 2003, Sentinel wrote:

> my apprication loads the ruby interpreter jsut find, and calling up the 
> procedures works most of the time.Error in calling timer (6)
> But sometimes my funccall jist croaks, and throws up this:
> Error in calling timer (6)
> class = SystemStackError
> message = stack level too deep
> backtrace =     from /usr/lib/ruby/1.8/delegate.rb:36
> this stack backtrace does not look like a stackoverflow to me...
> any pointers to where to look ?

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);

________________________________________________________________
Mathieu Bouchard                       http://artengine.ca/matju


In This Thread