gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posix_spawn


From: Kirill A. Korinsky
Subject: Re: posix_spawn
Date: Sat, 23 Dec 2023 14:10:19 +0100

Let me summarise how it crashed on Xcode 15 with macOS 14.

To test it I've used two gcl via MacPorts:
 - gcl which is 2.6.14
 - gcl-devel which is the last available commit at master 01ed2e0b2f540031171d2258ddccb951735827e7

gcl is build with patches:
 - dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch
 - fix-memory-corruption-on-macOS.patch
 - compatibility-with-xcode15.diff
 - Respect-provided-CFLAGS-to-compile-bin-dpp.diff
 - old-macOS.patch

gcl-devel is using:
 - draft-posix-spawn.diff
 - compatibility-with-xcode15.diff
 - Respect-provided-CFLAGS-to-compile-bin-dpp.diff

Crashes attached as gcl.txt and gcl-devel.txt

It crashes the same way on arm64 when I use rosetta to emulate x86_64 and on native x86_64.

To make things easy I've attached all used patches / stacktrace to this email.

-- 
wbr, Kirill

Attachment: compatibility-with-xcode15.diff
Description: Binary data

Attachment: dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch
Description: Binary data

Attachment: draft-posix-spawn.diff
Description: Binary data

Attachment: fix-memory-corruption-on-macOS.patch
Description: Binary data

Attachment: old-macOS.patch
Description: Binary data

Attachment: Respect-provided-CFLAGS-to-compile-bin-dpp.diff
Description: Binary data

Attachment: gcl.txt
Description: Text document

Attachment: gcl-devel.txt
Description: Text document


On 23. Dec 2023, at 11:53, Kirill A. Korinsky <kirill@korins.ky> wrote:

well... seems that Xcode 15 with macOS 13+ requires additional patches.

attached patch allows to pass configure but build failed at:
COMPILER>/bin/sh: line 1: 15229 Illegal instruction: 4 

at the attempt to run raw_pre_gcl. I'll try to investigate this (get the stacktrace) in next few days.

Here I've attached two patches:
1. add missed sizeof(char) which is used inside code, but never checked
2. add missed unistd.h which is nessesary to pass checking on xcode 15 on macOS 13

-- 
wbr, Kirill

<xcode15.diff>
<sizeof-char.diff>

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

[Prev in Thread] Current Thread [Next in Thread]