Re: [Geoip-general] GeoIP_db_avail segfault
Brought to you by:
tjmather
From: Djihed A. <dji...@go...> - 2007-04-03 17:09:52
|
That solved it, thank you. Shouldn't _GeoIP_setup_dbfilename be in GeoIP.h ? As I'm developing it I'm looking at GeoIP.h, is there another place for documentation on developing against the C API? Djihed في ن، 02-04-2007 عند 01:54 -0400 ، كتب tjm...@ma...: > 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 -- Have a project you would like to be translated to Arabic? Let us know: http://wiki.arabeyes.org/Translation_requests Blog: http://djihed.com |