Tcl Source Code

View Ticket
Login
Ticket UUID: 1637703
Title: tcltest crashes during thread.test
Type: Bug Created on: 2007-01-17 13:14:20
Submitter: lvirden Assigned to: dgp
Subsystem: 49. Threading Severity:
Priority: 9 Immediate Last modified: 2007-02-13 10:20:07
Status: Closed Closed by: sf-robot
Resolution: Works For Me Closed on: 2007-02-13 03:20:07
Version: obsolete: 8.5a6
Description:
sparc solaris 9 sun c compiler
configured with options \"'--prefix=/projects/sprs_lwv/tcl85' '--enable-shared' '--enable-symbols' '--enable-stubs' '--enable-64bit' '--enable-threads'\"



test suite reports:
thread.test
Test file error: child killed: bus error
with no Failure recognized...

core says:
 $ dbx ./tcltest core
Reading tcltest
core file header read successfully
Reading ld.so.1
Reading libtcl8.5.so
Reading libdl.so.1
Reading libsocket.so.1
Reading libpthread.so.1
Reading libm.so.1
Reading libc.so.1
Reading libnsl.so.1
Reading libmp.so.2
Reading libc_psr.so.1
Reading libthread.so.1
detected a multithreaded program
t@1 (l@1) terminated by signal BUS (invalid address alignment)
0xffffffff7de0b83c: _thrp_join+0x01ac:  stx     %l2, [%i2]
(dbx 1) where                                                    
current thread: t@1
=>[1] _thrp_join(0x0, 0x0, 0xffffffff7fff80c4, 0x1, 0x100021ff0, 0x0), at 0xffffffff7de0b83c
  [2] Tcl_JoinThread(0x12, 0xffffffff7fff80c4, 0xffffffff7fff80c8, 0x100021ff0, 0x0, 0xffffffff7fff80d4), at 0xffffffff7f275b88
  [3] Tcl_ThreadObjCmd(0x0, 0x10014d750, 0x3, 0xffffffff7fff84e0, 0xffffffff7fff8580, 0x100128f10), at 0x10001c4ac
  [4] TclEvalObjvInternal(0x10014d750, 0x3, 0xffffffff7fff84e0, 0x10029f318, 0x1d, 0x0), at 0xffffffff7f151600
  [5] TclEvalEx(0x10014d750, 0x10029f318, 0x1d, 0x0, 0x5, 0xffffffff7fff88e0), at 0xffffffff7f152988
  [6] TclSubstTokens(0x10014d750, 0xffffffff7fff8d28, 0x1, 0x0, 0x5, 0x0), at 0xffffffff7f21dc24
  [7] TclEvalEx(0x10014d750, 0x10029f280, 0xd2, 0x40000, 0x1, 0x100148aa0), at 0xffffffff7f15211c
  [8] Tcl_EvalEx(0x10014d750, 0x10029f280, 0xd2, 0x40000, 0x1001ac930, 0xffffffff7f230b1c), at 0xffffffff7f151c7c
  [9] TclEvalObjEx(0x10014d750, 0x1002f3b00, 0x40000, 0x0, 0x0, 0xffffffff7f27bf50), at 0xffffffff7f1533b0
  [10] Tcl_EvalObjEx(0x10014d750, 0x1002f3b00, 0x40000, 0x100151d40, 0x0, 0xffffffff7fff929c), at 0xffffffff7f152f7c
  [11] Tcl_UplevelObjCmd(0x0, 0x10014d750, 0x3, 0x100151d40, 0x10030cba0, 0xff00), at 0xffffffff7f22ef50
  [12] TclEvalObjvInternal(0x10014d750, 0x3, 0x100151d40, 0x0, 0x0, 0x0), at 0xffffffff7f151600
  [13] TclExecuteByteCode(0x10014d750, 0x10026fb90, 0x28, 0x100151ba8, 0x0, 0x100148aa0), at 0xffffffff7f1c096c
  [14] TclCompEvalObj(0x10014d750, 0x1001ddfb0, 0x0, 0x0, 0x1001ac930, 0xffffffff7fff9ba8), at 0xffffffff7f1be7ac
  [15] TclObjInterpProcCore(0x10014d750, 0x100151bc0, 0x1002f4ac0, 0x0, 0x1, 0xffffffff7f230b1c), at 0xffffffff7f2302b4
  [16] ObjInterpProcEx(0x1002528c0, 0x10014d750, 0x3, 0x10030eb00, 0x0, 0xffffffff7f230b1c), at 0xffffffff7f22f89c
  [17] TclObjInterpProc(0x1002528c0, 0x10014d750, 0x3, 0x10030eb00, 0x0, 0x100128ed8), at 0xffffffff7f22f68c
  [18] TclEvalObjvInternal(0x10014d750, 0x3, 0x10030eb00, 0xffffffff7f27a4d0, 0x0, 0x40000), at 0xffffffff7f151600
  [19] Tcl_EvalObjv(0x10014d750, 0x3, 0x10030eb00, 0x40000, 0x81010100, 0xff00), at 0xffffffff7f15199c
  [20] TclEvalObjEx(0x10014d750, 0x1002f40a0, 0x40000, 0x0, 0x0, 0xffffffff7f230b1c), at 0xffffffff7f15320c
  [21] Tcl_EvalObjEx(0x10014d750, 0x1002f40a0, 0x40000, 0x100151ba8, 0x0, 0x100128f10), at 0xffffffff7f152f7c
  [22] Tcl_UplevelObjCmd(0x0, 0x10014d750, 0x3, 0x100151ba8, 0x10027b290, 0xff00), at 0xffffffff7f22ef50
  [23] TclEvalObjvInternal(0x10014d750, 0x3, 0x100151ba8, 0x0, 0x0, 0x0), at 0xffffffff7f151600
  [24] TclExecuteByteCode(0x10014d750, 0x1002ad540, 0x28, 0x1001519e8, 0x0, 0x100148aa0), at 0xffffffff7f1c096c
  [25] TclCompEvalObj(0x10014d750, 0x1001dc060, 0x0, 0x0, 0x1001ac930, 0xffffffff7fffad38), at 0xffffffff7f1be7ac
  [26] TclObjInterpProcCore(0x10014d750, 0x1001519f0, 0x1002f3500, 0x0, 0x1, 0xffffffff7f230b1c), at 0xffffffff7f2302b4
  [27] ObjInterpProcEx(0x100286fe0, 0x10014d750, 0x3, 0x10030e800, 0x0, 0xffffffff7f230b1c), at 0xffffffff7f22f89c
  [28] TclObjInterpProc(0x100286fe0, 0x10014d750, 0x3, 0x10030e800, 0x81010100, 0x2), at 0xffffffff7f22f68c
  [29] TclEvalObjvInternal(0x10014d750, 0x3, 0x10030e800, 0xffffffff7f27a4d0, 0x0, 0x40000), at 0xffffffff7f151600
  [30] Tcl_EvalObjv(0x10014d750, 0x3, 0x10030e800, 0x40000, 0x81010100, 0xff00), at 0xffffffff7f15199c
  [31] TclEvalObjEx(0x10014d750, 0x1002f44c0, 0x40000, 0x0, 0x0, 0xffffffff7f230b1c), at 0xffffffff7f15320c
  [32] Tcl_EvalObjEx(0x10014d750, 0x1002f44c0, 0x40000, 0x1001519e8, 0x0, 0xffffffff7fffb5bc), at 0xffffffff7f152f7c
  [33] Tcl_UplevelObjCmd(0x0, 0x10014d750, 0x3, 0x1001519d8, 0x6800ef09, 0x68000000), at 0xffffffff7f22ef50
  [34] TclEvalObjvInternal(0x10014d750, 0x3, 0x1001519d8, 0x0, 0x0, 0x0), at 0xffffffff7f151600
  [35] TclExecuteByteCode(0x10014d750, 0x1002e9090, 0x0, 0x0, 0x100301a80, 0x100148aa0), at 0xffffffff7f1c096c
  [36] TclCompEvalObj(0x10014d750, 0x1001ddd10, 0x0, 0x0, 0x1001ac930, 0x100128f10), at 0xffffffff7f1be7ac
  [37] TclObjInterpProcCore(0x10014d750, 0x100150798, 0x1002f3e60, 0x0, 0x1, 0xffffffff7f230b1c), at 0xffffffff7f2302b4
  [38] ObjInterpProcEx(0x100252340, 0x10014d750, 0x6, 0xffffffff7fffc5c0, 0x0, 0xffffffff7f230b1c), at 0xffffffff7f22f89c
  [39] TclObjInterpProc(0x100252340, 0x10014d750, 0x6, 0xffffffff7fffc5c0, 0x30, 0x16bae2), at 0xffffffff7f22f68c
  [40] InvokeImportedCmd(0x1002c61a0, 0x10014d750, 0x6, 0xffffffff7fffc5c0, 0x1, 0xffffffff7fffc2f0), at 0xffffffff7f20a854
  [41] TclEvalObjvInternal(0x10014d750, 0x6, 0xffffffff7fffc5c0, 0x100195ca9, 0x108, 0x0), at 0xffffffff7f151600
  [42] TclEvalEx(0x10014d750, 0x100194310, 0x1eb9, 0x0, 0x1, 0x0), at 0xffffffff7f152988
  [43] Tcl_EvalEx(0x10014d750, 0x100194310, 0x1eb9, 0x0, 0x1, 0x10013de10), at 0xffffffff7f151c7c
  [44] Tcl_FSEvalFileEx(0x10014d750, 0x10013ddb0, 0x0, 0x1, 0x1, 0x2f766f6c), at 0xffffffff7f1fbae0
  [45] Tcl_Main(0x24, 0xffffffff7fffcfc8, 0x100005b98, 0x10000598c, 0xffffffff7fffcfc8, 0xffffffff7f72ff08), at 0xffffffff7f20722c
  [46] main(0x24, 0xffffffff7fffcfc8, 0xffffffff7fffd0f0, 0x100127270, 0x100000000, 0x0), at 0x100005b80
User Comments:
vasiljevic added on 2007-01-18 19:13:10:
Logged In: YES 
user_id=95086
Originator: NO

Do you get this in 8.4.14 or only in 8.5 branch?
Also, does it make any change when compiled with GCC?

lvirden added on 2007-01-18 19:29:24:
Logged In: YES 
user_id=15949
Originator: YES

I haven't tried 8.4.14 with these configure options yet. I can try that. Also, I haven't used gcc with Tcl, because my developers (who have their own extensions) are using Sun's C compiler.  I'll try 8.4.14 first and let you know about that, and see about a special one time test with gcc and 8.5

dgp added on 2007-01-29 23:43:18:
Logged In: YES 
user_id=80530
Originator: NO


Tcl HEAD Works For Me on
Solaris 9 with the reported
configure options and compiler
Forte Developer 7 C 5.4 2002/03/09.
Is that the "sun c compiler" of
the original report?

It seems strange to me that
the report notes a --enable-symbols
build, but no symbols appear in
the stack trace.

If the crash is still happening,
it would be worthwhile to use
the -verbose option to determine
which test is running at crash time.

sf-robot added on 2007-02-13 10:20:07:
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).