|
From: | Kirill A. Korinsky |
Subject: | Re: posix_spawn |
Date: | Sat, 23 Dec 2023 20:29:29 +0100 |
A file fix-memory-corruption-on-macOS.patch contains two patches. I just removed the second one (vsystem -> system) in favour of posix_spawn and applied it on 33a195d5cec2a7f8f563e11c0f1a3011ea0b30a0 which allows me to build GCL on macOS 12. It requires something like 3 hours I guess, but I did it from clean system. Summary: posix_spawn works but it requires one more patch: --- o/main.c +++ o/main.c @@ -432,7 +432,11 @@ gcl_cleanup(int gc) { if (gc) { saving_system=TRUE; + +/* on macOS it leads to ERROR "Caught fatal error [memory may be damaged]" */ +#ifndef __APPLE__ GBC(t_other); +#endif saving_system=FALSE; minimize_image(); If I recall right I made this patch as result of git bisect that points that this issue was introduced by cb842e61fd2d0ff5baf51918112003a3a1b69b45 when this line was introduced. From my point of view posix_spawn is the right move and it really fixes things. If you think to commit it, please do! --
wbr, Kirill
|
signature.asc
Description: Message signed with OpenPGP
[Prev in Thread] | Current Thread | [Next in Thread] |