[Vm-dev] Interrupted system call error on OSX

Jan van de Sandt jvdsandt at gmail.com
Tue May 24 18:50:28 UTC 2016


Hello VM list,

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?

Jan

VM Version:

/Users/jan/Smalltalk/Pharo5-Git/Pharo.app/Contents/MacOS/Pharo
CoInterpreter VMMaker.oscog-eem.1855 uuid:
d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid:
d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit:
b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200
By: Esteban Lorenzano <estebanlm at gmail.com> Jenkins build #589

Mac Cocoa Cog 5.8b12 21-Sep-10 >1B0534FA-246C-47C5-AB29-7A76C81CCDCB<
VMMaker versionString https://github.com/pharo-project/pharo-vm.git Commit:
b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200
By: Esteban Lorenzano <estebanlm at gmail.com> Jenkins build #589
CoInterpreter VMMaker.oscog-eem.1855 uuid:
d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid:
d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016



---------- Forwarded message ----------
From: Jan van de Sandt <jvdsandt at gmail.com>
Date: Tue, May 17, 2016 at 9:33 PM
Subject: UnifiedFFI Interrupted system call error on OSX
To: Pharo Development List <pharo-dev at lists.pharo.org>


Hi,

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.

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:

LGit_GIT_ERROR: Failed to connect to github.com: Interrupted system call.

In Pharo4/NB this error does not occur. Could this be an issue in UFFI or
perhaps in the VM ?

To reproduce the problem in Pharo 5 (after loading [2]):


| repo |
repo := LGitRepository on: 'my-test-repo' asFileReference.
repo cloneHttps: 'https://github.com/theseion/LibGit.git'


Jan.

[1] https://github.com/theseion/LibGit
[2] https://github.com/jvdsandt/LibGit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160524/543e085b/attachment-0001.htm


More information about the Vm-dev mailing list