Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2021 14:39:30 -0300
From:      "Gelson Borsoi" <gelson@borsoi.com.br>
To:        <freebsd-ports@freebsd.org>
Subject:   Firebird 2.5 Core Dump - Possible solution
Message-ID:  <!&!AAAAAAAAAAAYAAAAAAAAAJAnp7jzyoFDtcRypoF7hLLCgAAAEAAAAFCNv/WguYhHgLthoi07dxkBAAAAAA==@borsoi.com.br>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi Guys, i think i have the final solution to us.

=20

We all know that Firebird Server 2.5 can be installed by pkg or ports, =
but when you try to use it it crashes with the core dump.

Based on  <https://tracker.firebirdsql.org/browse/CORE-5865>; =
https://tracker.firebirdsql.org/browse/CORE-5865 this is what i did:

1 - cd /usr/ports/databases/firebird25-client
2 - make extract
3 - cd work
4 - cd Firebird folder
5 - I modify the line 95 in the src/common/classes/alloc.h file:

Original code:
Line 94 // Alignment for all memory blocks. Sizes of memory blocks in =
headers are measured in this units
Line 95 const size_t ALLOC_ALIGNMENT =3D FB_ALIGNMENT;

Changed code:
Line 94 // Alignment for all memory blocks. Sizes of memory blocks in =
headers are measured in this units
Line 95 #define ALLOC_ALIGNMENT 16

6 - Repeat the steps 2 to 5 on /usr/ports/databases/firebird25-server
7 - make install clean

I tested this in 13 beta4 and 12.1. Build normally with clang/llvm(8 and =
11) and no more core dumps.
I think we need a patch file to apply this to the ports if the machine =
is amd64 architecture. I don=E2=80=99t know how to do this because i =
never did this.
Please test this too and comment the results. Maybe  =
<mailto:acm@freebsd.org> acm@freebsd.org put this patch on ports.

Gelson Borsoi
Chapeco - SC - Brazil




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?!&!AAAAAAAAAAAYAAAAAAAAAJAnp7jzyoFDtcRypoF7hLLCgAAAEAAAAFCNv/WguYhHgLthoi07dxkBAAAAAA==>