Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4096 tclsh8.5.3 dumps core

obsolete: 8.5.3
closed-wont-fix
Don Porter
69. Other (102)
1
2008-08-23
2008-08-01
Anonymous
No

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
gerardr@wanadoo.nl

Discussion

1 2 > >> (Page 1 of 2)
  • Don Porter
    Don Porter
    2008-08-01

    Logged In: YES
    user_id=80530
    Originator: NO

    smells like a compiler bug.
    What compiler did you use to
    build Tcl from source code?

     
  • Don Porter
    Don Porter
    2008-08-01

    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?

     
  • Don Porter
    Don Porter
    2008-08-03

    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.

     
  • Don Porter
    Don Porter
    2008-08-03

    • status: open --> pending
     
  • 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

     
    • status: pending --> open
     
  • Don Porter
    Don Porter
    2008-08-08

    • assigned_to: nobody --> dgp
    • priority: 5 --> 1
    • labels: --> 69. Other
    • milestone: --> obsolete: 8.5.3
     
  • Don Porter
    Don Porter
    2008-08-08

    Logged In: YES
    user_id=80530
    Originator: NO

    hmmm... thought I could get on
    an SGI system, but they're all
    gone.

     
  • Don Porter
    Don Porter
    2008-08-08

    • status: open --> pending-wont-fix
     
    • status: pending-wont-fix --> closed-wont-fix
     
1 2 > >> (Page 1 of 2)