kuno/GeoIP — Issue #29: Segfault on async lookup
Author: Niek
Created: 2012-01-18 11:48:30+00:00
State: open

I upgraded to the latest node version, and now the geoip async lookup calls cause a segfault. Here is some sample code:
```javascript
var geoip = require('geoip');
var country = new geoip.Country('./geoip.dat');
country.lookup('127.0.0.1', function(err, country_obj) {
if(err) throw err;
console.log(country_obj);
});
```
Running this results in:
```bash
$ node testcase.js
Segmentation fault
$ node -v
v0.6.7
$ npm ls | grep geoip
├── geoip@0.4.5
```
The lookupSync calls still work as expected. I'm using GeoIP-1.4.8 by the way.