Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created November 6, 2013 20:57
Show Gist options
  • Save springmeyer/daa7705b5e81b8af95bb to your computer and use it in GitHub Desktop.
Save springmeyer/daa7705b5e81b8af95bb to your computer and use it in GitHub Desktop.
ubuntu@ip-10-191-160-114:~/node-OSRM$ gdb node --args node ./node_modules/.bin/_mocha
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/ubuntu/.nvm/v0.10.21/bin/node...done.
(gdb) r
Starting program: /home/ubuntu/.nvm/v0.10.21/bin/node ./node_modules/.bin/_mocha
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7feb700 (LWP 13538)]
․․․․․․․. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
[New Thread 0x7fffeead0700 (LWP 13539)]
[New Thread 0x7fffee2cf700 (LWP 13540)]
[New Thread 0x7fffedace700 (LWP 13541)]
[New Thread 0x7fffed2cd700 (LWP 13542)]
․. 10% . 20% . 30% . 40% . 50% . 60% . 70% . 80% . 90% . 100%
5 passing (1s)
2 pending
2 failing
1) osrm should throw if ini file does not exist:
AssertionError: Missing expected exception..
at Function._throws (assert.js:299:5)
at Function.assert.throws (assert.js:316:11)
at Context.<anonymous> (/home/ubuntu/node-OSRM/test/osrm.test.js:31:16)
at Test.Runnable.run (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:358:10)
at /home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:404:12
at next (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:284:14)
at /home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:293:7
at next (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:237:23)
at Object._onImmediate (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:330:15)
2) osrm should throw if files referenced by ini do not exist:
AssertionError: Missing expected exception..
at Function._throws (assert.js:299:5)
at Function.assert.throws (assert.js:316:11)
at Context.<anonymous> (/home/ubuntu/node-OSRM/test/osrm.test.js:37:16)
at Test.Runnable.run (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runnable.js:194:15)
at Runner.runTest (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:358:10)
at /home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:404:12
at next (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:284:14)
at /home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:293:7
at next (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:237:23)
at Object._onImmediate (/home/ubuntu/node-OSRM/node_modules/mocha/lib/runner.js:261:5)
at processImmediate [as _immediateCallback] (timers.js:330:15)
[Thread 0x7fffeead0700 (LWP 13539) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee2cf700 (LWP 13540)]
0x0000000000efe100 in ?? ()
(gdb) bt
#0 0x0000000000efe100 in ?? ()
#1 0x00007ffff53796d3 in tls_destructor () from /usr/lib/libboost_thread.so.1.46.1
#2 0x00007ffff6fa6c83 in __nptl_deallocate_tsd () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff6fa6ea8 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00007ffff6cd33fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x0000000000000000 in ?? ()
(gdb) list
1 ../deps/cares/src/ares_data.c: No such file or directory.
(gdb) thread apply all bt
Thread 6 (Thread 0x7fffed2cd700 (LWP 13542)):
#0 0x00007ffff537d3b0 in boost::detail::sp_counted_impl_p<boost::detail::thread_data_base>::dispose() () from /usr/lib/libboost_thread.so.1.46.1
#1 0x00007ffff5379799 in tls_destructor () from /usr/lib/libboost_thread.so.1.46.1
#2 0x00007ffff6fa6c83 in __nptl_deallocate_tsd () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff6fa6ea8 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00007ffff6cd33fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7fffedace700 (LWP 13541)):
#0 0x00007ffff6ccf897 in madvise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6fa6f59 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007ffff6cd33fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7fffee2cf700 (LWP 13540)):
#0 0x0000000000efe100 in ?? ()
#1 0x00007ffff53796d3 in tls_destructor () from /usr/lib/libboost_thread.so.1.46.1
#2 0x00007ffff6fa6c83 in __nptl_deallocate_tsd () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff6fa6ea8 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4 0x00007ffff6cd33fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7ffff7feb700 (LWP 13538)):
#0 0x00007ffff6facfd0 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00000000009620dd in v8::internal::LinuxSemaphore::Wait() ()
#2 0x000000000086d527 in v8::internal::RuntimeProfiler::WaitForSomeIsolateToEnterJS() ()
#3 0x0000000000963198 in v8::internal::SignalSender::Run() ()
#4 0x00000000009622f0 in v8::internal::ThreadEntry(void*) ()
#5 0x00007ffff6fa6e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6 0x00007ffff6cd33fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7fed740 (LWP 13535)):
#0 0x00007ffff6fa8148 in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00000000006e515e in uv_thread_join (tid=<optimized out>) at ../deps/uv/src/unix/thread.c:37
#2 0x00000000006e5822 in cleanup () at ../deps/uv/src/unix/threadpool.c:143
#3 0x000000000059419a in __do_global_dtors_aux ()
#4 0x000000000098c491 in _fini ()
#5 0x00007fffffffdcd0 in ?? ()
#6 0x00007ffff7de992d in ?? () from /lib64/ld-linux-x86-64.so.2
#7 0x00007ffff6c1a901 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x00007ffff6c1a985 in exit () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x000000000059d957 in node::Exit(v8::Arguments const&) ()
#10 0x000000000071fdf5 in v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>, v8::internal::Isolate*) ()
---Type <return> to continue, or q <return> to quit---
#11 0x00002284ba006362 in ?? ()
#12 0x00002284ba0143d5 in ?? ()
#13 0x00002284ba0062c1 in ?? ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment