Yep, that was it! Thanks for your help Jochen!

On Tuesday, February 2, 2016 at 8:48:56 AM UTC, Jochen Eisinger wrote:
>
> you stack-allocate the ArrayBufferAllocator, so it'll get destructed at 
> the end of the Initialize() method.
>
> You should allocate it on the heap instead, so it outlives that method.
>
> best
> -jochen
>
> On Mon, Feb 1, 2016 at 10:17 PM George Corney <[email protected] 
> <javascript:>> wrote:
>
>> Hey,
>>
>> I'm struggling to get to the bottom of this one
>>
>> The crash occurs with a slightly modified version of the *hello-world.cc* 
>> sample, I've separated the initialization and execution into one function 
>> and the dispose calls into another. If the executed javascript contains 
>> Math.random(), the app crashes with '*Segmentation fault: 11*' when 
>> isolate->Dispose() is called. If isolate->Dispose() is called from within 
>> the initialization function then there is no crash.
>>
>> Here's the code https://gist.github.com/haxiomic/502227a9f0c606cd6117
>>
>> The crash log is in a comment below
>>
>> I'm keen to know if i'm doing something wrong in how I'm separating 
>> the initialization and dispose calls or if this is a bug with Math.random()
>>
>> I'm running OS X 10.11.3 and building with V8 with hash e709aa2
>>
>> -- 
>> -- 
>> v8-users mailing list
>> [email protected] <javascript:>
>> http://groups.google.com/group/v8-users
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "v8-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to