Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a09650db42aaf5c1267917a2edc8a390dd7a287
Ticket: 2415422fffffffffffffffffffffffffffffffff
TclExecuteByteCode assert fail after {*}longlist
User & Date: ferrieux on 2008-12-11 23:58:43
Changes

  1. icomment:
    Hum, cannot repro on:
    Linux lat6466.rd.francetelecom.fr 2.6.9-67.0.22.ELsmp #1 SMP Wed Jul 23 17:30:51 EDT 2008 i686 i686 i386 GNU/Linux
    
    I tried both CFLAGS_DEBUG and CFLAGS_OPTIMIZE.
    Here is the disassembled [crash]:
    
    % ::tcl::unsupported::dis proc crash
    ByteCode 0x0x9ff9060, refCt 1, epoch 4, interp 0x0x9fdf0f0 (epoch 4)
      Source "\n   if {[llength [list {*}[lrepeat 1781 \"\"]]]} {\n      "
      Cmds 5, src 65, inst 30, litObjs 5, aux 0, stkDepth 4, code/src 0.00
      Proc 0x0xa011058, refCt 1, args 0, compiled locals 0
      Commands 5:
          1: pc 0-28, src 4-63         2: pc 0-17, src 9-43
          3: pc 0-16, src 18-42        4: pc 3-10, src 27-41
          5: pc 21-24, src 56-58
      Command 1: "if {[llength [list {*}[lrepeat 1781 \"\"]]]} {\n       nop"
      Command 2: "llength [list {*}[lrepeat 1781 \"\"]]"
      Command 3: "list {*}[lrepeat 1781 \"\"]"
        (0) expandStart 
        (1) push1 0         # "list"
      Command 4: "lrepeat 1781 \"\""
        (3) push1 1         # "lrepeat"
        (5) push1 2         # "1781"
        (7) push1 3         # ""
        (9) invokeStk1 3 
        (11) expandStkTop 2 
        (16) invokeExpanded 
        (17) listLength 
        (18) tryCvtToNumeric 
        (19) jumpFalse1 +8  # pc 27
      Command 5: "nop"
        (21) push1 4        # "nop"
        (23) invokeStk1 1 
        (25) jump1 +4       # pc 29
        (27) push1 3        # ""
        (29) done 
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"