[GRASS5] v.out.ascii: Segmentation fault
Jachym Cepicky
jachym.cepicky at centrum.cz
Mon Nov 29 12:55:29 EST 2004
Ok,
On Mon, Nov 29, 2004 at 05:20:46PM +0100, Markus Neteler wrote:
> > [.....]
>
> Now I see: It's the "famous" mysterious (to me) Debian problem:
>
> For some unknown reasons Debian users have to add to
> /etc/ld.so.conf
>
> the directory of the GRASS libs, here:
> /usr/local/grass-5.7.cvs/lib
>
> and run
> ldconfig
>
> I would like to know that solved but have no idea why Debian behaves
> like this (reported earlier by other Debian/GRASS users).
>
> It's probably related to the fact that Debian searches in
> /usr/local/grass-5.7.cvs/lib/tls/i686/mmx/
> ^^^^^^^^^^^^^
> Why this?
>
> Of course we could add a workaround into /etc/Init.sh for
> Debian but that doesn't look like a good solution to me.
>
> Markus
>
Hmm, allright:
vim /etc/ld.so.conf
ldconfig
cd grass57src
./configure --with-cxx --with-postgres-includes=/usr/include/postgresql/ --with-gdal=/usr/bin/gdal-config --with-proj --with-motif --with-glw --with-nls --with-freetype --with-freetype-includes=/usr/include/freetype2 --with-tcltk-includes=/usr/include/tcl8.4
[....]
GRASS is now configured for: i686-pc-linux-gnu
Source directory: /usr/src/grass/grass51
Build directory: /usr/src/grass/grass51
Installation directory: /usr/local/grass-5.7.cvs
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -g -O2
C++ compiler: c++ -g -O2
FORTRAN compiler:
Building shared libraries: yes
NVIZ: yes
X11 support: yes
JPEG support: yes
TIFF support: yes
PNG support: yes
Tcl/Tk support: yes
PostgreSQL support: yes
MySQL support: no
OpenGL(R) support: yes
ODBC support: yes
FFTW support: yes
BLAS support: no
LAPACK support: no
Motif support: yes
FreeType support: yes
GLw support: yes
NLS support: yes
Readline support: no
C++ support: yes
openDWG support: no
GDAL support: yes
OGR support: yes
make
[....]
Started compilation: Po lis 29 18:16:42 CET 2004
Errors in:
Finished compilation: Po lis 29 18:21:41 CET 2004
checkinstall -D
grass57
v.out.ascii ...
Segmetation fault
GRASS 5.7.cvs:~ > strace v.out.ascii novy
execve("/usr/local/grass-5.7.cvs/bin/v.out.ascii", ["v.out.ascii", "novy"], [/* 33 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", 0xbffff028) = -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", 0xbffff028) = -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", 0xbffff028) = -1 ENOENT (No such file or directory)
[.....]
open("/usr/local/grass-5.7.cvs/lib/libcom_err.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libcom_err.so.2", 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\230\n\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=5900, ...}) = 0
old_mmap(NULL, 8996, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x412c8000
old_mmap(0x412ca000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x412ca000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x412cb000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x412cc000
set_thread_area({entry_number:-1 -> 6, base_addr:0x412cbf40, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x4008c000, 54479) = 0
set_tid_address(0x412cbf88) = 29762
rt_sigaction(SIGRTMIN, {0x40b60430, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0) = 0x804b000
brk(0x806c000) = 0x806c000
open("/tmp/grass6-jachym-29697/gisrc", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=88, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4008c000
read(3, "GISDBASE: /home/jachym/grassdata"..., 4096) = 88
read(3, "", 4096) = 0
close(3) = 0
munmap(0x4008c000, 4096) = 0
access("/home/jachym/grassdata/krtiny", F_OK) = 0
stat64("/home/jachym/grassdata/krtiny/mapserv", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
getuid32() = 1000
geteuid32() = 1000
stat64("/home/jachym/grassdata/krtiny/mapserv", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
getuid32() = 1000
geteuid32() = 1000
umask(022) = 022
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
GRASS 5.7.cvs:~ >
What am I doing wrong?
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/20041129/6e4d7f8a/attachment.bin
More information about the grass-dev
mailing list