From owner-freebsd-ports@freebsd.org Wed Mar 10 17:39:40 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7AA1571CE7 for ; Wed, 10 Mar 2021 17:39:40 +0000 (UTC) (envelope-from gelson@borsoi.com.br) Received: from server.borsoi.com.br (server.borsoi.com.br [177.99.176.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DwfTl3M5Wz3t5d for ; Wed, 10 Mar 2021 17:39:39 +0000 (UTC) (envelope-from gelson@borsoi.com.br) Received: from localhost (localhost [127.0.0.1]) by server.borsoi.com.br (Postfix) with ESMTP id BB44E2C3D546 for ; Wed, 10 Mar 2021 14:33:43 -0300 (-03) Received: from server.borsoi.com.br ([127.0.0.1]) by localhost (server.borsoi.com.br [127.0.0.1]) (maiad, port 10024) with ESMTP id 07086-04 for ; Wed, 10 Mar 2021 14:33:39 -0300 (-03) Received: from NotebookGB (unknown [192.168.50.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: gelson@borsoi.com.br) by server.borsoi.com.br (Postfix) with ESMTPSA id 021822C3D54C for ; Wed, 10 Mar 2021 14:33:38 -0300 (-03) From: "Gelson Borsoi" To: Subject: Firebird 2.5 Core Dump - Possible solution Date: Wed, 10 Mar 2021 14:39:30 -0300 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdcV1FEkEInJEVT+SB+ZmzW7QVJAPw== Content-Language: pt-br X-Virus-Scanned: Maia Mailguard 1.0.4 X-Rspamd-Queue-Id: 4DwfTl3M5Wz3t5d X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[borsoi.com.br:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[borsoi.com.br:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:177.99.176.76/32]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_MED(-0.20)[177.99.176.76:from]; DKIM_TRACE(0.00)[borsoi.com.br:+]; DMARC_POLICY_ALLOW(-0.50)[borsoi.com.br,quarantine]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:18881, ipnet:177.99.176.0/20, country:BR]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 17:39:41 -0000 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 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 = acm@freebsd.org put this patch on ports. Gelson Borsoi Chapeco - SC - Brazil