Autor: Ryan Joseph Data: A: pcre-dev Assumpte: Re: [pcre-dev] pcre_free crash
On Sep 19, 2009, at 2:30 AM, Philip Hazel wrote:
> On Tue, 15 Sep 2009, Ryan Joseph wrote:
>
>> I just compiled the static library on an Intel Mac running OS 10.5.8
>> and calling pcre_free is crashing (from GDB: Program received signal
>> EXC_BAD_ACCESS, Could not access memory). I'm accessing the library
>> from a Pascal interface I translated but I suspect that's not the
>> problem as the other functions I'm using are working.
>>
>> Is this a known bug on my system? Thank you for any ideas.
>
> This is not a known bug. What is the code that you are using? How are
> you using pcre_free?
I just read in the man pages that pcre_free is a global variable and
points to free by default. In Pascal I'm loading it as an external
function, which the linker accepts but maybe it's not pointing to an
actual function and thus crashing? I'll have to ask some people who
are familiar with my Pascal compiler FPC but can you offer any advice
as to how it should be used? Thank you.
Btw, I also read that the pointer to be freed is a single block of
memory so I was able to use another function to call malloc's free
which seems to work just fine. Maybe it's not necessary I resolve this
the correct way?
>
>
> Philip
>
> --
> Philip Hazel