On Jun 1, 2006, at 1:16 PM, Paul Eggert wrote:
James Gallagher <[EMAIL PROTECTED]> writes:
I've found what appears to be a stack corruption when using regexec()
on a PPC Mac running OS/X 10.3.9. I was wondering if this is a known
problem?
I don't know of any such problem. Looks like you may have to debug
it.
After the call to regexec(), access to pmatch[0] fails with
BAD_ACCESS error.
That's weird. Is pmatch in static storage? If not, can you reproduce
the problem with pmatch in static storage?
pmatch is on the stack. If I make the array pmatch[2] and still pass
1 for nmatch, the problem goes away. I have not tried some of the
other obvious stuff like making the array bigger and making nmatch
corresponding larger, et c., but I guess I should dive in. Thought
I'd check first...
James
--
James Gallagher jgallagher at opendap.org
OPeNDAP, Inc 406.723.8663