[Xotcl] troubleshooting

Victor Mayevski vitick at gmail.com
Thu Oct 14 08:21:21 CEST 2010


Thank you Gustaf,
I am using the ActiveState binary and XOTcl is version 1.6.6, not NX. I don't know where to get the source code for TCL 8.6.0.0b4, it is not available anywhere yet. 

I think I have zeroed in where the crash happens. Here is the sample code that causes the crash for me:

tcl_patchLevel 8.6b1.2
tcl_platform(byteOrder)     = littleEndian
tcl_platform(machine)       = x86_64
tcl_platform(os)            = Linux
tcl_platform(osVersion)     = 2.6.35-22-generic
tcl_platform(pathSeparator) = :
tcl_platform(platform)      = unix
tcl_platform(pointerSize)   = 4
tcl_platform(threaded)      = 1
tcl_platform(user)          = root
tcl_platform(wordSize)      = 4

####################################
Object o
Object o::o
[o::o info parent] info children

Segmentation fault
#####################################

I have also installed the 32bit version of the same ActiveState binary (the latest one, 8.6.0.0b4, tcl_patchLevel 8.6b1.2) and it will crash right at [package req XOTcl]

Hope that helps




----- Original Message -----
From: "Gustaf Neumann" <neumann at wu-wien.ac.at>
To: xotcl at alice.wu-wien.ac.at
Sent: Wednesday, October 13, 2010 6:56:00 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Xotcl] troubleshooting

  Hi Victor,

our typical test setup is to run the regression test with 
8.5.9, tcl 8.6b1,
and with 8.6head version (where i have applied the 
SANE-NRE-patch
from Miguel). i just double-checked, for me all three test 
settings
work fine.

does the regression work on your installation with tcl 8.6b4 
(run: make test)?
If they run fine, and you experience a crash with your 
application,
the following works probably best:

Strategy a: try to isolate and pinpoint the problem from the 
tcl layer
    by simplifying your script. if the problem can be 
reproduced with
    a few lines of code, send it to me.

Strategy b: mostly for c-literate developers: use gdb.

   - compile tcl and nsf with -g enabled (e.g. add it to
     the compile flags in the Makefile and recompile with
     "make clean" and "make")

   - start the tcl shell under gdb, like e.g.
        gdb /usr/local/src/tcl8.5.9/unix/tclsh

   - start your application from gdb using
        run ..../yourapp.tcl

   - when it crashes, type in
        where
     an you will get the backtrace.
     maybe what you see makes sense to you.
     if not, send it to me, i'll try me best on it.

all the best
-gustaf

On 14.10.10 00:33, Victor Mayevski wrote:
> I have just tried my application on latest TCL 8.6b4 and it crashes (Segmentation fault). The same application works just fine in TCL 8.5.9. Any idea how I can troubleshoot it? Tools, techniques etc?
>
> Thank you
> _______________________________________________
> Xotcl mailing list
> Xotcl at alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl

_______________________________________________
Xotcl mailing list
Xotcl at alice.wu-wien.ac.at
http://alice.wu-wien.ac.at/mailman/listinfo/xotcl


More information about the Xotcl mailing list