On 14 February 2013 23:21, DeNigris Sean <
[hidden email]> wrote:
> Why is this simple experiment crashing the vm? It seemed like such a small change from the getenv example that I was sure it would succeed. Mac 10.8.2 with lastest nbcog vm...
>
> run: str
> "self run: 'open
http://www.google.com'."
>
> <primitive: #primitiveNativeCall module: #NativeBoostPlugin error: errorCode >
> ^ self nbCall: #( int system (String str) ) module: NativeBoost CLibrary
>
ahaha... system call..
yeah.. what could go wrong?
(was thinking me as well, when tried to demonstrate the use of this
function couple months ago :)
there is very complicated machinery behind this function (most in C)..
i have not much clues what happens, but i can imagine that it does
something which interrupts/blocks VM thread
(add there signals and stuff) until command finishes.. which VM can't handle..
i remember i did or checked something to make system() call working..
but i can't remember what exactly.
(so, i dunno, but your sample works fine on my machine with my VM ;)
.. and of course i am not giving it away, because its mine! :)
just lets wait till we will get fresh VMs, and we'll see :)
> Thanks,
> Sean
--
Best regards,
Igor Stasenko.