Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 46d5f527477755e1ebb06e9f3d08c62995885d62
Ticket: 1712723fffffffffffffffffffffffffffffffff
joinable threads die on Solaris 64-bit
User & Date: lvirden on 2007-05-04 13:02:25
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Platform: sparc solaris 9
    Compiler: Forte Developer 7 C 5.4 2002/03/09
    Tcl: cvs head located on tcl.activestate.com ftp site - titled tcl-20070503.tar.gz
    Thread: cvs head located on tcl.activestate.com ftp site - titled thread-20070503.tar.gz
    Configuration parms (for both tcl and thread): \"'--prefix=/projects/sprs_lwv/tcl85' '--enable-shared' '--enable-symbols' '--enable-stubs' '--enable-64bit' '--enable-threads'
    
    After successfully running a fresh configure/build/test/install of the may 3 tcl, I proceeded to build a fresh copy of the may 3 thread. The configure and build worked fine, then I encountered:
    Tests began at Fri May 04 08:52:33 EDT 2007
    Thread 2.6.5
    Mainthread id is tid1
    thread.test
    gmake: *** [test] Bus Error (core dumped)
     $ dbx /vol/tclsrcsol/tcl85/tcl/unix/tclsh core
    For information about new features see `help changes'
    To remove this message, put `dbxenv suppress_startup_message 7.0' in your .dbxrc
    Reading tclsh
    core file header read successfully
    Reading ld.so.1
    Reading libtcl8.5.so
    Reading libdl.so.1
    Reading libsocket.so.1
    Reading libnsl.so.1
    Reading libpthread.so.1
    Reading libm.so.1
    Reading libc.so.1
    Reading libmp.so.2
    Reading libc_psr.so.1
    Reading libthread.so.1
    Reading libthread2.6.5.so
    detected a multithreaded program
    t@1 (l@1) terminated by signal BUS (invalid address alignment)
    0xffffffff7dd0b7f4: _thrp_join+0x01ac:  stx     %l2, [%i2]
    Current function is Tcl_JoinThread
      166       result = pthread_join((pthread_t) threadId, (void**) state);
    (dbx 1) print threadId                                                
    threadId = 0x7
    (dbx 2) print state   
    state = 0xffffffff7fff19a4
    (dbx 3) where 
    current thread: t@1
      [1] _thrp_join(0x0, 0x0, 0xffffffff7fff19a4, 0x1, 0xffffffff7fff1808, 0xffffffff7fff1810), at 0xffffffff7dd0b7f4
    =>[2] Tcl_JoinThread(threadId = 0x7, state = 0xffffffff7fff19a4), line 166 in "tclUnixThrd.c"
      [3] ThreadJoin(interp = 0x1000428c0, thrId = 0x7), line 2062 in "threadCmd.c"
      [4] ThreadJoinObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 2, objv = 0xffffffff7fff1f48), line 1172 in "threadCmd.c"
      [5] TclEvalObjvInternal(interp = 0x1000428c0, objc = 2, objv = 0xffffffff7fff1f48, command = 0x1003bc6bc "thread::join $tid]\n    ThreadReap\n    set c\n", length = 17, flags = 0), line 3617 in "tclBasic.c"
      [6] TclEvalEx(interp = 0x1000428c0, script = 0x1003bc6bc "thread::join $tid]\n    ThreadReap\n    set c\n", numBytes = 17, flags = 0, line = 4), line 4222 in "tclBasic.c"
      [7] TclSubstTokens(interp = 0x1000428c0, tokenPtr = 0xffffffff7fff2820, count = 1, tokensLeftPtr = (nil), line = 4), line 2099 in "tclParse.c"
      [8] TclEvalEx(interp = 0x1000428c0, script = 0x1003bc670 "\n    ThreadReap\n    set tid [thread::create -joinable {set x 5}]\n    set c [thread::join $tid]\n    ThreadReap\n    set c\n", numBytes = 120, flags = 262144, line = 4), line 4087 in "tclBasic.c"
      [9] Tcl_EvalEx(interp = 0x1000428c0, script = 0x1003bc670 "\n    ThreadReap\n    set tid [thread::create -joinable {set x 5}]\n    set c [thread::join $tid]\n    ThreadReap\n    set c\n", numBytes = 120, flags = 262144), line 3892 in "tclBasic.c"
      [10] TclEvalObjEx(interp = 0x1000428c0, objPtr = 0x1002075b0, flags = 262144, invoker = (nil), word = 0), line 4592 in "tclBasic.c"
      [11] Tcl_EvalObjEx(interp = 0x1000428c0, objPtr = 0x1002075b0, flags = 262144), line 4475 in "tclBasic.c"
      [12] Tcl_UplevelObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 1, objv = 0x100047008), line 900 in "tclProc.c"
      [13] TclExecuteByteCode(interp = 0x1000428c0, codePtr = 0x100418760), line 1834 in "tclExecute.c"
      [14] TclCompEvalObj(interp = 0x1000428c0, objPtr = 0x1000c8520, invoker = (nil), word = 0), line 996 in "tclExecute.c"
      [15] TclObjInterpProcCore(interp = 0x1000428c0, framePtr = 0x100046e78, procNameObj = 0x1003d3030, isLambda = 0, skip = 1, errorProc = 0xffffffff7f18d0e0 = &`libtcl8.5.so`tclProc.c`MakeProcError(Tcl_Interp *interp, Tcl_Obj *procNameObj)), line 1535 in "tclProc.c"
      [16] ObjInterpProcEx(clientData = 0x100095690, interp = 0x1000428c0, objc = 3, objv = 0x10040d420, isLambda = 0, errorProc = 0xffffffff7f18d0e0 = &`libtcl8.5.so`tclProc.c`MakeProcError(Tcl_Interp *interp, Tcl_Obj *procNameObj)), line 1283 in "tclProc.c"
      [17] TclObjInterpProc(clientData = 0x100095690, interp = 0x1000428c0, objc = 3, objv = 0x10040d420), line 1213 in "tclProc.c"
      [18] TclEvalObjvInternal(interp = 0x1000428c0, objc = 3, objv = 0x10040d420, command = 0xffffffff7f1df360 "", length = 0, flags = 262144), line 3617 in "tclBasic.c"
      [19] Tcl_EvalObjv(interp = 0x1000428c0, objc = 3, objv = 0x10040d420, flags = 262144), line 3737 in "tclBasic.c"
      [20] TclEvalObjEx(interp = 0x1000428c0, objPtr = 0x1003d1e90, flags = 262144, invoker = (nil), word = 0), line 4563 in "tclBasic.c"
      [21] Tcl_EvalObjEx(interp = 0x1000428c0, objPtr = 0x1003d1e90, flags = 262144), line 4475 in "tclBasic.c"
      [22] Tcl_UplevelObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 1, objv = 0x100046e70), line 900 in "tclProc.c"
      [23] TclExecuteByteCode(interp = 0x1000428c0, codePtr = 0x1002b9e00), line 1834 in "tclExecute.c"
      [24] TclCompEvalObj(interp = 0x1000428c0, objPtr = 0x1000c83a0, invoker = (nil), word = 0), line 996 in "tclExecute.c"
      [25] TclObjInterpProcCore(interp = 0x1000428c0, framePtr = 0x100046ca8, procNameObj = 0x1003d27c0, isLambda = 0, skip = 1, errorProc = 0xffffffff7f18d0e0 = &`libtcl8.5.so`tclProc.c`MakeProcError(Tcl_Interp *interp, Tcl_Obj *procNameObj)), line 1535 in "tclProc.c"
      [26] ObjInterpProcEx(clientData = 0x10010d160, interp = 0x1000428c0, objc = 3, objv = 0x10040d860, isLambda = 0, errorProc = 0xffffffff7f18d0e0 = &`libtcl8.5.so`tclProc.c`MakeProcError(Tcl_Interp *interp, Tcl_Obj *procNameObj)), line 1283 in "tclProc.c"
      [27] TclObjInterpProc(clientData = 0x10010d160, interp = 0x1000428c0, objc = 3, objv = 0x10040d860), line 1213 in "tclProc.c"
      [28] TclEvalObjvInternal(interp = 0x1000428c0, objc = 3, objv = 0x10040d860, command = 0xffffffff7f1df360 "", length = 0, flags = 262144), line 3617 in "tclBasic.c"
      [29] Tcl_EvalObjv(interp = 0x1000428c0, objc = 3, objv = 0x10040d860, flags = 262144), line 3737 in "tclBasic.c"
      [30] TclEvalObjEx(interp = 0x1000428c0, objPtr = 0x1003d2d60, flags = 262144, invoker = (nil), word = 0), line 4563 in "tclBasic.c"
      [31] Tcl_EvalObjEx(interp = 0x1000428c0, objPtr = 0x1003d2d60, flags = 262144), line 4475 in "tclBasic.c"
      [32] Tcl_UplevelObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 1, objv = 0x100046ca0), line 900 in "tclProc.c"
      [33] TclExecuteByteCode(interp = 0x1000428c0, codePtr = 0x100407ea0), line 1834 in "tclExecute.c"
      [34] TclCompEvalObj(interp = 0x1000428c0, objPtr = 0x1000ca950, invoker = (nil), word = 0), line 996 in "tclExecute.c"
      [35] TclObjInterpProcCore(interp = 0x1000428c0, framePtr = 0x100045990, procNameObj = 0x1003cfdf0, isLambda = 0, skip = 1, errorProc = 0xffffffff7f18d0e0 = &`libtcl8.5.so`tclProc.c`MakeProcError(Tcl_Interp *interp, Tcl_Obj *procNameObj)), line 1535 in "tclProc.c"
      [36] ObjInterpProcEx(clientData = 0x100094460, interp = 0x1000428c0, objc = 5, objv = 0xffffffff7fff8bc8, isLambda = 0, errorProc = 0xffffffff7f18d0e0 = &`libtcl8.5.so`tclProc.c`MakeProcError(Tcl_Interp *interp, Tcl_Obj *procNameObj)), line 1283 in "tclProc.c"
      [37] TclObjInterpProc(clientData = 0x100094460, interp = 0x1000428c0, objc = 5, objv = 0xffffffff7fff8bc8), line 1213 in "tclProc.c"
      [38] InvokeImportedCmd(clientData = 0x1001bb190, interp = 0x1000428c0, objc = 5, objv = 0xffffffff7fff8bc8), line 1904 in "tclNamesp.c"
      [39] TclEvalObjvInternal(interp = 0x1000428c0, objc = 5, objv = 0xffffffff7fff8bc8, command = 0x1003e8af3 "test thread-4.4 {thread::create - create joinable thread} {\n    ThreadReap\n    set tid [thread::create -joinable {set x 5}]\n    set c [thread::join $tid]\n    ThreadReap\n    set c\n} {0}\n\ntest thread-4.5 {thread::create - join detached thread} {\n    ThreadReap\n    set tid [thread::create]\n    thread::send -async $tid {after 1000 ; thread::release}\n    catch {set res [thread::join $tid]} msg\n    ThreadReap\n    lrange $msg 0 2\n} {cannot join thread}\n\ntest thread-5.0 {thread::release} {\n    ThreadReap\n    set ti" ..., length = 185, flags = 0), line 3617 in "tclBasic.c"
      [40] TclEvalEx(interp = 0x1000428c0, script = 0x1003e7fb0 "# Commands covered:  thread\n#\n# This file contains a collection of tests for one or more of the Tcl\n# built-in commands.  Sourcing this file into Tcl runs the tests and\n# generates output for errors.  No output means no errors were found.\n#\n# Copyright (c) 1996 Sun Microsystems, Inc.\n# Copyright (c) 1998-2000 Scriptics Corporation.\n# Copyright (c) 2002 ActiveState Corporation.\n#\n# See the file "license.terms" for information on usage and redistribution\n# of this file, and for a DISCLAIMER OF ALL WARRANTIES." ..., numBytes = 33216, flags = 0, line = 97), line 4222 in "tclBasic.c"
      [41] Tcl_EvalEx(interp = 0x1000428c0, script = 0x1003e7fb0 "# Commands covered:  thread\n#\n# This file contains a collection of tests for one or more of the Tcl\n# built-in commands.  Sourcing this file into Tcl runs the tests and\n# generates output for errors.  No output means no errors were found.\n#\n# Copyright (c) 1996 Sun Microsystems, Inc.\n# Copyright (c) 1998-2000 Scriptics Corporation.\n# Copyright (c) 2002 ActiveState Corporation.\n#\n# See the file "license.terms" for information on usage and redistribution\n# of this file, and for a DISCLAIMER OF ALL WARRANTIES." ..., numBytes = 33216, flags = 0), line 3892 in "tclBasic.c"
      [42] Tcl_FSEvalFileEx(interp = 0x1000428c0, pathPtr = 0x1003cf190, encodingName = (nil)), line 1818 in "tclIOUtil.c"
      [43] Tcl_SourceObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 2, objv = 0x100045980), line 953 in "tclCmdMZ.c"
      [44] TclExecuteByteCode(interp = 0x1000428c0, codePtr = 0x1003bbe70), line 1834 in "tclExecute.c"
      [45] TclCompEvalObj(interp = 0x1000428c0, objPtr = 0x1000c9f30, invoker = 0xffffffff7fffbd60, word = 1), line 996 in "tclExecute.c"
      [46] TclEvalObjEx(interp = 0x1000428c0, objPtr = 0x1000c9f30, flags = 0, invoker = 0xffffffff7fffbd60, word = 1), line 4677 in "tclBasic.c"
      [47] Tcl_CatchObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 3, objv = 0x100045968), line 253 in "tclCmdAH.c"
      [48] TclExecuteByteCode(interp = 0x1000428c0, codePtr = 0x1003c1420), line 1834 in "tclExecute.c"
      [49] TclCompEvalObj(interp = 0x1000428c0, objPtr = 0x1003cf7f0, invoker = 0xffffffff7fffc5a0, word = 3), line 996 in "tclExecute.c"
      [50] TclEvalObjEx(interp = 0x1000428c0, objPtr = 0x1003cf7f0, flags = 0, invoker = 0xffffffff7fffc5a0, word = 3), line 4677 in "tclBasic.c"
      [51] Tcl_ForeachObjCmd(dummy = (nil), interp = 0x1000428c0, objc = 4, objv = 0xffffffff7fffc6e8), line 1811 in "tclCmdAH.c"
      [52] TclEvalObjvInternal(interp = 0x1000428c0, objc = 4, objv = 0xffffffff7fffc6e8, command = 0x100063553 "foreach file [lsort [::tcltest::getMatchingFiles]] {\n    set tail [file tail $file]\n    puts stdout $tail\n    if {[catch {source $file} msg]} {\n        puts stdout $msg\n    }\n}\n\n# Cleanup\nputs stdout "\nTests ended at [eval $timeCmd]"\n::tcltest::cleanupTests 1\n\nreturn\n\n", length = 177, flags = 0), line 3617 in "tclBasic.c"
      [53] TclEvalEx(interp = 0x1000428c0, script = 0x100062ed0 "# all.tcl --\n#\n# This file contains a top-level script to run all of the Tcl\n# tests.  Execute it by invoking "source all.test" when running tcltest\n# in this directory.\n#\n# Copyright (c) 1998-1999 by Scriptics Corporation.\n# All rights reserved.\n# \n# RCS: @(#) $Id: all.tcl,v 1.5 2004/12/18 13:26:03 vasiljevic Exp $\n\npackage require tcltest\nnamespace import -force ::tcltest::*\n\nset ::tcltest::testSingleFile false\nset ::tcltest::testsDirectory [file dir [info script]]\n\n# We need to ensure that the testsDirec" ..., numBytes = 1937, flags = 0, line = 53), line 4222 in "tclBasic.c"
      [54] Tcl_EvalEx(interp = 0x1000428c0, script = 0x100062ed0 "# all.tcl --\n#\n# This file contains a top-level script to run all of the Tcl\n# tests.  Execute it by invoking "source all.test" when running tcltest\n# in this directory.\n#\n# Copyright (c) 1998-1999 by Scriptics Corporation.\n# All rights reserved.\n# \n# RCS: @(#) $Id: all.tcl,v 1.5 2004/12/18 13:26:03 vasiljevic Exp $\n\npackage require tcltest\nnamespace import -force ::tcltest::*\n\nset ::tcltest::testSingleFile false\nset ::tcltest::testsDirectory [file dir [info script]]\n\n# We need to ensure that the testsDirec" ..., numBytes = 1937, flags = 0), line 3892 in "tclBasic.c"
      [55] Tcl_FSEvalFileEx(interp = 0x1000428c0, pathPtr = 0x100032f80, encodingName = (nil)), line 1818 in "tclIOUtil.c"
      [56] Tcl_Main(argc = -1, argv = 0xffffffff7fffd1a8, appInitProc = 0x100001e58 = &Tcl_AppInit(Tcl_Interp *interp)), line 441 in "tclMain.c"
      [57] main(argc = 2, argv = 0xffffffff7fffd198), line 87 in "tclAppInit.c"
    (dbx 4) 
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.5a6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "lvirden"
  10. subsystem changed to: "80. Thread Package"
  11. title changed to: "thread.test bus error on sparc solaris 9"
  12. type changed to: "Bug"