Overview
| Artifact ID: | 4a825fd8d2a07dff8e15ba81b0765baeabd4dbc4 |
|---|---|
| Ticket: | 494348ffffffffffffffffffffffffffffffffff
foreach crashes in recursion |
| User & Date: | nobody on 2001-12-19 06:59:44 |
Changes
- icomment:
Logged In: NO Hi Donal, it's not a guess. It's a fact. I found it after 2 days of debugging. I was a real crash. Only after that I created a testcase in pure tcl. It's quite simple to see what happens if you use a debugger. Unfortunately, our application is built with Sun compiler, and I use Sun workshop/dbx for debugging, and I am not familiar with gdb. But it might be simple to see in an debugger that after the first cycle the objects stored in varvList are freed, but it will be used in the loop. We had the simular crash in tk level. I did not debug that case (the crash was exacly in the same place), but it disappered after my fix, and you could see the crash are simular. In GUI the crash happened when we forgot to add break in bind command, and tk hot-key handler executed foreach loop for all bindings. I found a suspicious place in tk/library, they use 'foreach trace ...' and tcl has trace command (it's not a problem now). I will try to find a better testcase, but it's not the most urgent problem for our project. By the way, to make crashes more predictable I did setenv LD_PRELOAD watchmalloc.so.1 Please, do not close the bug, I hope you will see it's real.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"