Re: posix_spawn

"Kirill A. Korinsky" <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Message-ID <[email protected]>
and I'd like to correct myself: under rosetta it failed with wrong libboot.so architecture.

Here two patches:
 - flush stdout to make this error visible
 - fix this error by respect CFLAGS to build libboot.so

Now it failed the same way on both machines with stacktrace:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   raw_pre_gcl                   	       0x1000acd81 siLheap_report + 177
1   raw_pre_gcl                   	       0x10005c0ca fSeval_src + 410


--
wbr, Kirill

> On 23. Dec 2023, at 14:10, Kirill A. Korinsky <[email protected]> wrote:
> 
> 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
> <compatibility-with-xcode15.diff>
> <dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch>
> <draft-posix-spawn.diff>
> <fix-memory-corruption-on-macOS.patch>
> <old-macOS.patch>
> <Respect-provided-CFLAGS-to-compile-bin-dpp.diff>
> <gcl.txt>
> <gcl-devel.txt>
> 
>> On 23. Dec 2023, at 11:53, Kirill A. Korinsky <[email protected] <mailto:[email protected]>> 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>
>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3/KLNtcfWfLw7JxqmNjZhndZIm4FAmWG5fcACgkQmNjZhndZ
Im5iyA//eu0va3qD1YQ1qIAZaYEYoLaAfyyWeY1o1R6uyoXKTINljxELfdsl0o6A
oM/63VB2fcLRl8GDroWn4z+/82i323QmUEJ3NYXZ2v5OXkL73HllE95LBE9E8kYI
fYahf8MvW6Mpza+1xb+IapuPRt3OiiNFygSwfSA63VHbiAuhT5An0dnI9Qsqj5ZR
9qI2Z8UyOpYY+iLHYQXrF8refLiX69vMu7YffvjEYM3MjcDfoaV1++jBEuTFHFm8
dx1pwu8paywCiMLC/A0Ce67J6RxZ2zetufLc20kPWGpVjLl5IFF/MijDChShqot2
IOk8fJ5s4F7fb0cvF6TtvSYKaaoNoFG68kWGLrr2Ep7UsnvMf/0VreCr9lY/eAO6
lrFW/LjzeakrGuFKgnZQKre+Om2wEDjZHN9hdBTZUTcXmxVnEbF+HIHAwaszp6Sc
0GMGdcOFx+zCzvVs9T4oQ5PSDQ6+25tGVmz4tAGuRfj0FYWlyqNhyZbP4W1LcuvJ
T9krSxX7yw/C+npYleAYatBsGsatem9uBMM5dSsWAR3bSkqjNALKRf93oSB7Bya5
jjRJ2yuU5JNWF5Ke1btVUcA+ZrrN+BgTadsBEP217ZuhZBg/KJcgKoOOlX0kZUrL
ee7Pv2WQHiXqwnd1Gao0aKMrPtq23gQPE817HMpGrU15lG8X7tY=
=L40v
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.