Artifacts Associated With Ticket 1067708fffffffff
Ticket change [b0ae2106e9] (rid 98028) by nobody on 2004-11-16 23:25:18:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl 8.4.7, built with threads enabled, crashes when configuring a serial port on a Linux system. The following code reproduces the problem: > % info patchlevel > 8.4.7 > % open /dev/ttyS0 {RDWR} > file7 > % fconfigure file7 -mode "9600,n,8,1" > % fconfigure file7 -ttycontrol {RTS 1 DTR 1} > Segmentation fault The fault appears to be specific to the 'ttycontrol' option and does not happen on a non-threaded build. The platform is Slackware Linux 9.1 with GCC 3.2.3 and glibc 2.3.2. The configure options used to compile Tcl were "--enable-shared --enable-threads". George fr30 at dial dot pipex dot com - foundin initialized to: "obsolete: 8.4.7"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "24. Channel Commands"
- title initialized to: "Threaded Tcl crashes on fconfigure -ttycontrol"
- type initialized to: "Bug"
Ticket change [e3df6d932a] (rid 87870) by hobbs on 2004-11-17 06:57:48:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=72656 I believe the following patch is correct for 8.4.8. Please verify - may need adjustment for 8.5a2.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "hobbs"
Add attachment "1067708.patch" [738fcd4fcd] (rid 105062) by hobbs on 2004-11-17 06:57:48.
Ticket change [4127b7c83b] (rid 116140) by hobbs on 2004-11-17 06:57:49:
- icomment:
File Added - 109035: 1067708.patch
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [aef41cfd8d] (rid 97726) by dgp on 2004-11-17 07:50:27:
- assignee changed to: "hobbs"
Ticket change [f0d9e6d5dd] (rid 109267) by dgp on 2004-11-17 07:50:28:
- icomment:
Logged In: YES user_id=80530 patch applies to both branches, and after application the crash is gone in both branches. changes look correct too.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1e1587ccc1] (rid 90917) by hobbs on 2004-11-17 09:53:33:
- resolution changed to: "Fixed"
Ticket change [d5d1240115] (rid 123697) by hobbs on 2004-11-17 09:53:34:
- assignee changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=72656 Fixed this in 8.4.8 and 8.5a2. Noticed that tclWinChan.c avoided this by never freeing the argv array! This moves to an open bug on win/tclWinChan.c to free that memory (correctly!).
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "6"
- title changed to: "bad argv handling for fconfigure -ttycontrol"
- username: "hobbs"
Ticket change [9ae57e9cfb] (rid 111027) by dgp on 2004-12-02 05:22:02:
- icomment:
Logged In: YES user_id=80530 should this be closed now?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [dcab91fa73] (rid 114521) by andreas_kupries on 2004-12-02 05:26:07:
- icomment:
Logged In: YES user_id=75003 No, because we still have to fix the memleak on windows.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [6a012d544d] (rid 128072) by hobbs on 2005-10-05 13:34:26:
- closedate changed to: "2005-10-05T06:34:26"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 properly free argv in 8.4.12 and 8.5a4.
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "hobbs"