Bug#756983: Error in `osm2pgsql': free(): invalid pointer: 0x00007f4613a62678 ***

Sebastiaan Couwenberg sebastic at xs4all.nl
Mon Aug 4 16:29:00 UTC 2014


On 08/04/2014 05:59 PM, Robert Edmonds wrote:
> I'd be happy to take a look and try to debug the issue to see if it's
> caused by the protobuf-c changes.

Thanks, that's much appreciated.

> However, I'm entirely unfamiliar with osm2pgsql.  Is there any chance
> you could walk me through setting up a test case, or provide a sample
> file and command-line arguments that exhibit the problem?

The basic setup is described in the Operation section of the README file
(/usr/share/doc/osm2pgsql/README.gz).

For my own test case I used a wheezy based database server:

 createdb osm
 createlang plpgsql osm
 psql osm < /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
 psql osm <
/usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
 psql -d osm -c "ALTER TABLE geometry_columns OWNER TO bas"
 psql -d osm -c "ALTER TABLE spatial_ref_sys OWNER TO bas"
 psql osm < ~/git/pkg-grass/osm2pgsql/900913.sql
 echo "CREATE EXTENSION hstore" | psql osm

Adjust the paths for PostgreSQL 9.3 on sid.

OSM PBF files can be downloaded from Geofabrik:

http://download.geofabrik.de/

I used an old one I had lying around.

osm2pgsql command line I used:

osm2pgsql -c -l -s -d <dbname> -U <dbuser> -W -H <dbhost> -v
netherlands-140201.osm.pbf

> Thanks!

And thank you too.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/E88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the Pkg-grass-devel mailing list