Skip to content

Instantly share code, notes, and snippets.

/gist:1174d72dd705c671d4aa Secret
Created Apr 5, 2012

Embed
What would you like to do?
suzanne-holloways-macbook:node-v0.7.7 smh8g$ gdb --args ./node_g ../test.js
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ...... done
(gdb) run
Starting program: /Users/smh8g/node-v0.7.7/node_g ../test.js
Reading symbols for shared libraries +++++.......................................................................... done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x951f95b7 in realpath$DARWIN_EXTSN ()
(gdb) bt full
#0 0x951f95b7 in realpath$DARWIN_EXTSN ()
No symbol table info available.
#1 0x00055493 in uv_exepath (buffer=0x101a000 "/Users/smh8g/node-v0.7.7/node_g", size=0xbffff94c) at ../deps/uv/src/unix/darwin.c:86
usize = 2048
result = <value temporarily unavailable, due to optimizations>
fullpath = 0x8657 "[?EԉE??\004$??9\020"
#2 0x00008fb4 in node::SetupProcessObject (argc=2, argv=0xbffffa00) at ../src/node.cc:2165
scope = {
isolate_ = 0x99f000,
prev_next_ = 0x0,
prev_limit_ = 0x0,
is_closed_ = false
}
i = <value temporarily unavailable, due to optimizations>
j = 2
size = 2048
execPath = 0xbffff94c ""
#3 0x0000a826 in node::Start (argc=2, argv=0xbffffa00) at ../src/node.cc:2780
locker = {
has_lock_ = true,
top_level_ = true,
isolate_ = 0x99f000,
static active_ = true
}
handle_scope = {
isolate_ = 0x99f000,
prev_next_ = 0x0,
prev_limit_ = 0x0,
is_closed_ = false
}
context_scope = {
context_ = {
val_ = 0x1014e00
}
}
argv_copy = (char **) 0xa06930
#4 0x0000269e in start ()
No symbol table info available.
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.