joyent/node — Issue #2498: segfault in v0.6.7 (possibly in a node_crypto.cc thread pool call?)
Author: ry
Created: 2012-01-09 23:01:01+00:00
State: open

```
~> node -v
v0.6.7
~> which node
/usr/local/bin/node
~> npm
Segmentation fault: 11
~> which npm
/usr/local/bin/npm
~> gdb --args node `which npm` -v
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
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 "x86_64-apple-darwin"...Reading symbols for shared libraries ........... done

(gdb) r
Starting program: /usr/local/bin/node /usr/local/bin/npm -v
Reading symbols for shared libraries ++++++++++.......................................................................................................................... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000950
0x00000001000570e5 in v8::HandleScope::RawClose () at node_crypto.h:166
166	return ss;
(gdb) where
#0 0x00000001000570e5 in v8::HandleScope::RawClose () at node_crypto.h:166
#1 0x0000000100011597 in v8::HandleScope::Close () at /Users/derek/Downloads/node-v0.6.7/deps/v8/include/v8.h:3953
#2 0x0000000100011597 in Stat (args=@0x7fff5fbff288) at v8.h:343
#3 0x0000000100072f8e in v8::internal::Builtin_HandleApiCall () at node_crypto.h:166
Previous frame inner to this frame (gdb could not unwind past this frame)
(gdb)
```