Comments (7)
I think this had something to do with the way I was trying to use this library... This crash happened in a docker container. Outside the container it works fine.
from geoip.
It looks like if I use godep go build -a github.com/abh/geoip
it works, but if I set my GOPATH
to the _workspace
directory manually and just do go build -a github.com/abh/geoip
without godoep, it fails.
This seems like more of a general go/godep issue. Feel free to close this issue.
from geoip.
Actually after running this a few times I realized that sometimes it prints
Error Traversing Database for ipnum = 3484092211 - Perhaps database is corrupt?
Error Traversing Database for ipnum = 2130706433 - Perhaps database is corrupt?
and other times it crashes and it has nothing to do with godop. It's just a race condition.
from geoip.
It appears you are trying to use a GeoIP2/GeoLite2 database with this library. This library only supports the Legacy format, which you can find at http://dev.maxmind.com/geoip/legacy/geolite/.
from geoip.
Oh, I see. That makes sense. Is there a way to check the format and return an error?
from geoip.
It turns out this is an issue with libGeoIP and GEOIP_MEMORY_CACHE
mode that causes a segault. This isn't a bug with the Go library.
from geoip.
@vikstrous, the segfault was fixed in libGeoIP 1.6.7. Should this issue be closed now?
from geoip.
Related Issues (14)
- No way to download GeoLite Region database needed for unit testing HOT 4
- compiling error HOT 3
- No such file or directory HOT 2
- Sort out branches so gopkg.in can make versioned import paths
- Any plan to support other geolocation library?
- Can't go get the package HOT 7
- Support GeoIP_open_type
- Expose opened database type HOT 2
- Programs using this package won't build because of an error in geoip-demo.go
- GeoIP.h: No such file or directory HOT 6
- Message at install via go get HOT 3
- Mutex protection is insufficient HOT 4
- Use thread-safe API in GeoIP 1.5.x HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoip.