[v8-users] v8 crash with weak handles.

2017-07-12 Thread Jane Chen
Embedding v8 5.3. Seeing a crash if I have weak handles in many isolates: Thread [51] 27257 [core: 6] (Suspended : Signal : SIGILL:Illegal instruction) v8::base::OS::Abort() at platform-posix.cc:240 0x75f078a1 V8_Fatal() at logging.cc:116 0x75f02d88 v8::internal::GlobalHandles::Nod

[v8-users] Re: Creating a sub-context

2017-07-12 Thread ibon tolosana
There's no problem in creating as much Context objects as needed per Isolate. When trying to detach an object from a context to reference it from another one, make sure both context objects share the same security token (SetSecurityToken) otherwise the operation will fail. I don't really see wh

Re: [v8-users] Fwd: [v8-dev] run-tests.py fails

2017-07-12 Thread Daniel Ehrenberg
Oh, I see, if I run the test in a timezone like UTC+14, it does fail. Thanks again for reporting this issue. i have a fix out for review at https://chromium-review.googlesource.com/c/568021/ . Dan On Wed, Jul 12, 2017 at 3:34 AM, Holmes He wrote: > > -- Forwarded message -- > Fro

Re: [v8-users] Is it safe to consume v8::Private methods?

2017-07-12 Thread Ben Noordhuis
On Wed, Jul 12, 2017 at 11:15 AM, Gautham B A wrote: > I've observed that the exception thrown is - > # > # Fatal error in v8::ToLocalChecked > # Empty MaybeLocal. > # > > Is it possible to catch that exception to prevent v8 process from crashing? Don't call .ToLocalChecked() if .IsEmpty() is tru

Re: [v8-users] Is it safe to consume v8::Private methods?

2017-07-12 Thread Gautham B A
I've observed that the exception thrown is - # # Fatal error in v8::ToLocalChecked # Empty MaybeLocal. # Is it possible to catch that exception to prevent v8 process from crashing? On Wednesday, 12 July 2017 12:15:51 UTC+5:30, Ben Noordhuis wrote: > > On Wed, Jul 12, 2017 at 7:34 AM, Gautham B A