On Sat, Feb 28, 2004 at 08:10:05AM +0100, Mirar @ Pike developers forum wrote:
How does your calling code to get_all_args look like?
Like this:
static void object_tokenize(INT32 args) { struct pike_string *s = 0; int n = 0;
if (!THIS->re) Pike_error("No RE compiled to tokenize by!\n");
fprintf(stderr, "getting args\n"); get_all_args("PCRE()->tokenize", args, "%S", &s); fprintf(stderr, "got args: %p\n", s); /// ... more stuff }
It fails after printing "getting args", somewhere deep inside the interpreter.
I changed checking order in get_all_args(), so test for correct number of arguments will be done first, now everything is OK.
What is strange - I can't reproduce this bug in isolated function (i.e. outside object)... But valgrind shows no problems...
It was working without any problems in 7.4, and when I tried to "port" it to 7.5, this problem arised...
Regards, /Al