Re: [Geoip-general] GeoIP_db_avail segfault
Brought to you by:
tjmather
From: <tjm...@ma...> - 2007-04-02 05:54:54
|
I believe the segfault is due to the fact that GeoIPDBFileName is not initialized yet. If you call _GeoIP_setup_dbfilename before calling GeoIP_db_avail, that should resolve the issue? -TJ ----- Original message ----- From: "Djihed Afifi" <dji...@go...> To: Geo...@li... Date: Sat, 31 Mar 2007 04:37:55 +0100 Subject: [Geoip-general] GeoIP_db_avail segfault Hi, I'm trying to update the Tcl extension for GeoIP [1], the latest code is available here http://svn.arablug.org/tclgeoip/ In particular, the generic/geoiptcl.c file. I'm trying to resolve an issue I have had for long with GeoIP_db_avail. The function segfaults if called first before opening a database. It doesn't segfault if I load a database first, then call it. Is this a known issue? any pointers? I can supply memory dump/valgrind output if needed. Djihed [1] http://www.maxmind.com/app/tcl ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geoip-general mailing list Geo...@li... https://lists.sourceforge.net/lists/listinfo/geoip-general |