Skip to content

Instantly share code, notes, and snippets.

@abecciu
Created February 23, 2010 02:40
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/311784 to your computer and use it in GitHub Desktop.
Save abecciu/311784 to your computer and use it in GitHub Desktop.
$ gdb --args ~/tmp/node/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: ./node_g test.js http://202.129.49.242:8030/
[Thread debugging using libthread_db enabled]
[New Thread 0xb5b27b70 (LWP 10497)]
DEBUG: [1007] Timeout: undefined
node_g: ../src/node_net.cc:262: static v8::Handle<v8::Value> node::Connection::Connect(const v8::Arguments&): Assertion `connection->host_ == __null' 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 0x08168cf7 in node::Connection::Connect (args=...) at ../src/node_net.cc:262
#5 0x081ab9dc in HandleApiCallHelper<false> (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:783
#6 0x081a996c in Builtin_Impl_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:800
#7 0x081a9952 in Builtin_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:799
#8 0xb5b8c38e in ?? ()
#9 0xb5add281 in ?? ()
#10 0xb5b8d37f in ?? ()
#11 0xb5b9c792 in ?? ()
#12 0xb5b8d842 in ?? ()
#13 0x081bb438 in Invoke (construct=false, func=..., receiver=..., argc=2, args=0xbfffef40, has_pending_exception=0xbfffee4f)
at /home/peter/tmp/node/deps/v8/src/execution.cc:97
#14 0x081bb525 in v8::internal::Execution::Call (func=..., receiver=..., argc=2, args=0xbfffef40, pending_exception=0xbfffee4f)
at /home/peter/tmp/node/deps/v8/src/execution.cc:124
#15 0x0818dfd2 in v8::Function::Call (this=0x8483d74, recv=..., argc=2, argv=0xbfffef40) at /home/peter/tmp/node/deps/v8/src/api.cc:2439
#16 0x0815ff1f in ReallyEmit (self=..., event=..., argc=2, argv=0xbfffef40) at ../src/node_events.cc:65
#17 0x0816035a in node::EventEmitter::Emit (this=0x8482ae8, event=..., argc=2, argv=0xbfffef40) at ../src/node_events.cc:100
#18 0x0816a509 in node::Connection::OnClose (this=0x8482ae8) at ../src/node_net.cc:652
#19 0x0816c69a in node::Connection::on_close (s=0x8482b08) at ../src/node_net.h:151
#20 0x0817bdcb in on_timeout (watcher=0x8482b60, revents=256) at ../deps/evcom/evcom.c:1023
#21 0x0817398a in ev_invoke_pending () at ../deps/libev/ev.c:1997
#22 0x081743e4 in ev_loop (flags=0) at ../deps/libev/ev.c:2359
#23 0x0814fc49 in Loop (args=...) at ../src/node.cc:423
#24 0x081ab9dc in HandleApiCallHelper<false> (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:783
#25 0x081a996c in Builtin_Impl_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:800
#26 0x081a9952 in Builtin_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:799
#27 0xb5b8c38e in ?? ()
#28 0xb5a21cc5 in ?? ()
#29 0xb5b9c799 in ?? ()
#30 0xb5b8d842 in ?? ()
#31 0x081bb438 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
#32 0x081bb525 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
#33 0x0818dfd2 in v8::Function::Call (this=0x8483d4c, recv=..., argc=1, argv=0xbffff3b0) at /home/peter/tmp/node/deps/v8/src/api.cc:2439
#34 0x08153839 in Load (argc=3, argv=0xbffff7b4) at ../src/node.cc:1115
#35 0x08153eda in main (argc=3, argv=0xbffff7b4) at ../src/node.cc:1284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment