On 2013-02-14, at 23:35, Igor Stasenko <[email protected]> wrote:

> On 14 February 2013 23:21, DeNigris Sean <[email protected]> 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 :)

Yes I would put that even on high-priority for NB, as it is the most important
use-case that makes sense to me :D

Reply via email to