Skip to content
Tcl Source Code History Of Ticket 1780870fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1780870fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1780870fffffffffffffffffffffffffffffffff

  1. Ticket change [840336e0b8] (rid 117478) by nobody on 2007-08-24 09:10:50:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When compiling tcl with the intel compiler (icc 10.0 20070426 - x386, linux) and optimisation enabled, the resulting executable segfaults. The issue is in the file generic/tclCompile.c, function TclFixupForwardJump.
      
      What the compiler apparently does not understand/screws up in optimisation is the loop
      
      for (numBytes = envPtr->codeNext-jumpPc-2, p = jumpPc+2+numBytes-1;
           numBytes > 0;  numBytes--, p--) {
       p[3] = p[0];
      }
      
      Changing p to 'volatile' solves the problem - e.g. changing the line
      
      unsigned char* jumpPc,p;
      
      to
      
      unsigned char* jumpPc;
      volatile unsigned char* p;
      
      It would be great, if the above would not be dismissed as a 'compiler issue'. I think the best solution would be if someone who is familiar with the code could convert the loop into a call to memmove (assuming that call is available on most platforms)?
      
      
    4. foundin initialized to: "obsolete: 8.4.15"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "47. Bytecode Compiler"
    11. title initialized to: "tcl segfaults when using intel compiler"
    12. type initialized to: "Bug"
  2. Ticket change [24b3f5b2e4] (rid 131153) by dkf on 2007-08-24 18:13:11:

    1. priority changed to: "9 Immediate"
  3. Ticket change [73a71a6322] (rid 105073) by msofer on 2007-08-24 18:22:10:

    1. closedate changed to: "2007-08-24T11:22:10"
    2. closer changed to: "msofer"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  4. Ticket change [64e35d6cb7] (rid 92848) by dgp on 2007-08-24 21:07:12:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Now, that a workaround is in Tcl's source code,
      I hope someone will report this "compiler issue"
      to the maintainers of the misbehaving compiler.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"