Skip to content

Instantly share code, notes, and snippets.

@BenLubar
Last active July 18, 2016 15:54
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 BenLubar/93c545491a4db3d1d6bdd75090474da3 to your computer and use it in GitHub Desktop.
Save BenLubar/93c545491a4db3d1d6bdd75090474da3 to your computer and use it in GitHub Desktop.
root@004cf0a2d661:/usr/src/app# gdb --args node --gdbjit app.js
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from node...done.
(gdb) run
Starting program: /usr/local/bin/node --gdbjit app.js
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6be5700 (LWP 1794)]
[New Thread 0x7ffff63e4700 (LWP 1795)]
[New Thread 0x7ffff5be3700 (LWP 1796)]
[New Thread 0x7ffff53e2700 (LWP 1797)]
18/7 04:56 [1790] - info: NodeBB v1.1.0 Copyright (C) 2013-2014 NodeBB Inc.
18/7 04:56 [1790] - info: This program comes with ABSOLUTELY NO WARRANTY.
18/7 04:56 [1790] - info: This is free software, and you are welcome to redistribute it under certain conditions.
18/7 04:56 [1790] - info:
18/7 04:56 [1790] - info: Time: Mon Jul 18 2016 04:56:51 GMT+0000 (UTC)
18/7 04:56 [1790] - info: Initializing NodeBB v1.1.0
[New Thread 0x7ffff4be1700 (LWP 2003)]
[New Thread 0x7fffe6efe700 (LWP 2004)]
[New Thread 0x7fffe66fd700 (LWP 2005)]
[New Thread 0x7fffe5efc700 (LWP 2006)]
18/7 05:01 [1790] - warn: You have no mongo password setup!
18/7 05:01 [1790] - info: [database] Checking database indices.
Program received signal SIGSEGV, Segmentation fault.
0x0000000000a03420 in v8::internal::GDBJITInterface::EventHandler(v8::JitCodeEvent const*) ()
(gdb) bt
#0 0x0000000000a03420 in v8::internal::GDBJITInterface::EventHandler(v8::JitCodeEvent const*) ()
#1 0x3f28282d3a3f283a in ?? ()
#2 0x5d392d315b7c303a in ?? ()
#3 0x5b2a645c7c2a645c in ?? ()
#4 0x5d2d5a2d417a2d61 in ?? ()
#5 0x305a2d417a2d615b in ?? ()
#6 0x3f28292a5d2d392d in ?? ()
#7 0x7c303a3f282e5c3a in ?? ()
#8 0x2a645c5d392d315b in ?? ()
#9 0x7a2d615b2a645c7c in ?? ()
#10 0x2d615b5d2d5a2d41 in ?? ()
#11 0x2d392d305a2d417a in ?? ()
#12 0x2929292a29292a5d in ?? ()
#13 0x5b282b5c3a3f283f in ?? ()
#14 0x2d615a2d41392d30 in ?? ()
#15 0x5c3a3f282b5d2d7a in ?? ()
#16 0x5a2d41392d305b2e in ?? ()
#17 0x2a292b5d2d7a2d61 in ?? ()
#18 0x293f293f293f2929 in ?? ()
#19 0x00000000242a735c in ?? ()
#20 0x00007fff00003dd3 in ?? ()
#21 0x00000000014b8100 in ?? ()
#22 0x0000000000000000 in ?? ()
root@004cf0a2d661:/usr/src/app# node --gdbjit app.js
18/7 15:53 [708] - info: NodeBB v1.1.0 Copyright (C) 2013-2014 NodeBB Inc.
18/7 15:53 [708] - info: This program comes with ABSOLUTELY NO WARRANTY.
18/7 15:53 [708] - info: This is free software, and you are welcome to redistribute it under certain conditions.
18/7 15:53 [708] - info:
18/7 15:53 [708] - info: Time: Mon Jul 18 2016 15:53:11 GMT+0000 (UTC)
18/7 15:53 [708] - info: Initializing NodeBB v1.1.0
18/7 15:53 [708] - warn: You have no mongo password setup!
18/7 15:53 [708] - info: [database] Checking database indices.
Segmentation fault (core dumped)
root@004cf0a2d661:/usr/src/app# node app.js
18/7 15:53 [725] - info: NodeBB v1.1.0 Copyright (C) 2013-2014 NodeBB Inc.
18/7 15:53 [725] - info: This program comes with ABSOLUTELY NO WARRANTY.
18/7 15:53 [725] - info: This is free software, and you are welcome to redistribute it under certain conditions.
18/7 15:53 [725] - info:
18/7 15:53 [725] - info: Time: Mon Jul 18 2016 15:53:21 GMT+0000 (UTC)
18/7 15:53 [725] - info: Initializing NodeBB v1.1.0
18/7 15:53 [725] - warn: You have no mongo password setup!
18/7 15:53 [725] - info: [database] Checking database indices.
18/7 15:53 [725] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
* nodebb-plugin-imagemagick
* nodebb-plugin-emailer-amazon
18/7 15:53 [725] - info: NodeBB Ready
18/7 15:53 [725] - info: Enabling 'trust proxy'
18/7 15:53 [725] - error: Error: listen EADDRINUSE :::4567
at Object.exports._errnoException (util.js:873:11)
at exports._exceptionWithHostPort (util.js:896:20)
at Server._listen2 (net.js:1250:14)
at listen (net.js:1286:10)
at Server.listen (net.js:1382:5)
at listen (/usr/src/app/src/webserver.js:181:17)
at /usr/src/app/src/webserver.js:58:3
at EventEmitter.<anonymous> (/usr/src/app/src/emitter.js:17:5)
at emitNone (events.js:67:13)
at EventEmitter.emit (events.js:166:7)
at /usr/src/app/src/meta/css.js:117:14
at /usr/src/app/node_modules/async/lib/async.js:726:13
at /usr/src/app/node_modules/async/lib/async.js:52:16
at /usr/src/app/node_modules/async/lib/async.js:269:32
at /usr/src/app/node_modules/async/lib/async.js:44:16
at /usr/src/app/node_modules/async/lib/async.js:723:17
at /usr/src/app/node_modules/async/lib/async.js:167:37
at /usr/src/app/src/meta/css.js:202:8
at /usr/src/app/src/meta/css.js:165:4
at /usr/src/app/node_modules/less/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:82:15)
18/7 15:53 [725] - error: NodeBB address in use, exiting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment