[GRASS-user] GRASS 6.4 and Ubuntu Intrepid

Hello everybody,
after upgrading to Intrepid and rebuilding latest GRASS 6.4 from SVN, I have
got this [1] error with v.in.ogr.
Any idea?

Thanks
Luca
[1]:
GRASS 6.4.svn (spearfish60):~ > *** buffer overflow detected ***: v.in.ogr
terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f7858006887]
/lib/libc.so.6[0x7f7858004750]
/lib/libc.so.6[0x7f7858003d8b]
/lib/libc.so.6(__snprintf_chk+0x7b)[0x7f7858003c5b]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f7858d281a6]
v.in.ogr(main+0x10f9)[0x4056e9]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f7857f25466]
v.in.ogr[0x403a69]
======= Memory map: ========
00400000-00409000 r-xp 00000000 08:05 2515270
/usr/local/grass-6.4.svn/bin/v.in.ogr
00608000-00609000 r--p 00008000 08:05 2515270
/usr/local/grass-6.4.svn/bin/v.in.ogr
00609000-0060a000 rw-p 00009000 08:05 2515270
/usr/local/grass-6.4.svn/bin/v.in.ogr
00da8000-00dc9000 rw-p 00da8000 00:00 0
[heap]
7f784fc98000-7f784fca3000 r-xp 00000000 08:05 4687055
/lib/libnss_files-2.8.90.so
7f784fca3000-7f784fea2000 ---p 0000b000 08:05 4687055
/lib/libnss_files-2.8.90.so
7f784fea2000-7f784fea3000 r--p 0000a000 08:05 4687055
/lib/libnss_files-2.8.90.so
7f784fea3000-7f784fea4000 rw-p 0000b000 08:05 4687055
/lib/libnss_files-2.8.90.so
7f784fea4000-7f784feae000 r-xp 00000000 08:05 4687057
/lib/libnss_nis-2.8.90.so
7f784feae000-7f78500ad000 ---p 0000a000 08:05 4687057
/lib/libnss_nis-2.8.90.so
7f78500ad000-7f78500ae000 r--p 00009000 08:05 4687057
/lib/libnss_nis-2.8.90.so
7f78500ae000-7f78500af000 rw-p 0000a000 08:05 4687057
/lib/libnss_nis-2.8.90.so
7f78500af000-7f78500b7000 r-xp 00000000 08:05 4687053
/lib/libnss_compat-2.8.90.so
7f78500b7000-7f78502b6000 ---p 00008000 08:05 4687053
/lib/libnss_compat-2.8.90.so
7f78502b6000-7f78502b7000 r--p 00007000 08:05 4687053
/lib/libnss_compat-2.8.90.so
7f78502b7000-7f78502b8000 rw-p 00008000 08:05 4687053
/lib/libnss_compat-2.8.90.so
7f78502b8000-7f78502bb000 r-xp 00000000 08:05 4685892
/lib/libgpg-error.so.0.3.0
7f78502bb000-7f78504ba000 ---p 00003000 08:05 4685892
/lib/libgpg-error.so.0.3.0
7f78504ba000-7f78504bb000 rw-p 00002000 08:05 4685892
/lib/libgpg-error.so.0.3.0
7f78504bb000-7f78504d4000 r-xp 00000000 08:05 2163242
/usr/lib/libsasl2.so.2.0.22
7f78504d4000-7f78506d3000 ---p 00019000 08:05 2163242
/usr/lib/libsasl2.so.2.0.22
7f78506d3000-7f78506d4000 r--p 00018000 08:05 2163242
/usr/lib/libsasl2.so.2.0.22
7f78506d4000-7f78506d5000 rw-p 00019000 08:05 2163242
/usr/lib/libsasl2.so.2.0.22
7f78506d5000-7f78506e3000 r-xp 00000000 08:05 2163259
/usr/lib/liblber-2.4.so.2.1.0
7f78506e3000-7f78508e2000 ---p 0000e000 08:05 2163259
/usr/lib/liblber-2.4.so.2.1.0
7f78508e2000-7f78508e3000 r--p 0000d000 08:05 2163259
/usr/lib/liblber-2.4.so.2.1.0
7f78508e3000-7f78508e4000 rw-p 0000e000 08:05 2163259
/usr/lib/liblber-2.4.so.2.1.0
7f78508e4000-7f78508f6000 r-xp 00000000 08:05 4687061
/lib/libresolv-2.8.90.so
7f78508f6000-7f7850af5000 ---p 00012000 08:05 4687061
/lib/libresolv-2.8.90.so
7f7850af5000-7f7850af6000 r--p 00011000 08:05 4687061
/lib/libresolv-2.8.90.so
7f7850af6000-7f7850af7000 rw-p 00012000 08:05 4687061
/lib/libresolv-2.8.90.so
7f7850af7000-7f7850af9000 rw-p 7f7850af7000 00:00 0
7f7850af9000-7f7850afb000 r-xp 00000000 08:05 4685871
/lib/libkeyutils-1.2.so
7f7850afb000-7f7850cfa000 ---p 00002000 08:05 4685871
/lib/libkeyutils-1.2.so
7f7850cfa000-7f7850cfc000 rw-p 00001000 08:05 4685871
/lib/libkeyutils-1.2.so
7f7850cfc000-7f7850d03000 r-xp 00000000 08:05 2165938
/usr/lib/libkrb5support.so.0.1
7f7850d03000-7f7850f02000 ---p 00007000 08:05 2165938
/usr/lib/libkrb5support.so.0.1
7f7850f02000-7f7850f03000 r--p 00006000 08:05 2165938
/usr/lib/libkrb5support.so.0.1
7f7850f03000-7f7850f04000 rw-p 00007000 08:05 2165938
/usr/lib/libkrb5support.so.0.1
7f7850f04000-7f7850f1a000 r-xp 00000000 08:05 4687052
/lib/libnsl-2.8.90.so
7f7850f1a000-7f7851119000 ---p 00016000 08:05 4687052
/lib/libnsl-2.8.90.so
7f7851119000-7f785111a000 r--p 00015000 08:05 4687052
/lib/libnsl-2.8.90.so
7f785111a000-7f785111b000 rw-p 00016000 08:05 4687052
/lib/libnsl-2.8.90.so
7f785111b000-7f785111d000 rw-p 7f785111b000 00:00 0
7f785111d000-7f7851182000 r-xp 00000000 08:05 4686367
/lib/libgcrypt.so.11.4.4
7f7851182000-7f7851381000 ---p 00065000 08:05 4686367
/lib/libgcrypt.so.11.4.4
7f7851381000-7f7851382000 r--p 00064000 08:05 4686367
/lib/libgcrypt.so.11.4.4
7f7851382000-7f7851384000 rw-p 00065000 08:05 4686367
/lib/libgcrypt.so.11.4.4
7f7851384000-7f7851394000 r-xp 00000000 08:05 2163515
/usr/lib/libtasn1.so.3.0.15
7f7851394000-7f7851593000 ---p 00010000 08:05 2163515
/usr/lib/libtasn1.so.3.0.15
7f7851593000-7f7851595000 rw-p 0000f000 08:05 2163515
/usr/lib/libtasn1.so.3.0.15
7f7851595000-7f7851638000 r-xp 00000000 08:05 2163563
/usr/lib/libgnutls.so.26.4.5
7f7851638000-7f7851837000 ---p 000a3000 08:05 2163563
/usr/lib/libgnutls.so.26.4.5
7f7851837000-7f7851841000 r--p 000a2000 08:05 2163563
/usr/lib/libgnutls.so.26.4.5
7f7851841000-7f7851842000 rw-p 000ac000 08:05 2163563
/usr/lib/libgnutls.so.26.4.5
7f7851842000-7f7851865000 r-xp 00000000 08:05 2164895
/usr/lib/libk5crypto.so.3.1
7f7851865000-7f7851a64000 ---p 00023000 08:05 2164895
/usr/lib/libk5crypto.so.3.1
7f7851a64000-7f7851a66000 r--p 00022000 08:05 2164895
/usr/lib/libk5crypto.so.3.1
7f7851a66000-7f7851a67000 rw-p 00024000 08:05 2164895
/usr/lib/libk5crypto.so.3.1
7f7851a67000-7f7851a98000 r-xp 00000000 08:05 2164810
/usr/lib/libidn.so.11.5.37
7f7851a98000-7f7851c98000 ---p 00031000 08:05 2164810
/usr/lib/libidn.so.11.5.37
7f7851c98000-7f7851c99000 r--p 00031000 08:05 2164810
/usr/lib/libidn.so.11.5.37
7f7851c99000-7f7851c9a000 rw-p 00032000 08:05 2164810
/usr/lib/libidn.so.11.5.37
7f7851c9a000-7f7851cdd000 r-xp 00000000 08:05 2163632
/usr/lib/libldap_r-2.4.so.2.1.0
7f7851cdd000-7f7851edc000 ---p 00043000 08:05 2163632
/usr/lib/libldap_r-2.4.so.2.1.0
7f7851edc000-7f7851edd000 r--p 00042000 08:05 2163632
/usr/lib/libldap_r-2.4.so.2.1.0
7f7851edd000-7f7851ede000 rw-p 00043000 08:05 2163632
/usr/lib/libldap_r-2.4.so.2.1.0
7f7851ede000-7f7851ee1000 rw-p 7f7851ede000 00:00 0
7f7851ee1000-7f7851eea000 r-xp 00000000 08:05 4687048
/lib/libcrypt-2.8.90.so
7f7851eea000-7f78520e9000 ---p 00009000 08:05 4687048
/lib/libcrypt-2.8.90.so
7f78520e9000-7f78520ea000 r--p 00008000 08:05 4687048
/lib/libcrypt-2.8.90.so
7f78520ea000-7f78520eb000 rw-p 00009000 08:05 4687048
/lib/libcrypt-2.8.90.so
7f78520eb000-7f7852119000 rw-p 7f78520eb000 00:00 0
7f7852119000-7f7852144000 r-xp 00000000 08:05 2164894
/usr/lib/libgssapi_krb5.so.2.2
7f7852144000-7f7852343000 ---p 0002b000 08:05 2164894
/usr/lib/libgssapi_krb5.so.2.2
7f7852343000-7f7852344000 r--p 0002a000 08:05 2164894
/usr/lib/libgssapi_krb5.so.2.2
7f7852344000-7f7852345000 rw-p 0002b000 08:05 2164894
/usr/lib/libgssapi_krb5.so.2.2
7f7852345000-7f7852348000 r-xp 00000000 08:05 4685934
/lib/libcom_err.so.2.1
7f7852348000-7f7852547000 ---p 00003000 08:05 4685934
/lib/libcom_err.so.2.1
7f7852547000-7f7852548000 r--p 00002000 08:05 4685934
/lib/libcom_err.so.2.1
7f7852548000-7f7852549000 rw-p 00003000 08:05 4685934
/lib/libcom_err.so.2.1
7f7852549000-7f78525e1000 r-xp 00000000 08:05 2164900
/usr/lib/libkrb5.so.3.3
7f78525e1000-7f78527e0000 ---p 00098000 08:05 2164900
/usr/lib/libkrb5.so.3.3
--
View this message in context: http://www.nabble.com/GRASS-6.4-and-Ubuntu-Intrepid-tp20222308p20222308.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Please check that You have only one GDAL and one GRASS version installed.

Maris.

Maybe affected by this bug:
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/271670
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/284910

GDAL can not compiled in ubuntu intrepid, I have no idea about this,
but if you deactivate the ruby and python bindings, it should be
compiled.

LiangXu Wang wrote:

Maybe affected by this bug:
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/271670
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/284910

GDAL can not compiled in ubuntu intrepid, I have no idea about this,
but if you deactivate the ruby and python bindings, it should be
compiled.
____________

I did more testing about this problem, and I discovered this:
- No, I haven't more then 1 version of GDAL or GRASS in my system
- 6.4.0 and 6.2.3 report those errors while building:
Errors in:
/usr/src/grass-6.2.3/raster/r.drain
/usr/src/grass-6.2.3/raster/r.fill.dir
/usr/src/grass-6.2.3/raster/r.terraflow

I'll repeat the test using an older GDAL, and let you know.

Thanks
Luca
--
View this message in context: http://www.nabble.com/GRASS-6.4-and-Ubuntu-Intrepid-tp20222308p20247720.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Casagrande Luca wrote:

LiangXu Wang wrote:

Maybe affected by this bug:
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/271670
https://bugs.launchpad.net/ubuntu/+source/gdal/+bug/284910

GDAL can not compiled in ubuntu intrepid, I have no idea about this,
but if you deactivate the ruby and python bindings, it should be
compiled.
____________

