Skip to content

Instantly share code, notes, and snippets.

@othiym23
Last active December 24, 2015 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save othiym23/6834701 to your computer and use it in GitHub Desktop.
Save othiym23/6834701 to your computer and use it in GitHub Desktop.
% PATH=$NUPATH gdb --args node_g test/integration/instrumentation-restify.tap.js
GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done
(gdb) run
Starting program: /Users/forrest/Documents/projects/node-git/node_g test/integration/instrumentation-restify.tap.js
Reading symbols for shared libraries ++.............................. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x000000010064c12f in v8::internal::ExternalUnsignedByteArray::get_scalar (this=0x70c52e51ce9, index=0) at objects-inl.h:3245
3245 return ptr[index];
(gdb) thread apply all bt
Thread 6 (process 80847):
#0 0x00007fff86ca86c2 in semaphore_wait_trap ()
#1 0x00000001007bb940 in v8::internal::MacOSSemaphore::Wait (this=0x101609650) at ../deps/v8/src/platform-macos.cc:415
#2 0x00000001006ac52b in v8::internal::SweeperThread::Run (this=0x101609390) at ../deps/v8/src/sweeper-thread.cc:64
#3 0x00000001007be870 in v8::internal::Thread::NotifyStartedAndRun (this=0x101609390) at platform.h:702
#4 0x00000001007bd4d6 in v8::internal::ThreadEntry (arg=0x101609390) at ../deps/v8/src/platform-posix.cc:590
#5 0x00007fff899ab772 in _pthread_start ()
#6 0x00007fff899981a1 in thread_start ()
Thread 5 (process 80847):
#0 0x00007fff86ca86c2 in semaphore_wait_trap ()
#1 0x00000001007bb940 in v8::internal::MacOSSemaphore::Wait (this=0x101608e60) at ../deps/v8/src/platform-macos.cc:415
#2 0x00000001006ac52b in v8::internal::SweeperThread::Run (this=0x101608bb0) at ../deps/v8/src/sweeper-thread.cc:64
#3 0x00000001007be870 in v8::internal::Thread::NotifyStartedAndRun (this=0x101608bb0) at platform.h:702
#4 0x00000001007bd4d6 in v8::internal::ThreadEntry (arg=0x101608bb0) at ../deps/v8/src/platform-posix.cc:590
#5 0x00007fff899ab772 in _pthread_start ()
#6 0x00007fff899981a1 in thread_start ()
Thread 4 (process 80847):
#0 0x00007fff86ca86c2 in semaphore_wait_trap ()
#1 0x00000001007bb940 in v8::internal::MacOSSemaphore::Wait (this=0x1016083c0) at ../deps/v8/src/platform-macos.cc:415
#2 0x00000001006ac52b in v8::internal::SweeperThread::Run (this=0x1016084f0) at ../deps/v8/src/sweeper-thread.cc:64
#3 0x00000001007be870 in v8::internal::Thread::NotifyStartedAndRun (this=0x1016084f0) at platform.h:702
#4 0x00000001007bd4d6 in v8::internal::ThreadEntry (arg=0x1016084f0) at ../deps/v8/src/platform-posix.cc:590
#5 0x00007fff899ab772 in _pthread_start ()
#6 0x00007fff899981a1 in thread_start ()
Thread 3 (process 80847):
#0 0x00007fff86ca86c2 in semaphore_wait_trap ()
#1 0x00000001007bb940 in v8::internal::MacOSSemaphore::Wait (this=0x101607880) at ../deps/v8/src/platform-macos.cc:415
#2 0x00000001006ac52b in v8::internal::SweeperThread::Run (this=0x101607c10) at ../deps/v8/src/sweeper-thread.cc:64
#3 0x00000001007be870 in v8::internal::Thread::NotifyStartedAndRun (this=0x101607c10) at platform.h:702
#4 0x00000001007bd4d6 in v8::internal::ThreadEntry (arg=0x101607c10) at ../deps/v8/src/platform-posix.cc:590
#5 0x00007fff899ab772 in _pthread_start ()
#6 0x00007fff899981a1 in thread_start ()
Thread 2 (process 80847):
#0 0x00007fff86ca86c2 in semaphore_wait_trap ()
#1 0x00000001007bb940 in v8::internal::MacOSSemaphore::Wait (this=0x101603be0) at ../deps/v8/src/platform-macos.cc:415
#2 0x0000000100571aeb in v8::internal::OptimizingCompilerThread::Run (this=0x10180ba40) at ../deps/v8/src/optimizing-compiler-thread.cc:55
#3 0x00000001007be870 in v8::internal::Thread::NotifyStartedAndRun (this=0x10180ba40) at platform.h:702
#4 0x00000001007bd4d6 in v8::internal::ThreadEntry (arg=0x10180ba40) at ../deps/v8/src/platform-posix.cc:590
#5 0x00007fff899ab772 in _pthread_start ()
#6 0x00007fff899981a1 in thread_start ()
Thread 1 (process 80847):
#0 0x000000010064c12f in v8::internal::ExternalUnsignedByteArray::get_scalar (this=0x70c52e51ce9, index=0) at objects-inl.h:3245
#1 0x0000000100331e9b in v8::internal::ExternalUnsignedByteArray::get (this=0x70c52e51ce9, index=0) at objects-inl.h:3250
#2 0x0000000100331e48 in v8::internal::ExternalElementsAccessor<v8::internal::ExternalUnsignedByteElementsAccessor, (v8::internal::ElementsKind)9>::GetImpl (receiver=0x70c52e51c31, obj=0x70c52e51c31, key=0, backing_store=0x70c52e51ce9) at ../deps/v8/src/elements.cc:1351
#3 0x0000000100331603 in v8::internal::ElementsAccessorBase<v8::internal::ExternalUnsignedByteElementsAccessor, v8::internal::ElementsKindTraits<(v8::internal::ElementsKind)9> >::Get (this=0x101603f80, receiver=0x70c52e51c31, holder=0x70c52e51c31, key=0, backing_store=0x70c52e51ce9) at ../deps/v8/src/elements.cc:645
#4 0x0000000100503a8d in v8::internal::Object::GetElementWithReceiver (this=0x70c52e51c31, receiver=0x70c52e51c31, index=0) at ../deps/v8/src/objects.cc:948
#5 0x000000010054627a in v8::internal::Object::GetElement (this=0x70c52e51c31, index=0) at objects-inl.h:925
#6 0x00000001005cee51 in v8::internal::Runtime::GetElementOrCharAt (isolate=0x101803200, object={location_ = 0x7fff5fbfe500}, index=0) at ../deps/v8/src/runtime.cc:4734
#7 0x00000001005cf488 in v8::internal::Runtime::GetObjectProperty (isolate=0x101803200, object={location_ = 0x7fff5fbfe500}, key={location_ = 0x7fff5fbfe4f8}) at ../deps/v8/src/runtime.cc:4788
#8 0x00000001005cf10d in v8::internal::Runtime::GetObjectPropertyOrFail (isolate=0x101803200, object={location_ = 0x7fff5fbfe500}, key={location_ = 0x7fff5fbfe4f8}) at ../deps/v8/src/runtime.cc:4768
#9 0x00000001004736d5 in v8::internal::KeyedLoadIC::Load (this=0x7fff5fbfe420, state=v8::internal::UNINITIALIZED, object={location_ = 0x7fff5fbfe500}, key={location_ = 0x7fff5fbfe4f8}, miss_mode=v8::internal::MISS) at ../deps/v8/src/ic.cc:1517
#10 0x0000000100477bf7 in v8::internal::__RT_impl_KeyedLoadIC_Miss (args={<v8::internal::Embedded> = {<No data fields>}, length_ = 2, arguments_ = 0x7fff5fbfe500}, isolate=0x101803200) at ../deps/v8/src/ic.cc:2286
#11 0x0000000100477ae6 in v8::internal::KeyedLoadIC_Miss (args_length=2, args_object=0x7fff5fbfe500, isolate=0x101803200) at ../deps/v8/src/ic.cc:2281
#12 0x00001248fdb072ce in ?? ()
#13 0x00001248fdbe9656 in ?? ()
#14 0x00001248fdbe9c65 in ?? ()
#15 0x00001248fdb2ebdb in ?? ()
#16 0x00001248fdb75591 in ?? ()
#17 0x00001248fdb70185 in ?? ()
#18 0x00001248fdb6c133 in ?? ()
#19 0x00001248fdb5d102 in ?? ()
#20 0x00001248fdb108f4 in ?? ()
#21 0x00001248fdb76196 in ?? ()
#22 0x00001248fdb76029 in ?? ()
#23 0x00001248fdbbad17 in ?? ()
#24 0x00001248fdb2ebdb in ?? ()
#25 0x00001248fdb75591 in ?? ()
#26 0x00001248fdb70185 in ?? ()
#27 0x00001248fdb6c133 in ?? ()
#28 0x00001248fdb5d102 in ?? ()
#29 0x00001248fdb108f4 in ?? ()
#30 0x00001248fdb76196 in ?? ()
#31 0x00001248fdb76029 in ?? ()
#32 0x00001248fdbb6999 in ?? ()
#33 0x00001248fdb2ebdb in ?? ()
#34 0x00001248fdb75591 in ?? ()
#35 0x00001248fdb70185 in ?? ()
#36 0x00001248fdb6c133 in ?? ()
#37 0x00001248fdb5d102 in ?? ()
#38 0x00001248fdb108f4 in ?? ()
#39 0x00001248fdb76196 in ?? ()
#40 0x00001248fdb76029 in ?? ()
#41 0x00001248fdb75c9b in ?? ()
#42 0x00001248fdb2ebdb in ?? ()
#43 0x00001248fdb75591 in ?? ()
#44 0x00001248fdb70185 in ?? ()
#45 0x00001248fdb6c133 in ?? ()
#46 0x00001248fdb5d102 in ?? ()
#47 0x00001248fdb5cacb in ?? ()
#48 0x00001248fdb39998 in ?? ()
#49 0x00001248fdb38aae in ?? ()
#50 0x00001248fdb2aee4 in ?? ()
#51 0x00001248fdb17e97 in ?? ()
#52 0x0000000100341b78 in v8::internal::Invoke (is_construct=false, function={location_ = 0x101857720}, receiver={location_ = 0x101857728}, argc=1, args=0x7fff5fbff490, has_pending_exception=0x7fff5fbff3af) at ../deps/v8/src/execution.cc:119
#53 0x0000000100341634 in v8::internal::Execution::Call (callable={location_ = 0x101857720}, receiver={location_ = 0x101857728}, argc=1, argv=0x7fff5fbff490, pending_exception=0x7fff5fbff3af, convert_receiver=false) at ../deps/v8/src/execution.cc:182
#54 0x0000000100264013 in v8::Function::Call (this=0x101857720, recv={val_ = 0x101857728}, argc=1, argv=0x7fff5fbff490) at ../deps/v8/src/api.cc:4387
#55 0x00000001000164d6 in node::Load (env=0x101606b60) at ../src/node.cc:2552
#56 0x0000000100017a75 in node::CreateEnvironment (isolate=0x101803200, argc=2, argv=0x101603d40, exec_argc=0, exec_argv=0x101603e80) at ../src/node.cc:3209
#57 0x0000000100017b67 in node::Start (argc=2, argv=0x101603d40) at ../src/node.cc:3237
#58 0x000000010003b472 in main (argc=2, argv=0x7fff5fbff768) at ../src/node_main.cc:65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment