[GRASS5] Tcl8.4 support?

Hamish hamish_nospam at yahoo.com
Sat Sep 13 09:12:40 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
> 
> In retrospect, even tracing the child process won't normally tell you
> much about what caused a segfault. Sometimes it may provide a clue,
> e.g. if a system call failed immediately before the segfault, that's
> often an indication that the code doesn't allow for the call failing. 
> But in most cases, the segfault is unrelated to system calls.
> 
> If the process generated a core file, use a debugger to examine it;
> otherwise, you would have to run NVIZ under a debugger.
> 
> AFAICT from the error message, it's the core NVIZ process which
> crashed; i.e. not the "nviz" script, but the NVWISH2.2 binary
> interpreting nviz2.2_script. To debug that, you would need to emulate
> the "nviz" script by setting up the various environment variables,
> then running NVWISH2.2 under gdb, e.g.:
> 
> 	export GISDBASE=`g.gisenv get=GISDBASE`
> 	export LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
> 	export MAPSET=`g.gisenv get=MAPSET`
> 	gdb /usr/local/grass5/etc/nviz2.2/NVWISH2.2
> 	> run -f /usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script
> 	> -name NVIZ
> 


Ok, copy that.

I'm new to gdb, bear with me. 
   -How to turn on debugging symbols?
   -How to set up symbol tables info? [(gdb) bt f]
      "No symbol table info available."

Further instructions?


Seeing the libc.so.6 makes me ask: can anyone out there running 
Debian 3.0(Woody) compile 5.0.3rc with tcl8.4-dev & tk8.4-dev
and see if NVIZ works? Is this a Debian bug?
(I'm running Debian/Testing(Sarge), grass-5.0.3rc2)


note NVIZ is printing "Version: @(#) 5.0.2 (April 2003)" before 
the copyright notice..?


Hamish


---------------------------------------------------------------------

GRASS:~ > g.version 
GRASS 5.0.3 (August 2003)

GRASS:~ > export GISDBASE=`g.gisenv get=GISDBASE`
GRASS:~ > export LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
GRASS:~ > export MAPSET=`g.gisenv get=MAPSET`
GRASS:~ > gdb /usr/local/grass5/etc/nviz2.2/NVWISH2.2
GNU gdb 5.3-debian
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...
(gdb) run -f /usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ
Starting program: /usr/local/grass5/etc/nviz2.2/NVWISH2.2 -f /usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script -name NVIZ
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 5725)]
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...[New Thread 32769 (LWP 5726)]
[New Thread 16386 (LWP 5727)]
(no debugging symbols found)...

OPTION:   Raster file(s) for Elevation
     key: elevation
required: NO
multiple: YES

Enter the name of an existing Raster file
Enter 'list' for a list of existing Raster files
Hit RETURN to cancel request
> i2
<i2>

Enter the name of an existing Raster file
[...]
Version: @(#) 5.0.2 (April 2003)

Authors: Bill Brown, Terry Baker, Mark Astley, David Gerdes
	modifications: Jaro Hofierka, Bob Covill


Please cite one or more of the following references in publications
where the results of this program were used:
Brown, W.M., Astley, M., Baker, T., Mitasova, H. (1995).
GRASS as an Integrated GIS and Visualization System for
Spatio-Temporal Modeling, Proceedings of Auto Carto 12, Charlotte, N.C.

Mitasova, H., W.M. Brown, J. Hofierka, 1994, Multidimensional
dynamic cartography. Kartograficke listy, 2, p. 37-50.

Mitas L., Brown W. M., Mitasova H., 1997, Role of dynamic
cartography in simulations of landscape processes based on multi-variate
fields. Computers and Geosciences, Vol. 23, No. 4, pp. 437-446

http://www2.gis.uiuc.edu:2280/modviz/viz/nviz.html

The papers are available at
http://www2.gis.uiuc.edu:2280/modviz/
Loading Data
  45%
Update elev null mask
building color table
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5725)]
0x4042452d in vfprintf () from /lib/libc.so.6
(gdb)  bt
#0  0x4042452d in vfprintf () from /lib/libc.so.6
#1  0x4043d386 in vsprintf () from /lib/libc.so.6
#2  0x4042c21a in sprintf () from /lib/libc.so.6
#3  0x0808edd1 in strcpy ()
#4  0x0805c2f8 in strcpy ()
#5  0x08052424 in strcpy ()
#6  0x080506a1 in strcpy ()
#7  0x401357ff in TclInvokeStringCommand () from /usr/lib/libtcl8.4.so.0
#8  0x40136646 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#9  0x4013707c in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#10 0x40137495 in Tcl_Eval () from /usr/lib/libtcl8.4.so.0
#11 0x401387d3 in Tcl_VarEvalVA () from /usr/lib/libtcl8.4.so.0
#12 0x40138807 in Tcl_VarEval () from /usr/lib/libtcl8.4.so.0
#13 0x080536d7 in strcpy ()
#14 0x08053bc2 in strcpy ()
#15 0x0804c207 in strcpy ()
#16 0x40082452 in Tk_MainEx () from /usr/lib/libtk8.4.so.0
#17 0x0805749c in strcpy ()
#18 0x403f6a51 in __libc_start_main () from /lib/libc.so.6
(gdb) info f
Stack level 0, frame at 0xbfffe868:
 eip = 0x4042452d in vfprintf; saved eip 0x4043d386
 called by frame at 0xbfffe938
 Arglist at 0xbfffe868, args: 
 Locals at 0xbfffe868, Previous frame's sp in esp
 Saved registers:
  ebx at 0xbfffe85c, ebp at 0xbfffe868, esi at 0xbfffe860, edi at 0xbfffe864, eip at 0xbfffe86c
(gdb) info args
No symbol table info available.
(gdb) info locals
No symbol table info available.
(gdb) quit
A debugging session is active.
Do you still want to close the debugger?(y or n) y
GRASS:~ > 




More information about the grass-dev mailing list