node-hash-ring icon indicating copy to clipboard operation
node-hash-ring copied to clipboard

Segmentation fault when node name >= 29 chars

Open PipelineBaron opened this issue 13 years ago • 0 comments

I can reproduce this segmentation fault 100% on Mac OSX

var hash_ring = require("hash_ring");
var ring = new hash_ring({"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": 1});

i get the following when running node in GDB

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000104000000
0x00000001009e61f5 in HashRing::HashRing (this=0x1020004b0, weight_hash=
        {<v8::Handle<v8::Object>> = {val_ = 0x7fff5fbfdf70}, <No data fields>})
    at hash_ring.cc:81

PipelineBaron avatar Jun 29 '12 23:06 PipelineBaron