I did more testing about this problem, and I discovered this:
- No, I haven't more then 1 version of GDAL or GRASS in my system
- 6.4.0 and 6.2.3 report those errors while building:
Errors in:
/usr/src/grass-6.2.3/raster/r.drain
/usr/src/grass-6.2.3/raster/r.fill.dir
/usr/src/grass-6.2.3/raster/r.terraflow

I'll repeat the test using an older GDAL, and let you know.

Thanks
Luca

Update:
With Gdal 1.6.0beta v.in.ogr prompt no error and GRASS seem working fine,
but the troubles with:
/usr/src/grass-6.2.3/raster/r.drain
/usr/src/grass-6.2.3/raster/r.fill.dir
/usr/src/grass-6.2.3/raster/r.terraflow
during make remains the same.

Hope this will help someone.
Bye
Luca
--
View this message in context: http://www.nabble.com/GRASS-6.4-and-Ubuntu-Intrepid-tp20222308p20248706.html
Sent from the Grass - Users mailing list archive at Nabble.com.

I did more testing about this problem, and I discovered this:
- No, I haven't more then 1 version of GDAL or GRASS in my system
- 6.4.0 and 6.2.3 report those errors while building:
Errors in:
/usr/src/grass-6.2.3/raster/r.drain
/usr/src/grass-6.2.3/raster/r.fill.dir
/usr/src/grass-6.2.3/raster/r.terraflow

