pietern/hiredis-node — Issue #8: V8 crashes with fatal error 
Author: TEHEK
Created: 2012-01-27 20:26:25+00:00
State: open

FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed

OS: GNU/Linux, Ubuntu 10.04 (x64)
NPM version: 1.1.0-2
Node version: v0.6.8
Redis version: 2.4.5
node_redis version: 0.7.1
hiredis version: 0.1.13

make version: GNU Make 3.81
gcc version: gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
Target: x86_64-linux-gnu

Steps to reproduce:

1. create new project, install redis_node:

```shell
# mkdir redis-test && cd redis-tests
# npm install redis@0.7.1
```

2. Install and start redis server

3. Checking that redis is ok:

```shell
# node
> require('redis').createClient();
// Prints object

// exit repl
```

4. Install hiredis

```shell
# npm install hiredis@0.1.13
```

5. Redis crashes:

``` shell
# node

> require('redis').createClient()
{ stream:
{ _handle:
{ writeQueueSize: 0,
socket: [Circular],
onread: [Function: onread] },
_pendingWriteReqs: 0,
_flags: 0,
_connectQueueSize: 0,
destroyed: false,
bytesRead: 0,
bytesWritten: 0,
allowHalfOpen: undefined,
_connecting: true,
writable: true,
_events:
{ connect: [Function],
data: [Function],
error: [Function],
close: [Function],
end: [Function],
drain: [Function] } },
options: {},
connection_id: 1,
connected: false,
ready: false,
connections: 0,
should_buffer: false,
command_queue_high_water: 1000,
command_queue_low_water: 0,
max_attempts: null,
command_queue: { tail: [], head: [], offset: 0 },
offline_queue: { tail: [], head: [], offset: 0 },
commands_sent: 0,
connect_timeout: false,
retry_timer: null,
retry_totaltime: 0,
retry_delay: 250,
retry_backoff: 1.7,
attempts: 1,
subscriptions: false,
monitoring: false,
closing: false,
server_info: {},
auth_pass: null,
parser_module: null,
selected_db: null,
port: 6379,
host: '127.0.0.1' }
> FATAL ERROR: v8::HandleScope::Close() Local scope has already been closed
```