<div dir="ltr">Hello VM list,<div><br></div><div>I have a strange problem with a FFI call on OSX. When the called C library (libgit2) does a network call I get an &quot;Interrupted system call&quot; error. This only happens on OSX, Linux and Windows work fine. The old NativeBoost based FFI interface of Pharo4 also works fine. Could this issue be VM related?</div><div><br></div><div>Jan</div><div><br></div><div>VM Version:</div><div><br></div><div><div>/Users/jan/Smalltalk/Pharo5-Git/Pharo.app/Contents/MacOS/Pharo</div><div>CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016</div><div>StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016</div><div><a href="https://github.com/pharo-project/pharo-vm.git">https://github.com/pharo-project/pharo-vm.git</a> Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; Jenkins build #589</div><div><br></div><div>Mac Cocoa Cog 5.8b12 21-Sep-10 &gt;1B0534FA-246C-47C5-AB29-7A76C81CCDCB&lt;</div><div>VMMaker versionString <a href="https://github.com/pharo-project/pharo-vm.git">https://github.com/pharo-project/pharo-vm.git</a> Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>&gt; Jenkins build #589</div><div>CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016</div><div>StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016</div></div><div><br></div><div><br></div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Jan van de Sandt</b> <span dir="ltr">&lt;<a href="mailto:jvdsandt@gmail.com">jvdsandt@gmail.com</a>&gt;</span><br>Date: Tue, May 17, 2016 at 9:33 PM<br>Subject: UnifiedFFI Interrupted system call error on OSX<br>To: Pharo Development List &lt;<a href="mailto:pharo-dev@lists.pharo.org">pharo-dev@lists.pharo.org</a>&gt;<br><br><br><div dir="ltr">Hi,<div><br></div><div>I&#39;m helping with the port of LibGit [1] from Pharo 4 to Pharo 5 [2]. This project provides Smalltalk bindings for the libgit2 library. Very useful for better Git support in Pharo. The port means using the new UnifiedFFI instead of NativeBoost.</div><div><br></div><div>The project is still in the alpha stage but a lot of the libgit2 features are already accessible. Some libgit2 calls access the network. For example to clone a repository or to push a commit. The calls that use https work on Linux and on Windows but on OSX we always get the following error in Pharo 5:</div><div><br></div><div><span style="color:rgb(118,118,118);font-family:&#39;Helvetica Neue&#39;,Helvetica,&#39;Segoe UI&#39;,Arial,freesans,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;line-height:21px;white-space:pre-wrap">LGit_GIT_ERROR: Failed to connect to <a href="http://github.com" target="_blank">github.com</a>: Interrupted system call.</span><br></div><div><br></div><div>In Pharo4/NB this error does not occur. Could this be an issue in UFFI or perhaps in the VM ?</div><div><br></div><div>To reproduce the problem in Pharo 5 (after loading [2]):</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div><div><div>| repo |</div></div><div><div>repo := LGitRepository on: &#39;my-test-repo&#39; asFileReference.</div></div><div><div>repo cloneHttps: &#39;<a href="https://github.com/theseion/LibGit.git" target="_blank">https://github.com/theseion/LibGit.git</a>&#39; </div></div></blockquote></div><div><br></div><div>Jan.</div><div><br></div><div>[1] <a href="https://github.com/theseion/LibGit" target="_blank">https://github.com/theseion/LibGit</a></div><div>[2] <a href="https://github.com/jvdsandt/LibGit" target="_blank">https://github.com/jvdsandt/LibGit</a></div></div>
</div><br></div></div>