Artifacts Associated With Ticket 1780870fffffffffffffffffffffffffffffffff
Ticket change [840336e0b8] (rid 117478) by nobody on 2007-08-24 09:10:50:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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)? - foundin initialized to: "obsolete: 8.4.15"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "tcl segfaults when using intel compiler"
- type initialized to: "Bug"
Ticket change [24b3f5b2e4] (rid 131153) by dkf on 2007-08-24 18:13:11:
- priority changed to: "9 Immediate"
Ticket change [73a71a6322] (rid 105073) by msofer on 2007-08-24 18:22:10:
- closedate changed to: "2007-08-24T11:22:10"
- closer changed to: "msofer"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [64e35d6cb7] (rid 92848) by dgp on 2007-08-24 21:07:12:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: