From: Yukihiro Matsumoto Date: 2006-02-19T21:53:51+09:00 Subject: Re: SystemStackError when rb_define_module_function() * 3 Hi, In message "Re: SystemStackError when rb_define_module_function() * 3" on Sat, 18 Feb 2006 01:13:29 +0900, Suraj Kurapati writes: |In particular, the error occurs when I register a third module |function with Ruby C API inside line 25 of the file |"trunk/src/RVPI.cin": Did SystemStackError happened during rb_define_module_function()? What OS are you using? There's no explicit limitation for number of rb_define_module_function() calls, except for OS resource limit. SystemStackError is caused when call stack is too deep, and the max depth is calculated in Init_stack(). Since you are using embedded Ruby, you may fail to call Init_stack() in the interpreter initialization. matz.