<div class="gmail_quote">2010/1/17 Markus Neteler <span dir="ltr">&lt;<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Jan 17, 2010 at 5:12 PM, John A Stevenson<br>
&lt;<a href="mailto:john.stevenson@manchester.ac.uk">john.stevenson@manchester.ac.uk</a>&gt; wrote:<br>
&gt; Luigi Ponti wrote:<br>
...<br>
<div class="im">&gt; There is a lot of nice data on there.  I&#39;ve had some trouble trying to<br>
&gt; import the vector data, however.  I keep getting a buffer-overflow with<br>
&gt; v.in.ogr (see below).  It happens with 6.4.0RC5, and with 6.5.svn.  How did<br>
&gt; you import them?<br>
<br>
</div>Are you on Ubuntu?<br>
<div class="im"><br>
&gt; GRASS 6.4.0RC5<br>
&gt; (global):~/laptop/GIS_datasets/Natural_Earth_GIS_data_10m/physical &gt;<br>
&gt; v.in.ogr ../cultural/10m-populated-places.shp out=cities<br>
&gt; Projection of input dataset and current location appear to match<br>
&gt; Layer: 10m-populated-places<br>
&gt; Importing map 6599 features...<br>
&gt; *** buffer overflow detected ***: v.in.ogr terminated<br>
&gt; ======= Backtrace: =========<br>
&gt; /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7057ed8]<br>
&gt; /lib/tls/i686/cmov/libc.so.6[0xb7056f10]<br>
&gt; /lib/tls/i686/cmov/libc.so.6[0xb7056869]<br>
&gt; /lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb7056754]<br>
&gt; /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x34e)[0xb74eb3be]<br>
&gt; /usr/lib/libgdal1.5.0.so.1(OGR_F_GetFieldAsString+0x28)[0xb74ec1c8]<br>
&gt; v.in.ogr(main+0x21e8)[0x804d9d8]<br>
&gt; /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb6f8db56]<br>
&gt; v.in.ogr[0x804aab1]<br>
<br>
</div>Does ogrinfo work on the data set?<br>
It looks a bike like<br>
 <a href="https://bugs.launchpad.net/ubuntu/+source/libgdal-grass/+bug/308158" target="_blank">https://bugs.launchpad.net/ubuntu/+source/libgdal-grass/+bug/308158</a><br>
 <a href="http://trac.osgeo.org/grass/ticket/402" target="_blank">http://trac.osgeo.org/grass/ticket/402</a><br>
to me.<br>
<font color="#888888"><br>
Markus<br>
</font><div><div></div><div class="h5"><br></div></div></blockquote><div><br>Hi <br><br>If it helps, building Grass from source fixes this issue. I&#39;m on Ubuntu 9.10. and 6.4.0RC5 is working importing shapefiles now.<br>
<br>Cheers<br><br>Will<br> </div></div><br>