[Vm-dev] Re: Help with FFI crash in latest Spur (only in Linux)

Mariano Martinez Peck marianopeck at gmail.com
Fri Jan 8 18:35:45 UTC 2016


On Fri, Jan 8, 2016 at 3:04 PM, Mariano Martinez Peck <marianopeck at gmail.com
> wrote:

> Hi guys,
>
> I wonder if someone could give me a hand to find out why a FFI calling I
> am doing is crashing. In OSX it works correct but I am testing in CentOS
> and it fails. I wonder if it also crashes in other Linuxes too.
>
> I am using latest Pharo 5.0 with Spur. To reproduce:
>
> 1) Get latest Pharo 5.0 and Spur via:
> wget -O- get.pharo.org/alpha+vm | bash
>
> 2) Inside Pharo, load my prototype tool:
>
> Gofer it
> package: 'OSSubprocess';
> url: 'http://smalltalkhub.com/mc/marianopeck/OSSubprocess/main';
> load.
>
> 3) This is the code I am executing and it's crashing:
>
> | posixSpawnFileActionsT | posixSpawnFileActionsT := ExternalAddress
> allocate: 4.
>


If I change above line with this:

posixSpawnFileActionsT := ByteArray new: 4.

Then the function does not crash but it crashes in the
future  posix_spawn_file_actions_destroy().



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160108/edb9ce36/attachment.htm


More information about the Vm-dev mailing list