Home > Archive > Tcl > December 2006 > Segmentation fault when evaluating 'string is'
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Segmentation fault when evaluating 'string is'
|
|
| mathieu 2006-12-18, 7:11 pm |
| Hello there,
I have a bizarre problem where my application is segfaulting. The
last tcl call I can see is:
if {[string is double 405.73]}
{.2.11.19.20.23.26.114.304.306.308.314.318.320 insert 0 405.73}
The backtrace in gdb is:
(gdb) bt
#0 0xa6af21c3 in Tcl_CommandComplete () from /usr/lib/libtcl8.4.so.0
#1 0xa6af1e01 in Tcl_ParseCommand () from /usr/lib/libtcl8.4.so.0
#2 0xa6af3be4 in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#3 0xa6af427f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#4 0xa6af430f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#5 0xa6af439f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#6 0xa6af442f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#7 0xa6af44cf in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#8 0xa6af455f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#9 0xa6af45ef in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#10 0xa6af467f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#11 0xa6af470f in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#12 0xa6af36ce in TclParseInteger () from /usr/lib/libtcl8.4.so.0
#13 0xa6af4857 in Tcl_ParseExpr () from /usr/lib/libtcl8.4.so.0
#14 0xa6abadda in TclCompileExpr () from /usr/lib/libtcl8.4.so.0
#15 0xa6ac6885 in Tcl_ExprObj () from /usr/lib/libtcl8.4.so.0
#16 0xa6a9d193 in Tcl_ExprBooleanObj () from /usr/lib/libtcl8.4.so.0
#17 0xa6aaaa55 in Tcl_IfObjCmd () from /usr/lib/libtcl8.4.so.0
#18 0xa6a9d931 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#19 0xa6a9dedd in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#20 0xa6a9e1eb in Tcl_Eval () from /usr/lib/libtcl8.4.so.0
#21 0xa6a9e286 in Tcl_GlobalEval () from /usr/lib/libtcl8.4.so.0
Thanks for any suggestion,
-M
| |
| peace07 2006-12-18, 7:11 pm |
| mathieu schrieb:
> Hello there,
>
> I have a bizarre problem where my application is segfaulting. The
> last tcl call I can see is:
>
> if {[string is double 405.73]}
> {.2.11.19.20.23.26.114.304.306.308.314.318.320 insert 0 405.73}
>
string is double 405.73
works fine for me. So, does this single statement causes an
segmentation fault in your environment? In other words, you start your
Tcl-Interpreter and you get the segmentation fault by typing
string is double 405.73
?
Regards,
Friedemann
| |
| Andreas Leitgeb 2006-12-18, 7:11 pm |
| mathieu <mathieu.malaterre@gmail.com> wrote:
> Hello there,
> I have a bizarre problem where my application is segfaulting. The
> last tcl call I can see is:
> if {[string is double 405.73]}
> {.2.11.19.20.23.26.114.304.306.308.314.318.320 insert 0 405.73}
Doesn't segfault here, but that doesn't necessarily mean anything.
does it also segfault for expr {[string is double 405.73]} ?
if not, does it also for an empty "then"-clause?
if not, what type of widget is .2.11.19.20.... ?
Which platform?
Could be a bug triggered by shimmering some string to double.
| |
| Michael A. Cleverly 2006-12-18, 7:12 pm |
| On Mon, 18 Dec 2006, mathieu wrote:
> Hello there,
>
> I have a bizarre problem where my application is segfaulting. The
> last tcl call I can see is:
>
> if {[string is double 405.73]}
> {.2.11.19.20.23.26.114.304.306.308.314.318.320 insert 0 405.73}
Based on the name of your widget I'm guessing you are building a GUI for
some kind of SNMP application? Are you running tclsh or a custom built
interpreter? Are you loading binary extensions?
Michael
|
|
|
|
|