Re: posix_spawn

"Kirill A. Korinsky" <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Message-ID <[email protected]>
Here it is:

SYSTEM>(init-system)
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_s.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_sf.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_rm.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_dl.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_fle.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_defmacro.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_hash.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_evalmacros.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_module.lsp
loading /opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_catap_macports-ports_lang_gcl/gcl-devel/work/01ed2e0b2f540031171d2258ddccb951735827e7/gcl/unixport/../lsp/gcl_predlib.lsp
zsh: illegal hardware instruction  ./raw_pre_gcl ./
catap@Kirills-mini-m1 unixport %

thus, meanwhile I made some investigation and localized the crash exact line in siLheap_report function:
vs_push(make_fixnum(((unsigned long)cs_base+i-1)&-i));

I've tried to remove vs_push and it doesn't change anything.

--
wbr, Kirill

> On 23. Dec 2023, at 15:37, Camm Maguire <[email protected]> wrote:
> 
> Greetings, and thanks again so much.
> 
> This is so curious, as there is no call to the posix_spawn code at all
> at the point of your failure.
> 
> Could you please do the following:
> 
> cd unixport
> make raw_pre_gcl
> ./raw_pre_gcl ./
>> 
> 
> Then open up init_raw.lsp in some editor, and copy the forms therein one
> at a time to the prompt.  Lets focus on 'gcl-devel' at the moment.
> Please let me know the step at which it fails.  Keep in mind this file
> takes a few seconds to load.
> 
> Take care,
> 
> "Kirill A. Korinsky" <[email protected]> writes:
> 
>> 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.
> 
> --
> Camm Maguire			     		    [email protected]
> ==========================================================================
> "The earth is but one country, and mankind its citizens."  --  Baha'u'llah
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3/KLNtcfWfLw7JxqmNjZhndZIm4FAmWG8xUACgkQmNjZhndZ
Im7n/xAAph0gb2JEBbAr3XC98UOYW8Zv81Md/SDyGqprGzjkMbyTJByilHuP/wem
ylFkosI9jQOqlkZXsqaBe1TC4WlrEvmGCfZuX2sLxwZ6fy/rHygjV9K4dMy8sGSJ
Vxm3bu5ZOaTelIsNXqZCihg082Gp+NOkyPs6BTBddiy8aYkgQbQRpsRPHGwwEGqw
uGgbekO4ESJzABEBAufbRUYXIVEahpO7b018Oi7B19th8O7/hnLAJCJs3e6Kc8G4
Adv1Re1rG9WPaUJLwba03FGOgGc0uoEoSsXwxuIhoA9A/QH7tUfrI2LOkGoqowgd
WoZeIJLfgZmrxih5s6jNHFXRdESfq8cVM7KYGmIuR0k6OrrNtmcztkQncs9hkJis
H4fi4z3JVgBpN61PSUmUi6SXrRbQ2lA6lpRUWMTq9rwtuO3yK5iiDtghMzbyW1gj
tzEU7kx9QFXQqBd8m/v4UfgSZS1DXrKWlpr/lz7TiFQ38g6ntEkCd5lfOvFq/VGB
vXIaJN+OANxzn8KvJ5uxeJjf6BD9+0s+vRPmQPfNKwfu6bQ4YHWHaA0aDlODrtTz
Hkh10oz3Mw/gJ222WH52unShTN05TUsFmLLqrtW1Nv6ZplAFIWx/aYEmCauKyIXk
5dYr/4vma8frk1LW73X60fB3d+lPJ2oIHXCn+468frQdaa2eiqE=
=v2yE
-----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.