Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tclsh8.5.3 dumps core

Closed / Wont Fix2034976fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-08-01 14:31:49
I'm trying to get tcl 8.5.3 to run on IRIX 6.5.30. Configure with: ./configure --prefix=/usr/nekoware --enable-symbols, then gmake & gmake install, and all seems fine. However, tclsh8.5.3 dumps core as soon as I try to do something there. Here is a session with gdb:

TolGalen 13% gdb /usr/nekoware/bin/tclsh8.5 
GNU gdb 6.3
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 "mips-sgi-irix6.5"...
(gdb) run
Starting program: /usr/nekoware/bin/tclsh8.5 
% set a 5

Program received signal SIGSEGV, Segmentation fault.
0x004801fc in TclCompileSwitchCmd (interp=0x10006a08, parsePtr=0x10007270, cmdPtr=0x10009e80, envPtr=0x7ffefd40)
    at tclCompCmds.c:3953
3953            } else if ((size == 2) && !memcmp(chrs, "--", 2)) {
(gdb) bt
#0  0x004801fc in TclCompileSwitchCmd (interp=0x10006a08, parsePtr=0x10007270, cmdPtr=0x10009e80, envPtr=0x7ffefd40)
    at tclCompCmds.c:3953
#1  0x00498884 in TclCompileScript (interp=0x10006a08, 
    script=0x100348b8 "\n    set len [llength $args]\n    if {$len == 0} {\n\treturn [tcl::HistInfo]\n    }\n    set key [lindex $args 0]\n    set options \"add, change, clear, event, info, keep, nextid, or redo\"\n    switch -glob -"..., 
    numBytes=3000, envPtr=0x7ffefd40) at tclCompile.c:1378
#2  0x00496d10 in TclSetByteCodeFromAny (interp=0x10006a08, objPtr=0x1003b5f8, hookProc=0, clientData=0x0)
    at tclCompile.c:511
#3  0x00496f3c in SetByteCodeFromAny (interp=0x10006a08, objPtr=0x1003b5f8) at tclCompile.c:600
#4  0x0053a04c in ProcCompileProc (interp=0x10006a08, procPtr=0x1003bc28, bodyPtr=0x1003b5f8, nsPtr=0x10006db0, 
    description=0x583998 "body of proc", procName=0x10019b88 "history", procPtrPtr=0x7fff06f0) at tclProc.c:2018
#5  0x00539430 in PushProcCallFrame (clientData=0x1003bc28, interp=0x10006a08, objc=3, objv=0x10027358, isLambda=0)
    at tclProc.c:1553
#6  0x0053954c in TclObjInterpProc (clientData=0x1003bc28, interp=0x10006a08, objc=3, objv=0x10027358) at tclProc.c:1613
#7  0x0043c6a0 in TclEvalObjvInternal (interp=0x10006a08, objc=3, objv=0x10027358, command=0x0, length=0, flags=262144)
    at tclBasic.c:3649
#8  0x0043ce8c in Tcl_EvalObjv (interp=0x10006a08, objc=3, objv=0x10027358, flags=262144) at tclBasic.c:3844
#9  0x0043e778 in TclEvalObjEx (interp=0x10006a08, objPtr=0x1001c838, flags=262144, invoker=0x0, word=0) at tclBasic.c:4643
#10 0x0043e474 in Tcl_EvalObjEx (interp=0x10006a08, objPtr=0x1001c838, flags=262144) at tclBasic.c:4555
#11 0x00537fcc in Tcl_UplevelObjCmd (dummy=0x0, interp=0x10006a08, objc=1, objv=0x100071fc) at tclProc.c:911
#12 0x0043c6a0 in TclEvalObjvInternal (interp=0x10006a08, objc=3, objv=0x100071f4, command=0xffffffff "", length=-1, 
    flags=0) at tclBasic.c:3649
#13 0x004b9304 in TclExecuteByteCode (interp=0x10006a08, codePtr=0x10024710) at tclExecute.c:2327
#14 0x00539914 in TclObjInterpProcCore (interp=0x10006a08, procNameObj=0x10017ea0, skip=1, 
    errorProc=0x53a0d0 <MakeProcError>) at tclProc.c:1721
#15 0x00539580 in TclObjInterpProc (clientData=0x10026ce0, interp=0x10006a08, objc=4, objv=0x10007060) at tclProc.c:1615
#16 0x0043c6a0 in TclEvalObjvInternal (interp=0x10006a08, objc=4, objv=0x10007060, command=0xffffffff "", length=-1, 
    flags=0) at tclBasic.c:3649
#17 0x0043ccfc in TclEvalObjvInternal (interp=0x10006a08, objc=3, objv=0x10007050, command=0xffffffff "", length=-1, 
    flags=0) at tclBasic.c:3789
#18 0x004b9304 in TclExecuteByteCode (interp=0x10006a08, codePtr=0x10019ee0) at tclExecute.c:2327
#19 0x004b5cec in TclCompEvalObj (interp=0x10006a08, objPtr=0x10017900, invoker=0x0, word=0) at tclExecute.c:1473
#20 0x0043eb30 in TclEvalObjEx (interp=0x10006a08, objPtr=0x10017900, flags=131072, invoker=0x0, word=0) at tclBasic.c:4763
#21 0x0043e474 in Tcl_EvalObjEx (interp=0x10006a08, objPtr=0x10017900, flags=131072) at tclBasic.c:4555
#22 0x004de938 in Tcl_RecordAndEvalObj (interp=0x10006a08, cmdPtr=0x10017948, flags=131072) at tclHistory.c:143
#23 0x0051050c in Tcl_Main (argc=-1, argv=0x7fff2f08, appInitProc=0x10001430 <Tcl_AppInit>) at tclMain.c:554
#24 0x10001418 in main (argc=1, argv=0x7fff2f04) at tclAppInit.c:87
(gdb)


I do hope somebody is able to help with this. Thanks for taking the time to read this!
Best regards,

Gerard Ranke
[email protected]
dgpplain2008-08-02 00:22:30
Logged In: YES 
user_id=80530
Originator: NO


smells like a compiler bug.
What compiler did you use to
build Tcl from source code?
dgpplain2008-08-02 00:28:59
Logged In: YES 
user_id=80530
Originator: NO

...and while you're reporting that,
can you try building Tcl with a
different compiler and see if the
issue goes away?
dgpplain2008-08-03 10:07:07
Logged In: YES 
user_id=80530
Originator: NO

E-mailed the submitter, and
without a reply from him, or
from someone who can test on
the reported platform, I don't
see what else can be done.
nobodyplain2008-08-07 17:25:45
Logged In: NO 

This was with sgi's mipspro 7.4 compiler. I just tried it with gcc, and now it runs just fine, so this is likely to be a compiler issue indeed. Thanks for your help!
Best,

gerard
nobody Open ticket [2034976fff]. [History diff]2008-08-07 17:25:46
dgp Ticket [2034976fff]: 4 changes [History diff]2008-08-09 01:36:36
dgpplain2008-08-09 03:46:36
Logged In: YES 
user_id=80530
Originator: NO


hmmm... thought I could get on
an SGI system, but they're all
gone.
sf-robotplain2008-08-23 09:20:30
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.