Skip to content

Instantly share code, notes, and snippets.

@abecciu
Created February 23, 2010 02:55
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 abecciu/311799 to your computer and use it in GitHub Desktop.
Save abecciu/311799 to your computer and use it in GitHub Desktop.
$ gdb --args ./node_g test.js http://202.129.49.242:8030/
GNU gdb (GDB) 7.0-ubuntu
......
Reading symbols from /home/peter/tmp/node/node_g...done.
(gdb) run
Starting program: /home/peter/tmp/node/node_g test.js http://202.129.49.242:8030/
[Thread debugging using libthread_db enabled]
[New Thread 0xb5b27b70 (LWP 10797)]
DEBUG: [1005] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: Error: undefined
[Thread 0xb5b27b70 (LWP 10797) exited]
Program exited normally.
(gdb) run
Starting program: /home/peter/tmp/node/node_g test.js http://202.129.49.242:8030/
[Thread debugging using libthread_db enabled]
[New Thread 0xb5b27b70 (LWP 10809)]
DEBUG: [1008] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: Closing...
node_g: ../src/node_net.cc:202: virtual node::Connection::~Connection(): Assertion `stream_.sendfd < 0 && "garbage collecting open Connection"' failed.
Program received signal SIGABRT, Aborted.
0xb7fe2430 in __kernel_vsyscall ()
(gdb) backtrace
#0 0xb7fe2430 in __kernel_vsyscall ()
#1 0xb7cbb4d1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7cbe932 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7cb4648 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0x081687fc in ~Connection (this=0x8481ae8, __in_chrg=<value optimized out>) at ../src/node_net.cc:202
#5 0x08166cda in ~HTTPConnection (this=0x8481ae8, __in_chrg=<value optimized out>) at ../src/node_http.h:10
#6 0x0815726b in node::ObjectWrap::WeakCallback (value=..., data=0x8481ae8) at ../src/node_object_wrap.h:82
#7 0x081d78e4 in v8::internal::GlobalHandles::Node::PostGarbageCollectionProcessing (this=0x84509e8)
at /home/peter/tmp/node/deps/v8/src/global-handles.cc:179
#8 0x081d6a60 in v8::internal::GlobalHandles::PostGarbageCollectionProcessing () at /home/peter/tmp/node/deps/v8/src/global-handles.cc:374
#9 0x081e08b5 in v8::internal::Heap::PerformGarbageCollection (space=v8::internal::OLD_POINTER_SPACE, collector=v8::internal::MARK_COMPACTOR,
tracer=0xbfffeed0) at /home/peter/tmp/node/deps/v8/src/heap.cc:580
#10 0x081e0433 in v8::internal::Heap::CollectGarbage (requested_size=0, space=v8::internal::OLD_POINTER_SPACE)
at /home/peter/tmp/node/deps/v8/src/heap.cc:419
#11 0x081e0316 in v8::internal::Heap::CollectAllGarbage (force_compaction=false) at /home/peter/tmp/node/deps/v8/src/heap.cc:369
#12 0x081e7330 in v8::internal::Heap::IdleNotification () at /home/peter/tmp/node/deps/v8/src/heap.cc:3095
#13 0x083126d4 in v8::internal::V8::IdleNotification () at /home/peter/tmp/node/deps/v8/src/v8.cc:183
#14 0x0818f076 in v8::V8::IdleNotification () at /home/peter/tmp/node/deps/v8/src/api.cc:2814
#15 0x0814e327 in GCTimeout (watcher=0x843cd40, revents=256) at ../src/node.cc:83
#16 0x08173872 in ev_invoke_pending () at ../deps/libev/ev.c:1997
#17 0x081742cc in ev_loop (flags=0) at ../deps/libev/ev.c:2359
#18 0x0814fc49 in Loop (args=...) at ../src/node.cc:423
#19 0x081ab8bc in HandleApiCallHelper<false> (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:783
#20 0x081a984c in Builtin_Impl_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:800
#21 0x081a9832 in Builtin_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:799
#22 0xb5b8c38e in ?? ()
#23 0xb5a21cc5 in ?? ()
#24 0xb5b9c799 in ?? ()
#25 0xb5b8d842 in ?? ()
#26 0x081bb318 in Invoke (construct=false, func=..., receiver=..., argc=1, args=0xbffff3b0, has_pending_exception=0xbffff33f)
at /home/peter/tmp/node/deps/v8/src/execution.cc:97
#27 0x081bb405 in v8::internal::Execution::Call (func=..., receiver=..., argc=1, args=0xbffff3b0, pending_exception=0xbffff33f)
at /home/peter/tmp/node/deps/v8/src/execution.cc:124
#28 0x0818deb2 in v8::Function::Call (this=0x8482d4c, recv=..., argc=1, argv=0xbffff3b0) at /home/peter/tmp/node/deps/v8/src/api.cc:2439
#29 0x08153839 in Load (argc=3, argv=0xbffff7b4) at ../src/node.cc:1115
#30 0x08153eda in main (argc=3, argv=0xbffff7b4) at ../src/node.cc:1284
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment