[v8-users] Isolate->Dispose() causes crash only when Math.random() is used

2016-02-01 Thread George Corney
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
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] Does changed timezone notification still required in latest v8?

2016-02-01 Thread Bogdan Padalko
Thanks for the clarification!

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] About to go (more) insane. SegFault calling GetOwnPropertyNames().

2016-02-01 Thread Scott Duensing
The exact line is:  
http://skunkworks.kangaroopunch.com/projects/scripting/repository/revisions/master/entry/Scripting/scripting.cpp#L76

What this bit of (unfinished) code does is allow you to load scripts into 
individual contexts and call between them passing JSON in and out to 
exchange data.  

This was working.  Then I added the code to pass JSON objects in as 
function arguments.  Now nothing works.  There's something wrong, 
scope-wise, but I can't find it.  I'm new to V8 and finding docs is uphill 
work.  :-(   Can someone take pity on my poor brain and lend a hand?  The 
platform is x64 Ubuntu 15.10.  The script I used to download and build V8 
is included.

Thank you in advance!


Scott

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [v8-users] Object.ForceSet to bypass accessors.

2016-02-01 Thread Jane Chen
Toon,

Thanks for the heads-up.  I am currently on 4.6.88 and am still using 
ForceSet.  I'd love to try it out when I refresh my build.  Which release 
is this going into?

Jane

On Wednesday, January 27, 2016 at 7:57:56 AM UTC-8, Toon Verwaest wrote:
>
> In https://codereview.chromium.org/1632603002/ I've changed the default 
> setter behavior for accessors installed using "SetNativeDataProperty" to do 
> exactly that: replace the accessor with a data property. If you don't 
> provide a setter yourself, you'll get that behavior. Lazy computed 
> properties like you suggest can just call "set" on themselves and they'll 
> be transformed to data properties.
>
> Does that work?
> Toon
>
> On Fri, Oct 30, 2015 at 10:36 PM Jane Chen  > wrote:
>
>> If it was only a performance concern to always go through accessors, it 
>> is now also a functionality issue for profiling.  The function name in cpu 
>> profile result shows up as "get " for the last property this 
>> accessor function is associated to.
>>
>> I tried CreateDataProperty in place of ForceSet, but that doesn't do it.  
>> My function becomes undefined after the accessor is set to 0 and 
>> CreateDataProperty is called.  Is that expected behavior?
>>
>>
>> On Wednesday, October 7, 2015 at 12:52:08 AM UTC-7, Toon Verwaest wrote:
>>
>>> We don't have such alternative right now (last time I checked). We're 
>>> still working out the best way to support that use case, which is important 
>>> to V8/DOM as well. One way would be to always go through the accessor, even 
>>> after lazy instantiation. I can imagine this to be too slow right now 
>>> though.
>>>
>>> Regards,
>>> Toon
>>>
>>> On Tue, Oct 6, 2015, 21:57 Jakob Kummerow  wrote:
>>>
>> Have you checked bit.ly/v8-api-changes ?

>>> On Tue, Oct 6, 2015 at 8:44 PM, Jane Chen  wrote:

>>> In v8 4.7.0, Object.ForceSet is deprecated.  What is the new recommended 
> way of bypassing accessors?
>
> The use case I have is that I lazily create global objects and 
> functions using accessors.  Once it is created, I want to reset the 
> accessor and force save the created objects on Global.  
>
> Thanks.
>
 -- 
> -- 
> v8-users mailing list
>
 v8-u...@googlegroups.com


> 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 v8-users+u...@googlegroups.com.


> For more options, visit https://groups.google.com/d/optout.
>
 -- 
 -- 
 v8-users mailing list

>>> v8-u...@googlegroups.com
>>>
>>>
 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 v8-users+u...@googlegroups.com.
>>>
>>>
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> -- 
>> v8-users mailing list
>> v8-u...@googlegroups.com 
>> 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 v8-users+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.