[GRASS5] Tcl8.4 support?

Hamish hamish_nospam at yahoo.com
Thu Aug 28 23:55:08 EDT 2003


> > > > The CVS HEAD version of NVIZ still doesn't work on Debian Testing
> > > > with tcl8.4.
> > ...
> > > > (gets stuck on "exec")
> > ...
> > > could you add some "strace" into etc/nviz2.2/scripts/nviz2.2_script
> > > to debug the binary problem and send the outcome (at least the
> > > crashing part)?
...
> You would need to use "strace -f ..." to trace child processes. Only
> tracing the top-level process won't tell you very much.


Ok, here is the full log:
http://bambi.otago.ac.nz/hamish/grass/strace-f_nviz_tcl8.4.txt.gz


Here's the bit with the SegFault:   old_mmap() / munmap() ?
(...)
[pid  9394] fcntl64(10, F_GETFL)        = 0 (flags O_RDONLY)
[pid  9394] fstat64(10, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
[pid  9394] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
[pid  9394] _llseek(10, 0, [0], SEEK_CUR) = 0
[pid  9394] read(10, "11 12\n", 4096)   = 6
[pid  9394] close(10)                   = 0
[pid  9394] munmap(0x40015000, 4096)    = 0
[pid  9394] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
Process 9388 resumed
Process 9394 detached
[pid  9388] <... wait4 resumed> [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0, NULL) = 9394
[pid  9388] --- SIGCHLD (Child exited) @ 0 (0) ---
[pid  9388] brk(0)                      = 0x8085000
[pid  9388] brk(0x8089000)              = 0x8089000
[pid  9388] write(2, "child killed: segmentation viola"..., 658child killed: segmentation violation
    while executing
"exec /usr/src/grass5source/grass-5.0.3rc2/dist.i686-pc-linux-gnu/etc/nviz2.2/NVWISH2.2 -f /usr/src/grass5source/grass-5.0.3rc2/dist.i686-pc-linux-gnu/..."
    ("eval" body line 1)
    invoked from within
"eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script $argv -name NVIZ >&@stdout"
    invoked from within
"if {$argv == ""} {
#no arguments 
eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ >&@stdo..."
    (file "/usr/src/grass5source/grass-5.0.3rc2/dist.i686-pc-linux-gnu/bin/nviz" line 16)) = 658
[pid  9388] write(2, "\n", 1
)           = 1
[pid  9388] fcntl64(2, F_GETFL)         = 0x8001 (flags O_WRONLY|O_LARGEFILE)
[pid  9388] fcntl64(2, F_SETFL, O_WRONLY|O_LARGEFILE) = 0
[pid  9388] fcntl64(2, F_GETFL)         = 0x8001 (flags O_WRONLY|O_LARGEFILE)
[pid  9388] fcntl64(1, F_GETFL)         = 0x8001 (flags O_WRONLY|O_LARGEFILE)
[pid  9388] fcntl64(1, F_SETFL, O_WRONLY|O_LARGEFILE) = 0
[pid  9388] fcntl64(1, F_GETFL)         = 0x8001 (flags O_WRONLY|O_LARGEFILE)
[pid  9388] fcntl64(0, F_GETFL)         = 0x2 (flags O_RDWR)
[pid  9388] fcntl64(0, F_SETFL, O_RDWR) = 0
[pid  9388] fcntl64(0, F_GETFL)         = 0x2 (flags O_RDWR)
[pid  9388] write(6, "q", 1 <unfinished ...>
[pid  9390] <... select resumed> )      = 1 (in [5])
[pid  9390] rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
[pid  9390] rt_sigsuspend([] <unfinished ...>
[pid  9388] <... write resumed> )       = 1
[pid  9388] close(6)                    = 0
[pid  9388] kill(9390, SIGRTMIN <unfinished ...>
[pid  9390] --- SIGRTMIN (Real-time signal 0) @ 0 (0) ---
(...)




More information about the grass-dev mailing list