[GRASS-dev] v.in.ogr - Buffer overflow error.v.in.ogr buffer overflow detected

Hi,

I know this problem has crept up before for some people, but has anyone encountered this, or resolved this problem using a 9.10 build of Ubuntu?
Any advice would be appreciated,

Casey

GRASS 6.4.0svn (NewShoshoni):~ > *** buffer overflow detected ***: v.in.ogr terminated
======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x37)[0x7fe5714725f7]

/lib/libc.so.6[0x7fe5714715a0]

/lib/libc.so.6[0x7fe571470c9b]

/lib/libc.so.6(__snprintf_chk+0x7a)[0x7fe571470b6a]

/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x302)[0x7fe5721924d2]

v.in.ogr(main+0x279b)[0x407237]

/lib/libc.so.6(__libc_start_main+0xfd)[0x7fe571399abd]

v.in.ogr[0x4039d9]

======= Memory map: ======== 00400000-0040a000 r-xp 00000000 08:01 17900 /usr/local/grass-6.4.0svn/bin/v.in.ogr
00609000-0060a000 r--p 00009000 08:01 17900 /usr/local/grass-6.4.0svn/bin/v.in.ogr
0060a000-0060b000 rw-p 0000a000 08:01 17900 /usr/local/grass-6.4.0svn/bin/v.in.ogr
01346000-01367000 rw-p 00000000 00:00 0 [heap] 7fe5680ce000-7fe5680da000 r-xp 00000000 08:01 601 /lib/libnss_files-2.10.1.so 7fe5680da000-7fe5682d9000 ---p 0000c000 08:01 601 /lib/libnss_files-2.10.1.so 7fe5682d9000-7fe5682da000 r--p 0000b000 08:01 601 /lib/libnss_files-2.10.1.so 7fe5682da000-7fe5682db000 rw-p 0000c000 08:01 601 /lib/libnss_files-2.10.1.so 7fe5682db000-7fe5682e5000 r-xp 00000000 08:01 611 /lib/libnss_nis-2.10.1.so 7fe5682e5000-7fe5684e4000 ---p 0000a000 08:01 611 /lib/libnss_nis-2.10.1.so 7fe5684e4000-7fe5684e5000 r--p 00009000 08:01 611 /lib/libnss_nis-2.10.1.so 7fe5684e5000-7fe5684e6000 rw-p 0000a000 08:01 611 /lib/libnss_nis-2.10.1.so 7fe5684e6000-7fe5684ed000 r-xp 00000000 08:01 597 /lib/libnss_compat-2.10.1.so 7fe5684ed000-7fe5686ed000 ---p 00007000 08:01 597 /lib/libnss_compat-2.10.1.so 7fe5686ed000-7fe5686ee000 r--p 00007000 08:01 597 /lib/libnss_compat-2.10.1.so 7fe5686ee000-7fe5686ef000 rw-p 00008000 08:01 597 /lib/libnss_compat-2.10.1.so 7fe5686ef000-7fe5687e3000 r-xp 00000000 08:01 16382 /usr/lib/libfftw3.so.3.2.3 7fe5687e3000-7fe5689e2000 ---p 000f4000 08:01 16382 /usr/lib/libfftw3.so.3.2.3 7fe5689e2000-7fe5689e9000 r--p 000f3000 08:01 16382 /usr/lib/libfftw3.so.3.2.3 7fe5689e9000-7fe5689ea000 rw-p 000fa000 08:01 16382 /usr/lib/libfftw3.so.3.2.3 7fe5689ea000-7fe568a28000 r-xp 00000000 08:01 592 /lib/libncurses.so.5.7 7fe568a28000-7fe568c28000 ---p 0003e000 08:01 592 /lib/libncurses.so.5.7 7fe568c28000-7fe568c2c000 r--p 0003e000 08:01 592 /lib/libncurses.so.5.7 7fe568c2c000-7fe568c2d000 rw-p 00042000 08:01 592 /lib/libncurses.so.5.7 7fe568c2d000-7fe568c33000 r-xp 00000000 08:01 789964 /usr/lib/grass64/lib/libgrass_gmath.6.4.0RC5.so
7fe568c33000-7fe568e32000 ---p 00006000 08:01 789964 /usr/lib/grass64/lib/libgrass_gmath.6.4.0RC5.so
7fe568e32000-7fe568e33000 r--p 00005000 08:01 789964 /usr/lib/grass64/lib/libgrass_gmath.6.4.0RC5.so
7fe568e33000-7fe568e34000 rw-p 00006000 08:01 789964 /usr/lib/grass64/lib/libgrass_gmath.6.4.0RC5.so
7fe568e34000-7fe568e38000 r-xp 00000000 08:01 789978 /usr/lib/grass64/lib/libgrass_vask.6.4.0RC5.so
7fe568e38000-7fe569037000 ---p 00004000 08:01 789978 /usr/lib/grass64/lib/libgrass_vask.6.4.0RC5.so
7fe569037000-7fe569038000 r--p 00003000 08:01 789978 /usr/lib/grass64/lib/libgrass_vask.6.4.0RC5.so
7fe569038000-7fe569039000 rw-p 00004000 08:01 789978 /usr/lib/grass64/lib/libgrass_vask.6.4.0RC5.so
7fe569039000-7fe56903a000 rw-p 00000000 00:00 0 7fe56903a000-7fe569043000 r-xp 00000000 08:01 789982 /usr/lib/grass64/lib/libgrass_I.6.4.0RC5.so 7fe569043000-7fe569242000 ---p 00009000 08:01 789982 /usr/lib/grass64/lib/libgrass_I.6.4.0RC5.so 7fe569242000-7fe569243000 r--p 00008000 08:01 789982 /usr/lib/grass64/lib/libgrass_I.6.4.0RC5.so 7fe569243000-7fe569244000 rw-p 00009000 08:01 789982 /usr/lib/grass64/lib/libgrass_I.6.4.0RC5.so 7fe569244000-7fe569250000 r-xp 00000000 08:01 16454 /usr/lib/gdal15plugins/ogr_GRASS.so 7fe569250000-7fe56944f000 ---p 0000c000 08:01 16454 /usr/lib/gdal15plugins/ogr_GRASS.so 7fe56944f000-7fe569450000 r--p 0000b000 08:01 16454 /usr/lib/gdal15plugins/ogr_GRASS.so 7fe569450000-7fe569451000 rw-p 0000c000 08:01 16454 /usr/lib/gdal15plugins/ogr_GRASS.so 7fe569451000-7fe569454000 r-xp 00000000 08:01 578 /lib/libgpg-error.so.0.4.0 7fe569454000-7fe569653000 ---p 00003000 08:01 578 /lib/libgpg-error.so.0.4.0 7fe569653000-7fe569654000 r--p 00002000 08:01 578 /lib/libgpg-error.so.0.4.0
7fe569654000-7fe569655000 rw-p 00003000 08:01 578 /lib/libgpg-error.so.0.4.0
7fe569655000-7fe569665000 r-xp 00000000 08:01 3333 /usr/lib/libtasn1.so.3.1.5
7fe569665000-7fe569864000 ---p 00010000 08:01 3333 /usr/lib/libtasn1.so.3.1.5
7fe569864000-7fe569865000 r--p 0000f000 08:01 3333 /usr/lib/libtasn1.so.3.1.5
7fe569865000-7fe569866000 rw-p 00010000 08:01 3333 /usr/lib/libtasn1.so.3.1.5
7fe569866000-7fe56987f000 r-xp 00000000 08:01 3277 /usr/lib/libsasl2.so.2.0.23
7fe56987f000-7fe569a7e000 ---p 00019000 08:01 3277 /usr/lib/libsasl2.so.2.0.23
7fe569a7e000-7fe569a7f000 r--p 00018000 08:01 3277 /usr/lib/libsasl2.so.2.0.23
7fe569a7f000-7fe569a80000 rw-p 00019000 08:01 3277 /usr/lib/libsasl2.so.2.0.23
7fe569a80000-7fe569a96000 r-xp 00000000 08:01 638 /lib/libresolv-2.10.1.so
7fe569a96000-7fe569c95000 ---p 00016000 08:01 638 /lib/libresolv-2.10.1.so
7fe569c95000-7fe569c96000 r--p 00015000 08:01 638 /lib/libresolv-2.10.1.so
7fe569c96000-7fe569c97000 rw-p 00016000 08:01 638 /lib/libresolv-2.10.1.so

Casey Vandenberg wrote:

Hi,

I know this problem has crept up before for some people, but has anyone encountered this, or resolved this problem using a 9.10 build of Ubuntu?
Any advice would be appreciated,

It seems there are two versions of grass installed, you are using 6.4.0svn, and gdal/ogr links against 6.4.0RC5. That could be a problem, see

GRASS 6.4.0svn (NewShoshoni):~ >

and

                                              /usr/local/grass-6.4.0svn/bin/v.in.ogr

but

/usr/lib/grass64/lib/libgrass_I.6.4.0RC5.so

and

/usr/lib/gdal15plugins/ogr_GRASS.so

Maybe it helps to uninstall 6.4.0RC5, also removing the GDAL-GRASS plugin.

Just a guess,

Markus M

On Mon, Feb 8, 2010 at 7:10 PM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:

Casey Vandenberg wrote:

I know this problem has crept up before for some people, but has anyone
encountered this, or resolved this problem using a 9.10 build of Ubuntu?

Besides the other suggestions, also
http://trac.osgeo.org/grass/ticket/402
(resolved) comes to mind.

In the ticket they say that GDAL 1.5 is causing problems on Ubuntu and an
update to 1.6 helped (you use /usr/lib/gdal15plugins/).

Markus