|
2003-10-04
| ||
| 03:46 | • Closed ticket [811483ffff]: delete trace calls traced command ->segfault ... artifact: a69083c889 user: dgp | |
|
2003-10-03
| ||
| 20:29 | • Ticket [811483ffff]: 5 changes artifact: 4f66541e9d user: dgp | |
| 16:18 | • Ticket [811483ffff]: 4 changes artifact: d7a3f4395b user: vincentdarley | |
| 06:19 | • Ticket [811483ffff]: 1 change artifact: 4dbf908dde user: dgp | |
| 01:54 | • Add attachment 811483-HEAD.patch to ticket [811483ffffffffff|811483ffff... artifact: 3b0389794a user: dgp | |
| 01:54 | • Ticket [811483ffff] delete trace calls traced command ->segfault status s... artifact: 1594e49e9e user: dgp | |
| 00:53 | • Ticket [811483ffff]: 1 change artifact: ed510315e6 user: dgp | |
| 00:51 | • Ticket [811483ffff]: 4 changes artifact: 2754b9d13c user: dgp | |
| 00:51 | • Add attachment 811483.patch to ticket [811483ffff] artifact: d3940fe45b user: dgp | |
| 00:51 | • Ticket [811483ffff] delete trace calls traced command ->segfault status s... artifact: 546c33f237 user: dgp | |
|
2003-09-29
| ||
| 21:16 | • Ticket [811483ffff]: 4 changes artifact: b63265ec52 user: dgp | |
|
2003-09-24
| ||
| 01:59 | • New ticket [811483ffff]. artifact: b4dd3bea20 user: dgp | |
delete trace calls traced command ->segfault
Closed / Fixed811483ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-09-24 01:59:12
test trace-32.1 {nystery memory corruption} knownBug {
proc foo {} {}
trace add command foo delete foo
trace add execution foo enter foo
set result [trace info command foo]
rename foo {}
set result
} [list [list delete foo]]
This test causes a segfault.
apparently related to the fact that
the deletion trace tries to call the
traced command, but still needs
further tracking down. It's nasty
memory corruption somewhere.
dgpplain2003-09-29 21:16:16
Logged In: YES user_id=80530 at least some of the problem appear due to an error in refcounting of the TraceCommandInfo struct in TraceCommandProc(). There the refCount is decremented without actually removing the reference, and the inconsistency leads to trouble. There are probably good lessons on how to get this right in the variable tracing code.
dgpplain2003-10-03 00:51:26
Logged In: YES user_id=80530 This patch stops the accessing of freed memory by test trace-32.1, and also corrects some coding errors found along the way. Assigning to TIP 62 implementor for a chance to comment.
dgpplain2003-10-03 00:51:30
File Added - 63227: 811483.patch
dgp Ticket [811483ffff]: 1 change
[History diff]2003-10-03 00:53:26
dgpplain2003-10-03 01:54:54
File Added - 63233: 811483-HEAD.patch Logged In: YES user_id=80530 Here's the corresponding patch for the HEAD.
dgp Ticket [811483ffff]: 1 change
[History diff]2003-10-03 06:19:05
vincentdarleyplain2003-10-03 16:18:23
Logged In: YES user_id=32170 As far as I can tell, this looks ok, but I haven't fully investigated the implications of calling Tcl_UntraceCommand at that point. p.s. thanks for looking into all these 'trace' issues, and sorry I haven't been more forthcoming with help/advice.
dgpplain2003-10-03 20:29:50
Logged In: YES user_id=80530 Thanks. I have good confidence there will be no trouble untracing the trace at that point, because the ActiveTrace trickery is used throughout the trace system just to enable the untracing at any time.
dgpplain2003-10-04 03:46:45
Logged In: YES user_id=80530 fixed for 8.4.5+
Log in (anonymous is fine) to add a comment.
Attachments:
- 811483-HEAD.patch [download] added by dgp on 2003-10-03 01:54:54. [details]
- 811483.patch [download] added by dgp on 2003-10-03 00:51:28. [details]