|
2007-06-27
| ||
| 09:42 | • Ticket [1743948fff] TclCheckInterpTraces cycles status still Deleted with 1 ... artifact: 15098b1250 user: dgp | |
| 09:09 | • Ticket [1743948fff]: 4 changes artifact: 31a0b39fb2 user: eugene_cdn | |
| 09:06 | • Deleted ticket [1743948fff]. artifact: db10c4e379 user: eugene_cdn | |
| 09:04 | • Ticket [1743948fff]: 4 changes artifact: c7ef51275e user: eugene_cdn | |
| 09:04 | • Add attachment trace.c to ticket [1743948fff] artifact: c3c47b94c0 user: eugene_cdn | |
| 02:04 | • New ticket [1743948fff] TclCheckInterpTraces cycles. artifact: c85aa70422 user: eugene_cdn | |
TclCheckInterpTraces cycles
Deleted1743948fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-06-27 02:04:22
OS: Solaris 9, Linux RH 4U3
On certain order of two Tcl_CreateTrace calls, TclCheckInterpTraces never returns on evaluation of a non-trivial commands. Certain order is first trace is of depth "1", and second one is of depth "5" or more on Solaris and "1" on Linux. It cycles in this loop
for ( tracePtr = iPtr->tracePtr;
(traceCode == TCL_OK) && (tracePtr != NULL);
tracePtr = active.nextTracePtr) {
with the same value of tracePtr.
Expected behavior: should not cycles.
See attached testcase. Need to build it
gcc -o libtrace.so -g -shared -fPIC trace.c -I...
and then
> tclsh
tclsh> load libtrace.so
After a while it hangs. If you switch the order (depth) of traces, it works on Solaris.
It does not matter which file to evaluate. It must be non-trivial.
Good luck!
eugene_cdnplain2007-06-27 09:04:25
File Added - 234689: trace.c
eugene_cdn Deleted ticket [1743948fff].
[History diff]2007-06-27 09:06:07
eugene_cdnplain2007-06-27 09:09:38
Logged In: YES user_id=518794 Originator: YES For sure, I did not create this copy of the bug. I clicked refresh on bug list page. See #1743941.
dgp Ticket [1743948fff]: 1 change
[History diff]2007-06-27 09:42:46
Log in (anonymous is fine) to add a comment.
Attachments:
- trace.c [download] added by eugene_cdn on 2007-06-27 09:04:22. [details]