I'll repeat the test using an older GDAL, and let you know.

Thanks
Luca

I can confirm the same errors. I'm using a clean installation of
8.10, with all Grass dependencies installed through Synaptic.
(gdal 1.5.2, Grass 6.4 and 7svn installed).

Output from error.log:

GRASS GIS compilation log
-------------------------
Started compilation: Thu Oct 30 09:48:55 ADT 2008
--
Errors in:
/usr/local/grass6_devel/gui/wxpython/vdigit
/usr/local/grass6_devel/raster/r.drain
/usr/local/grass6_devel/raster/r.fill.dir
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Thu Oct 30 09:56:17 ADT 2008

The error with v.digit is related to the fact that it is not picking
up the self-installed wxwidgets package that I had to fetch. The default
wxwidgets version the ships with Ubuntu 8.10 is only version 2.6.3.

~ Eric.

Hi,
  Just download a new and latest svn version of grass 6.4, and compile
as instructions in README.DEBIAN, get -lgdi error first, and resolved it
by [1]:
  sudo ln
-s /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so /usr/local/lib/libgdi.so

then compiled and installed it with dpkg tool, but still get errors when
run command like g.manual, v.report, r.terraflow etc.[2]

[1] http://svn.osgeo.org/grass/grass/trunk/wxpython/README
[2] http://trac.osgeo.org/grass/ticket/347

  Best regards,
Liangxu Wang

I did more testing about this problem, and I discovered this:
- No, I haven't more then 1 version of GDAL or GRASS in my system
- 6.4.0 and 6.2.3 report those errors while building:
Errors in:
/usr/src/grass-6.2.3/raster/r.drain
/usr/src/grass-6.2.3/raster/r.fill.dir
/usr/src/grass-6.2.3/raster/r.terraflow

I'll repeat the test using an older GDAL, and let you know.

Thanks
Luca

Liangxu Wang wrote:

  Just download a new and latest svn version of grass 6.4, and compile
as instructions in README.DEBIAN, get -lgdi error first, and resolved it
by [1]:
  sudo ln -s /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so /usr/local/lib/libgdi.so

....

[1] http://svn.osgeo.org/grass/grass/trunk/wxpython/README

(ie http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README)

Hi,

FYI we just updated the DebianGIS build rules for 6.4 a few days ago
(it again builds with the instructions found in debian/README.debian).

AFAIU the wx support there is still somewhat in development, please report
any clearly packaging errors to DebianGIS directly:
  http://wiki.debian.org/DebianGis
No idea if Ubuntu follows debian for wx2.8 dir paths.

Hamish