[v8-users] Crash on SharedFunctionInfo::DebugName()

2019-03-25 Thread Anoop R. S.
Hi all,
I have implemented debugger for JS using the inspector protocol. But 
sometimes,  the process crashes with the call stack shown below:

v8.dll!v8::internal::SharedFunctionInfo::DebugName() Line 13817 C++
v8.dll!v8::internal::JSFunction::GetName(v8::internal::Handle function) Line 13276 C++
v8.dll!v8::internal::JSFunction::GetDebugName(v8::internal::Handle function) Line 13286 C++
v8.dll!v8::internal::ScopeIterator::GetFunctionDebugName() Line 45 C++
v8.dll!v8::internal::DebugScopeIterator::GetFunctionDebugName() Line 102 C++
v8.dll!v8_inspector::V8DebuggerAgentImpl::currentCallFrames(std::unique_ptr<
v8_inspector::protocol::Array,
std::default_delete > > * result) Line 1263 C++
v8.dll!v8_inspector::V8DebuggerAgentImpl::didPause(int contextId, v8::Local<
v8::Value> exception, const std::vector > & 
hitBreakpoints, v8::debug::ExceptionType exceptionType, bool isUncaught, 
bool isAssert, bool) Line 1588 C++
[External Code] 
v8.dll!v8_inspector::V8InspectorImpl::forEachSession(int contextGroupId, 
const std::function & 
callback) Line 393 C++
v8.dll!v8_inspector::V8Debugger::handleProgramBreak(v8::Local 
pausedContext, v8::Local exception, const std::vector > & breakpointIds, v8::debug::ExceptionType exceptionType, 
bool isUncaught) Line 524 C++
v8.dll!v8_inspector::V8Debugger::BreakProgramRequested(v8::Local pausedContext, const std::vector > & 
break_points_hit) Line 607 C++
v8.dll!v8::internal::Debug::OnDebugBreak(v8::internal::Handle break_points_hit) Line 1777 C++
v8.dll!v8::internal::Debug::Break(v8::internal::JavaScriptFrame * frame, v8
::internal::Handle break_target) Line 513 C++
v8.dll!v8::internal::Runtime_DebugBreakOnBytecode(int args_length, v8::
internal::Object * * args_object, v8::internal::Isolate * isolate) Line 33 C
++
[External Code] 
v8.dll!v8::internal::Builtin_HandleApiCallAsFunction(int args_length, v8::
internal::Object * * args_object, v8::internal::Isolate * isolate) Line 300 
C++
[External Code] 

The crash is sporadic, and usually happens when debugging fast. 
Please let me know if anyone has any information about this issue. 

regards,
Anoop R S. 

-- 
-- 
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] Building V8

2019-03-25 Thread Rodolph Perfetta
To use the bundled tools, you need a 64-bit machine.

if this is not an option you could try installing all the dependencies
yourself (and disabling the use of bundled tools by specifying
is_clang=false and probably more), but I don't believe this is documented.

On Mon, 25 Mar 2019 at 17:36,  wrote:

> I'm currently trying to build V8 for debug purposes on a Xubuntu machine
> (32 bit)
> Cloned the depot tools
> fetched V8 in a new folder
> and gclient sync but can't execute it or  build it with GN as it says it
> is missing.
> Wasn't able to find a *single *working documentation on the entire
> process.
>
> If someone could provide any tips and maybe on how to execute scripts so
> it happens something like this
> pass V8 a script to execute (JS file) and then attach to that process with
> a debugger, problem is can't launch it ..
>
> --
> --
> 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 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] Building V8

2019-03-25 Thread croos3a
I'm currently trying to build V8 for debug purposes on a Xubuntu machine 
(32 bit)
Cloned the depot tools
fetched V8 in a new folder
and gclient sync but can't execute it or  build it with GN as it says it is 
missing.
Wasn't able to find a *single *working documentation on the entire process.

If someone could provide any tips and maybe on how to execute scripts so it 
happens something like this
pass V8 a script to execute (JS file) and then attach to that process with 
a debugger, problem is can't launch it ..

-- 
-- 
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.