How does your calling code to get_all_args look like?
I can't repeat the bug.
/ Mirar
Previous text:
2004-02-28 04:30: Subject: Re: Problem with function prototypes
On Fri, Feb 27, 2004 at 11:45:03PM +0100, Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
to whip out gdb and find out why the check for too few arguments on line 381 in src/module_support.c doesn't work.
This is quite easy, why it doesn't - since before this check there is another (line 373):
if (ret <= args)
and, of course, value of "ret" is 0, value of "args" is 0 too, so... :)
I guess, the number of arguments must be checked first... But I wonder why this bug doesn't happen in 7.4 (same check order)...
Also, compiling pike with --with-rtldebug and without --without-cdebug (or without stripping) helps quite a lot in tracking down bugs.
Perhaps, you mean --with-cdebug? I did so, but without RTL debug code. No idea why gdb shows no args in backtrace... Anyway, the backtrace is strange (perhaps because of longjmp() - there is no trace of get_all_args()).
Regards, /Al
/ Brevbäraren