Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-03-10
20:25 • Closed ticket [770048ffff]: Tcl_OpenFileChannel trashes memory plus 6 other ... artifact: 860c1113f4 user: vasiljevic
11:05 • Pending ticket [770048ffff]. artifact: aba174e535 user: dgp
2004-10-29
02:48 • Ticket [770048ffff]: 4 changes artifact: 5572ab25d9 user: andreas_kupries
2003-10-22
06:40 • Ticket [770048ffff]: 4 changes artifact: 1e2857af70 user: andreas_kupries
2003-10-03
04:47 • Ticket [770048ffff]: 1 change artifact: 1ccca1a540 user: dgp
2003-07-12
08:23 • New ticket [770048ffff]. artifact: a21e80cef4 user: vasiljevic

Tcl_OpenFileChannel trashes memory

Closed / Out of Date770048ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 21 years ago
Descriptionplain2003-07-12 08:23:05
The Tcl_OpenFileChannel API call trashes memory
when feeded with NULL interp. The workaround was
to open the file using standard open() and then 
do Tcl_MakeFileChannel() using the resulting OS handle.
This was observed on Linux, Solaris and Darwin. I havent
tested it on Windows.
Interestingly, Purify on Solaris can't pinpoint anything.
I assume the problem lies somewhere in the new path 
management code.
dgp Ticket [770048ffff]: 1 change [History diff]2003-10-03 04:47:51
andreas_kupriesplain2003-10-22 06:40:12
Logged In: YES 
user_id=75003

Zoran, do you have some example code I could use to 
reproduce the smash ?
andreas_kupriesplain2004-10-29 02:48:17
Logged In: YES 
user_id=75003

Zoran, can you retest this with 8.4.7 and 8.5 ?

Also, please try to reproduce with a regular core, a core
with --enable-symbols=all, and one with --enable-symbols=symbols
The latter provides us with symbols for a good stacktrace,
but leaves mem debugging out of it, i.e. does not disturb
the mem layout.
dgpplain2006-03-10 11:05:18
Logged In: YES 
user_id=80530


Is this bug still valid?  A number
of routines have been made more
NULL interp tolerant recently.

Marking Pending - Out of Date
unless someone can demo it's
still an issue for 8.4.13 or
8.5a4.
vasiljevicplain2006-03-10 20:25:45
Logged In: YES 
user_id=95086

I tried to trigger it using the last cvs state for core-8-4-branch
but was not able to. Seems to be that recent changes reg. NULL
interp have solved the problem.
I'm closing this one.
Log in (anonymous is fine) to add a comment.