|
From: | James Gallagher |
Subject: | Re: regexec() and OS/X |
Date: | Fri, 2 Jun 2006 08:45:03 -0600 |
On Jun 1, 2006, at 1:16 PM, Paul Eggert wrote:
James Gallagher <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |