<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 "Interrupted system call" 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 <<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>> Jenkins build #589</div><div><br></div><div>Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<</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 <<a href="mailto:estebanlm@gmail.com">estebanlm@gmail.com</a>> 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"><<a href="mailto:jvdsandt@gmail.com">jvdsandt@gmail.com</a>></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 <<a href="mailto:pharo-dev@lists.pharo.org">pharo-dev@lists.pharo.org</a>><br><br><br><div dir="ltr">Hi,<div><br></div><div>I'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:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';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: 'my-test-repo' asFileReference.</div></div><div><div>repo cloneHttps: '<a href="https://github.com/theseion/LibGit.git" target="_blank">https://github.com/theseion/LibGit.git</a>' </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>