[fpc-devel] Segmentation fault for Firebird exceptioninsidethread
Sven Barth
pascaldragon at googlemail.com
Thu Oct 27 17:41:02 CEST 2011
Am 27.10.2011 17:17, schrieb michael.vancanneyt at wisa.be:
>
>
> On Thu, 27 Oct 2011, Sven Barth wrote:
>
>> Am 27.10.2011 16:38, schrieb Jonas Maebe:
>>>
>>> On 27 Oct 2011, at 16:17, Ludo Brands wrote:
>>>
>>>>> If it is a C++ exception, then it is a firebird client bug.
>>>>> The exceptions are not supposed to leave the fbclient library...
>>>>
>>>> Or fpc is catching the c++ exception and not chaining them. Similar to
>>>> win64.
>>>
>>> It is impossible for FPC to catch a C++ exception on non-Windows
>>> platforms with FPC containing special code tying into the C++ run time
>>> (which it doesn't).
>>
>> And on Windows it is likely that FPC will pass-through C++ exceptions
>> (AFAIK they have a special error code) to the operating system.
>
> No, it does not (at least not correctly) , there is a bug for this.
You are indeed right. The exception code for C++ is "$e06d7363"
(according to an article on CodeProject) and FPC's handler checks in its
"else"-part whether the "SEVERITY_ERROR" flag ($c0000000) is set (which
is the case here...).
Regards,
Sven
More information about the fpc-devel
mailing list