[GRASS5] nviz crash on debian with tcltk8.4

Hamish hamish_nospam at yahoo.com
Sun May 2 21:18:05 EDT 2004


Hi,

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 \
...


thanks,
Hamish




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"...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/local/src/grass/grass-5.0.3/dist.i686-pc-linux-gnu/etc/nviz2.2/NVWISH2.2 -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3702)]
[New Thread 32769 (LWP 3704)]
[New Thread 16386 (LWP 3705)]


---------------------------------
[NVIZ starts up ok, there's an unexplained 2 second 0% CPU "Please wait.." 
pause before the main NVIZ menu pops up]

[panel menu-> surfaces-> new]
---------------------------------

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3702)]
0x403fab22 in pthread_mutex_lock () from /lib/libpthread.so.0

(gdb) l
34       *----------------------------------------------------------------------
35       */
36
37      int
38      main (
39          int argc,                   /* Number of command-line arguments. */
40          char **argv         /* Values of command-line arguments. */
41      )
42      {
43          Tk_Main(argc, argv, NVIZ_AppInit);

(gdb) bt
#0  0x403fab22 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x404f9fcd in free () from /lib/libc.so.6
#2  0x401aede0 in Tcl_GetObjResult () from /usr/lib/libtcl8.4.so.0
#3  0x40154514 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#4  0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#5  0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#6  0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#7  0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#8  0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#9  0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#10 0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#11 0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#12 0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#13 0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#14 0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#15 0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#16 0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#17 0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#18 0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#19 0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#20 0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#21 0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#22 0x401556b6 in Tcl_EvalObjEx () from /usr/lib/libtcl8.4.so.0
#23 0x400b73f1 in TkInvokeButton () from /usr/lib/libtk8.4.so.0
#24 0x400b65f9 in Tk_RadiobuttonObjCmd () from /usr/lib/libtk8.4.so.0
#25 0x084e37e0 in ?? ()
#26 0x40127ea0 in tkStubs () from /usr/lib/libtk8.4.so.0
#27 0x4011d086 in ?? () from /usr/lib/libtk8.4.so.0
#28 0x00000000 in ?? ()
#29 0xbfffe748 in ?? ()
#30 0xbfffe758 in ?? ()
#31 0x401a4b3f in Tcl_GetCommandFromObj () from /usr/lib/libtcl8.4.so.0
Previous frame inner to this frame (corrupt stack?)

(gdb) bt f
#0  0x403fab22 in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#1  0x404f9fcd in free () from /lib/libc.so.6
No symbol table info available.
#2  0x401aede0 in Tcl_GetObjResult () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#3  0x40154514 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#4  0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#5  0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#6  0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#7  0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#8  0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#9  0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#10 0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#11 0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#12 0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#13 0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#14 0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#15 0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#16 0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#17 0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#18 0x401ad08f in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#19 0x40154484 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#20 0x4017b165 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#21 0x4017a783 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#22 0x401556b6 in Tcl_EvalObjEx () from /usr/lib/libtcl8.4.so.0
No symbol table info available.
#23 0x400b73f1 in TkInvokeButton () from /usr/lib/libtk8.4.so.0
No symbol table info available.
#24 0x400b65f9 in Tk_RadiobuttonObjCmd () from /usr/lib/libtk8.4.so.0
No symbol table info available.
#25 0x08233560 in ?? ()
No symbol table info available.
#26 0x40127ea0 in tkStubs () from /usr/lib/libtk8.4.so.0
No symbol table info available.
#27 0x4011d086 in ?? () from /usr/lib/libtk8.4.so.0
No symbol table info available.
#28 0x00000000 in ?? ()
No symbol table info available.
#29 0xbfffe748 in ?? ()
No symbol table info available.
#30 0xbfffe758 in ?? ()
No symbol table info available.
#31 0x401a4b3f in Tcl_GetCommandFromObj () from /usr/lib/libtcl8.4.so.0
No symbol table info available.

(gdb) n
Single stepping until exit from function pthread_mutex_lock,
which has no line number information.
Cannot find user-level thread for LWP 3705: generic error


-----------------------------------
[NVIZ windows disappear]
-----------------------------------


(gdb) n
Cannot find thread 16384: generic error
(gdb) q
The program is running.  Exit anyway? (y or n) y
G:grass-5.0.3 >




More information about the grass-dev mailing list