I am not familiar with Firebird core dumps, I read this article:
https://www.ibphoenix.com/resources/documents/development/doc_36

I am running Firebird 2.5 Classic configured with systemd [1] . I changed
the .service file to make firebird running as root. I did run the script in
/opt/bin/restoreRootRunUser.sh and then restarted the systemd service. Now
firebird is running as root (ps aux says so) but I can't locate the core
file in /tmp folder or in the root folder / as stated in the article above.

My guess is that you are using the wrong calling convention for Linux.
> Note: IBX uses "stdcall" when accessing the Firebird API under Windows,
> but changes to using "cdecl" under Linux.


I am using already the cdecl calling convention. I think I am using some
wrong compiler flag (listed in the original email) but I am clueless about
which one is causing the issue.

[1] https://www.ibphoenix.com/resources/documents/how_to/doc_396

On Wed, Feb 26, 2020 at 3:12 PM Tony Whyman <tony.why...@mccallumwhyman.com>
wrote:

> My guess is that you are using the wrong calling convention for Linux.
>
> Note: IBX uses "stdcall" when accessing the Firebird API under Windows,
> but changes to using "cdecl" under Linux.
> On 26/02/2020 13:30, Massimo Fazzolari wrote:
>
> Hi,
>
> I compiled a Firebird UDF library written in object pascal. It works
> perfectly well on Windows.
>
> On Linux I get this error:
>
> SQL> select SIMPLE('test') from client;
> Statement failed, SQLSTATE = 08006
> Error reading data from the connection.
>
> Firebird Version: Classic 2.5.9.27139-0
> Lazarus Version: 2.0.0
> Free Pascal Compiler: 3.0.4
>
> These are the compiler options used:
>
> /usr/bin/fpc
> -Tlinux
> -Px86_64
> -MObjFPC
> -Scghi
> -Cg
> -O1
> -Xs
> -l
> -vewnhibq
> -Filib/x86_64-linux
> -Fl/opt/firebird/lib
> -Fuextra
> -Fuextra/units
> -Fu/usr/share/lazarus/2.0.0/lcl/units/x86_64-linux
> -Fu/usr/share/lazarus/2.0.0/components/lazutils/lib/x86_64-linux
> -Fupackages/HashLib/src/Packages/FPC/lib/HashLib4Pascal/x86_64-linux
> -Fu/usr/share/lazarus/2.0.0/packager/units/x86_64-linux
> -Fu.
> -FUlib/x86_64-linux
> -FE.
> -olibsitaudflib.so
>
>
>
>
>
> Firebird-Devel mailing list, web interface at 
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to