Re: [v8-users] v8 shell crashes with Fatal error in v8::ToLocalChecked Empty MaybeLocal.

2015-10-05 Thread Jakob Kummerow
The whole point of a MaybeLocal is that it *may *(or may not) contain a value. Calling .ToLocalChecked() on it is unsafe, unless you happen to know that it can't be empty. shell.cc:416 is doing it wrong. d8.cc:883

[v8-users] v8 shell crashes with Fatal error in v8::ToLocalChecked Empty MaybeLocal.

2015-10-05 Thread Jane Chen
[jchen@jchen-z620 x64.release]$ ./shell V8 version 4.7.0 (candidate) [sample shell] > read(); (shell):1: Bad parameters read(); ^ # # Fatal error in v8::ToLocalChecked # Empty MaybeLocal. # Illegal instruction (core dumped) This is with a build made with either: make -j8 x64.debug -werror=no

Re: [v8-users] v8 shell crashes with Fatal error in v8::ToLocalChecked Empty MaybeLocal.

2015-10-05 Thread Jane Chen
Actually, forget that. I do get stack for shell. Not sure why I'm not getting it in my app. Looking... On Monday, October 5, 2015 at 4:49:13 PM UTC-7, Jane Chen wrote: > > Thanks. Any tip in debugging this kind of failures? I don't seem to get > a stack even though I'm using debug build

Re: [v8-users] v8 shell crashes with Fatal error in v8::ToLocalChecked Empty MaybeLocal.

2015-10-05 Thread Jane Chen
Thanks. Any tip in debugging this kind of failures? I don't seem to get a stack even though I'm using debug build both for v8 and my embedding app. On Monday, October 5, 2015 at 1:59:46 PM UTC-7, Jakob Kummerow wrote: > > The whole point of a MaybeLocal is that it *may *(or may not) contain a