[fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

José Mejuto joshyfun at gmail.com
Thu May 9 13:48:12 CEST 2013


El 09/05/2013 5:19, Bruce Tulloch escribió:

> If there is no other explanation, then it means I need to find out how
> the string variable referred to by (%eax) could have been been accessed
> (or even known to exist) by any other thread in the same address space.-- 

Hello,

In the past I had suffered a problem like yours and the culprit was 
another different function that passes result (string) as a parameter 
when calling a function without initialization, something like this:

function foo(var para: string): string;
begin
   //Something with para
end;

function bar(): string;
begin
   result:=foo(result);
end;

I hope this helps...



More information about the fpc-pascal mailing list