has_pending_message_ causing V8_Fatal

27 views
Skip to first unread message

Jim Acquavella

unread,
May 29, 2014, 5:37:08 PM5/29/14
to v8-u...@googlegroups.com

Upon launching my app, if the script has an error, my application will fail with the stack crawl below.  Within freeing the ThreadLocalTop, the ASSERT for !has_pending_message_ fails.  Why is that?  In my code that compiles and executes the script, it uses a TryCatch and asks whether is "HasCaught" an exception.  In this case, "HasCaught" returns false.  If I force it to report the message and get the TryCatch's exception, it still fails with the ASSERT for !has_pending_message_.  Any ideas?


#0 0x0000000000000000 in 0x00000000 ()

#1 0x00000001008d6977 in V8_Fatal at /Users/jacquave/dev/apd/animal/v1/shared/third_party/v8/src/checks.cc:88

#2 0x0000000100d6d2f3 in v8::internal::ThreadLocalTop::Free() at /Users/jacquave/dev/apd/animal/v1/shared/third_party/v8/tools/gyp/../../src/isolate.h:237

#3 0x0000000100d6d26c in v8::internal::Isolate::FreeThreadResources() at /Users/jacquave/dev/apd/animal/v1/shared/third_party/v8/tools/gyp/../../src/isolate.h:654

#4 0x0000000100d6c465 in v8::internal::ThreadManager::FreeThreadResources() at /Users/jacquave/dev/apd/animal/v1/shared/third_party/v8/src/v8threads.cc:311

#5 0x0000000100d6c3f7 in v8::Locker::~Locker() at /Users/jacquave/dev/apd/animal/v1/shared/third_party/v8/src/v8threads.cc:75

#6 0x0000000100d6c365 in v8::Locker::~Locker() at /Users/jacquave/dev/apd/animal/v1/shared/third_party/v8/src/v8threads.cc:71

#7 0x000000010002022a in void boost::checked_delete<v8::Locker>(v8::Locker*) at /Users/jacquave/dev/apd/animal/v1/beaker/project/mac/../../../shared/third_party/boost_libraries/boost/checked_delete.hpp:34

#8 0x00000001000201f8 in boost::scoped_ptr<v8::Locker>::~scoped_ptr() at /Users/jacquave/dev/apd/animal/v1/beaker/project/mac/../../../shared/third_party/boost_libraries/boost/smart_ptr/scoped_ptr.hpp:82

#9 0x000000010001f455 in boost::scoped_ptr<v8::Locker>::~scoped_ptr() at /Users/jacquave/dev/apd/animal/v1/beaker/project/mac/../../../shared/third_party/boost_libraries/boost/smart_ptr/scoped_ptr.hpp:78

#10 0x000000010001f3fb in boost::scoped_ptr<v8::Locker>::reset(v8::Locker*) at /Users/jacquave/dev/apd/animal/v1/beaker/project/mac/../../../shared/third_party/boost_libraries/boost/smart_ptr/scoped_ptr.hpp:88


 void Free() {

    ASSERT(!has_pending_message_);

    ASSERT(!external_caught_exception_);

    ASSERT(try_catch_handler_ == NULL);

  }


-Jim

Jim Acquavella

unread,
Jun 5, 2014, 12:38:03 AM6/5/14
to v8-users
Anyone?


--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/9UPCxAV5pfM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Noordhuis

unread,
Jun 5, 2014, 5:42:20 AM6/5/14
to v8-u...@googlegroups.com
What do TryCatch::CanContinue() and TryCatch::HasTerminated() return?
By the sound of it, there's either a failure (a non-recoverable
exception like out of memory) or there's an in-progress
V8::TerminateExecution() request.

Jim Acquavella

unread,
Jun 5, 2014, 7:00:56 PM6/5/14
to v8-users
CanContinue returns true.  HasTerminated returns false.  Seems normal...




Reply all
Reply to author
Forward
0 new messages