Skip to content

V8 Scope crash in Agent assignment client #2067

@ada-tv

Description

@ada-tv

Occurred when running the example script from https://docs.overte.org/en/latest/script/assignment-client-scripts.html

#
# Fatal error in HandleScope::HandleScope
# Entering the V8 API without proper locking in place
#


Thread 27 "ThreadedAssignm" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7fffaaffd6c0 (LWP 941744)]
0x00007ffff31b5511 in v8::base::OS::Abort() ()
   from /home/ada/var/conan/p/b/libno29145a7f99830/p/lib/libnode.so.127
(gdb) bt
#0  0x00007ffff31b5511 in v8::base::OS::Abort() ()
    at /home/ada/var/conan/p/b/libno29145a7f99830/p/lib/libnode.so.127
#1  0x00007ffff2649489 in v8::Utils::ReportApiFailure(char const*, char const*)
    () at /home/ada/var/conan/p/b/libno29145a7f99830/p/lib/libnode.so.127
#2  0x00007ffff264a9d1 in v8::HandleScope::Initialize(v8::Isolate*) ()
    at /home/ada/var/conan/p/b/libno29145a7f99830/p/lib/libnode.so.127
#3  0x00007ffff5d89256 in ScriptEngineV8::registerGlobalObject
    (this=this@entry=0x7fff9c00bc80, name=..., object=<optimized out>, 
    object@entry=0x555555a1dfe0)
    at /home/ada/src/overte/libraries/script-engine/src/v8/ScriptEngineV8.cpp:403
#4  0x00005555555ec9b5 in Agent::executeScript (this=0x555555a14b60)
    at /home/ada/src/overte/assignment-client/src/Agent.cpp:395
#5  0x00007fffefcf774b in QObject::event(QEvent*) ()
    at /usr/lib/libQt5Core.so.5
#6  0x00007fffefcd0417 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    () at /usr/lib/libQt5Core.so.5
#7  0x00007fffefcd17a0 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#8  0x00007fffefd24930 in ??? () at /usr/lib/libQt5Core.so.5
#9  0x00007fffe8506f8d in ??? () at /usr/lib/libglib-2.0.so.0
#10 0x00007fffe8508657 in ??? () at /usr/lib/libglib-2.0.so.0
#11 0x00007fffe8508865 in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#12 0x00007fffefd21dc9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#13 0x00007fffefcc893b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#14 0x00007fffefaf549b in QThread::exec() () at /usr/lib/libQt5Core.so.5
#15 0x00007fffefaf19b9 in ??? () at /usr/lib/libQt5Core.so.5
#16 0x00007fffe8fa798b in ??? () at /usr/lib/libc.so.6
#17 0x00007fffe902ba0c in ??? () at /usr/lib/libc.so.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionSomething formerly worked and doesn't anymorev8Bugs related to the new V8 scripting engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions