[GRASS5] nviz crash on debian with tcltk8.4
Hamish
hamish_nospam at yahoo.com
Sun May 2 23:56:05 EDT 2004
> finally getting around to looking at why NVIZ crashes on
> Debian/testing when compliled with tcltk8.4. Here's the output of a
> gdb session, maybe someone has ideas of where to look or what to try
> next.
>
> GRASS 5.0.3 compiled with:
> CFLAGS="-march=i686 -Wall -ggdb" ./configure \
> --with-tcltk-includes=/usr/include/tcl8.4 \
Sorry, left out some info in the previous email.
The previous result was with any of the following added to the end of
XTRA_LDFLAGS in src.contrib/GMSL/NVIZ2.2/src/Gmakefile
-lpthread
-D_REENTRANT
-lpthread -D_REENTRANT
A previous version of Debian's tcltk8.4 worked with the -lpthread flag.
I just tried without any of those, and it crashes a bit earlier (never
make it to the menu). ... and recompiling with the extra flags
again makes it crashes at startup now .. shrug.
Here's the gdb session for the crash when no extra compile flags are used:
(or now with the flags as well)
G:grass-5.0.3 > gdb $GISBASE/etc/nviz2.2/NVWISH2.2
GNU gdb 6.1-debian
Copyright 2004 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)...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script -q
Starting program: /usr/lib/grass5/etc/nviz2.2/NVWISH2.2 -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script -q
(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)...(no debugging symbols found)...[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 18566)]
(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 32769 (LWP 18568)]
[New Thread 16386 (LWP 18569)]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
Version: @(#) 5.0.3 (October 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/
Adding panels from /usr/lib/grass5/etc/nviz2.2/scripts
Nv_(panels)
toplevel made
info widget made
panel area made
file menu made
Help menu made
disabled made
Nv_mkPanelMenu 1
Nv_mkPanelMenu 2 0
Nv_mkPanelMenu 2 1
Nv_mkPanelMenu 2 2
Nv_mkPanelMenu 2 3
Nv_mkPanelMenu 2 4
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18566)]
0x404a93de in mallopt () from /lib/libc.so.6
(gdb) l
No symbol table is loaded. Use the "file" command.
(gdb) bt
#0 0x404a93de in mallopt () from /lib/libc.so.6
#1 0x404a8c18 in mallopt () from /lib/libc.so.6
#2 0x404a7e03 in malloc () from /lib/libc.so.6
#3 0x401b3524 in Tcl_GetMemoryInfo () from /usr/lib/libtcl8.4.so.0
#4 0x401b2b97 in TclpAlloc () from /usr/lib/libtcl8.4.so.0
#5 0x40158c45 in Tcl_Alloc () from /usr/lib/libtcl8.4.so.0
#6 0x400995b6 in TkAllocWindow () from /usr/lib/libtk8.4.so.0
#7 0x4009a046 in Tk_CreateWindowFromPath () from /usr/lib/libtk8.4.so.0
#8 0x00000000 in ?? ()
#9 0x08348840 in ?? ()
#10 0x401c5989 in TclpThreadDataKeyGet () from /usr/lib/libtcl8.4.so.0
Previous frame inner to this frame (corrupt stack?)
---------------------------
['bt f' just gives above with "No symbol table info available."]
---------------------------
(gdb) s
Single stepping until exit from function mallopt,
which has no line number information.
Cannot find user-level thread for LWP 18569: generic error
---------------------------
[NVIZ windows close]
---------------------------
(gdb) s
Cannot find thread 16384: generic error
(gdb) q
The program is running. Exit anyway? (y or n) y
Quitting: Cannot find thread 16384: generic error
G:grass-5.0.3 >
Hamish
More information about the grass-dev
mailing list