[GRASS5] v.out.ascii: Segmentation fault
Jachym Cepicky
jachym.cepicky at centrum.cz
Wed Dec 1 13:14:00 EST 2004
hallo,
On Wed, Dec 01, 2004 at 09:50:46AM +1300, Hamish wrote:
> [....]
> NVIZ on Debian requires tcltk 8.3 dev packages
>
>
>
> on debian I use:
>
> CFLAGS="-g -Wall" ./configure \
> --with-tcltk-includes=/usr/include/tcl8.3 \
> --with-postgres-includes=/usr/include/postgresql \
> --with-motif --with-motif-includes=/usr/X11R6/include \
> --with-readline --with-gdal --with-cxx --with-glw \
> --with-freetype --with-freetype-includes=/usr/include/freetype2 \
> 2>&1 | tee config_log.txt
>
>
> any everything works fine..
>
> ?
> hope it helps
> Hamish
no, it didn't :-(
CFLAGS="-g -Wall" ./configure --with-tcltk-includes=/usr/include/tcl8.3 --with-postgres-includes=/usr/include/postgresql --with-motif --with-motif-includes=/usr/X11R6/include --with-readline --with-gdal --with-cxx --with-glw --with-freetype --with-freetype-includes=/usr/include/freetype2 2>&1 |tee config_log.txt
make
(no problem)
checkinstall -D
grass57
GRASS 5.7.cvs:~ > strace v.out.ascii in=novy out=pokus format=point
execve("/usr/local/grass-5.7.cvs/bin/v.out.ascii", ["v.out.ascii", "in=novy", "out=pokus", "format=point"], [/* 32 vars */]) = 0
uname({sys="Linux", node="trava", ...}) = 0
brk(0) = 0x804b000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx/cmov/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx/cmov", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/cmov/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686/cmov", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/mmx/cmov/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/mmx/cmov", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/mmx/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/mmx", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/cmov/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/cmov", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/i686/mmx/cmov/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/i686/mmx/cmov", 0xbffff038) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/i686/mmx/libgrass_vect.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/i686/mmx", 0xbffff038) = -1 ENOENT (No such file or directory)
[.....]
but ldd seems to work fine:
GRASS 5.7.cvs:~ > ldd /usr/local/grass-5.7.cvs/bin/v.out.ascii in=novy out=pokus format=point
/usr/local/grass-5.7.cvs/bin/v.out.ascii:
libgrass_vect.so => /usr/local/grass-5.7.cvs/lib/libgrass_vect.so (0x40018000)
libgrass_dig2.so => /usr/local/grass-5.7.cvs/lib/libgrass_dig2.so (0x40045000)
libgrass_dgl.so => /usr/local/grass-5.7.cvs/lib/libgrass_dgl.so (0x40058000)
libgrass_rtree.so => /usr/local/grass-5.7.cvs/lib/libgrass_rtree.so (0x4006e000)
libgrass_linkm.so => /usr/local/grass-5.7.cvs/lib/libgrass_linkm.so (0x40074000)
libgrass_dbmiclient.so => /usr/local/grass-5.7.cvs/lib/libgrass_dbmiclient.so (0x40076000)
libgrass_dbmibase.so => /usr/local/grass-5.7.cvs/lib/libgrass_dbmibase.so (0x4007f000)
libgdal.so.1 => /usr/lib/libgdal.so.1 (0x4009b000)
libodbc.so.1 => /usr/lib/libodbc.so.1 (0x40406000)
libxerces-c.so.25 => /usr/lib/libxerces-c.so.25 (0x4047e000)
libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0x40812000)
libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x4085f000)
libdf.so.4 => /usr/lib/libdf.so.4 (0x40881000)
libungif.so.4 => /usr/lib/libungif.so.4 (0x40920000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40929000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40947000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40995000)
libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0x409ba000)
libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0x409dd000)
libz.so.1 => /usr/lib/libz.so.1 (0x40b4a000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x40b5d000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x40b6d000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x40b90000)
libpq.so.3 => /usr/lib/libpq.so.3 (0x40b93000)
libgrass_gis.so => /usr/local/grass-5.7.cvs/lib/libgrass_gis.so (0x40bb2000)
libgrass_datetime.so => /usr/local/grass-5.7.cvs/lib/libgrass_datetime.so (0x40c34000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x40c3d000)
libxerces-c.so.21 => /usr/lib/libxerces-c.so.21 (0x40d78000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40ff3000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x410ad000)
libltdl.so.3 => /usr/lib/libltdl.so.3 (0x410b6000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x410be000)
libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x410ef000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x411ee000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0x41257000)
libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0x41283000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0x41295000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x412ab000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x412cd000)
When I run
GRASS 5.7.cvs:~ > strace ls
execve("/bin/ls", ["ls"], [/* 32 vars */]) = 0
uname({sys="Linux", node="trava", ...}) = 0
brk(0) = 0x805b000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx/cmov", 0xbffff088) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686/mmx", 0xbffff088) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686/cmov", 0xbffff088) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/i686/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/i686", 0xbffff088) = -1 ENOENT (No such file or directory)
open("/usr/local/grass-5.7.cvs/lib/tls/mmx/cmov/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/grass-5.7.cvs/lib/tls/mmx/cmov", 0xbffff088) = -1 ENOENT (No such file or directory)
and ls without GRASS session
jachym at trava:~$ strace ls
execve("/bin/ls", ["ls"], [/* 19 vars */]) = 0
uname({sys="Linux", node="trava", ...}) = 0
brk(0) = 0x805b000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=56087, ...}) = 0
old_mmap(NULL, 56087, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \33\0\000"..., 512) = 512
apparently no problem (or? what about the /etc/ld.so.nohwcap etc. ?)
linking from /usr/local/grass-5.7.cvs/lib/tls..... to
/usr/local/grass-5.7.cvs/lib does not help
cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/local/lib
/usr/lib/atlas
/usr/lib
/usr/local/grass-5.7.cvs/lib
echo $LD_LIBRARY_PATH (within grass session)
/usr/local/grass-5.7.cvs/lib
I did last update, before Radim changed the v.in/out.ascii format. It was
running well. Now I wanted tu update and enjoy the new features .....
.... and here I have it :-(
With the cvs snapshot from http://grass.itc.it/grass57/binary/linux/snapshot/
was it the same.
If you can help thank you, if not, thank you anyhow,
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.fle.czu.cz/~jachym/gnupg_public_key/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20041201/7989fb9b/attachment.bin
More information about the grass-dev
mailing list