[GRASS-dev] Re: ctypes problem with Vect_open_old

Glynn Clements glynn at gclements.plus.com
Sat Jul 23 10:12:33 EDT 2011


Martin Landa wrote:

> sorry, small bug in my sample test. Here is a new attempt - sample script:

> #!/usr/bin/python
> 
> from grass.lib.gis  import *
> from grass.lib.vector import *
> 
> map_obj = Map_info()
> map = pointer(map_obj)
> 
> print os.environ['PYTHONPATH']
> print sizeof(off_t)
> Vect_open_update(map, "a", "")
...
> *** glibc detected *** /usr/bin/python: malloc(): memory corruption:
> 0x09ba9fe8 ***

Does calling G_gisinit() first change anything?

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list