Skip to content

Instantly share code, notes, and snippets.

@abecciu
Created February 23, 2010 02:57
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/311802 to your computer and use it in GitHub Desktop.
Save abecciu/311802 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: /home/peter/tmp/node/node_g test.js http://202.129.49.242:8030/
[Thread debugging using libthread_db enabled]
[New Thread 0xb5b27b70 (LWP 10867)]
DEBUG: [1006] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: Error: undefined
[Thread 0xb5b27b70 (LWP 10867) 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 10877)]
DEBUG: [1008] Timeout: undefined
DEBUG: Error: undefined
[Thread 0xb5b27b70 (LWP 10877) 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 10883)]
DEBUG: [1006] Timeout: undefined
DEBUG: [60005] Timeout: undefined
DEBUG: [60003] Timeout: undefined
DEBUG: [60004] Timeout: undefined
DEBUG: Closing...
Program received signal SIGSEGV, Segmentation fault.
0x08464898 in ?? ()
(gdb) backtrace
#0 0x08464898 in ?? ()
#1 0x0817bbf2 in on_timeout (watcher=0x8481b60, revents=256) at ../deps/evcom/evcom.c:1019
#2 0x081737da in ev_invoke_pending () at ../deps/libev/ev.c:1997
#3 0x08174234 in ev_loop (flags=0) at ../deps/libev/ev.c:2359
#4 0x0814fc49 in Loop (args=...) at ../src/node.cc:423
#5 0x081ab82c in HandleApiCallHelper<false> (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:783
#6 0x081a97bc in Builtin_Impl_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:800
#7 0x081a97a2 in Builtin_HandleApiCall (args=...) at /home/peter/tmp/node/deps/v8/src/builtins.cc:799
#8 0xb5b8c38e in ?? ()
#9 0xb5a21cc5 in ?? ()
#10 0xb5b9c799 in ?? ()
#11 0xb5b8d842 in ?? ()
#12 0x081bb288 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
#13 0x081bb375 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
#14 0x0818de22 in v8::Function::Call (this=0x8482d4c, recv=..., argc=1, argv=0xbffff3b0) at /home/peter/tmp/node/deps/v8/src/api.cc:2439
#15 0x08153839 in Load (argc=3, argv=0xbffff7b4) at ../src/node.cc:1115
#16 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