Overview
| Artifact ID: | 3393d4ca68e3a91b83363ecda602774f8cf2645b |
|---|---|
| Ticket: | 599788ffffffffffffffffffffffffffffffffff
error in (array element script) causing tclsh segfault |
| User & Date: | wilkason on 2002-08-25 00:25:31 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
The crash originates in generic\tclExecute.c GetSrcInfoForPc at line 4574 at CVS head on 8/24/02 The code is below, what happens is the call to macro TclGetInt4AtPtr with value 0xFF returns a huge negative number thus later causing offsets to break and eventually a crash in tclBasic.c Tcl_LogCommandInfo. The error was introduced sometime after 8.4b2. The offending source code is below: if ((unsigned int) (*srcDeltaNext) == (unsigned int) 0xFF) { srcDeltaNext++; delta = TclGetInt4AtPtr(srcDeltaNext); // <- bad juju returned srcDeltaNext += 4; } else { delta = TclGetInt1AtPtr(srcDeltaNext); srcDeltaNext++; } } Source in the attached file to see it. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "wilkason"
- subsystem changed to: "47. Bytecode Compiler"
- title changed to: "error in catch causing tclsh segfault"
- type changed to: "Bug"