|
2012-03-06
| ||
| 00:30 | • Closed ticket [3486554fff]: FD_SET macros must be used plus 7 other changes artifact: f43288bb06 user: ferrieux | |
|
2012-03-05
| ||
| 09:21 | • Ticket [3486554fff]: 1 change artifact: b123e51cd4 user: das | |
| 09:21 | • Ticket [3486554fff]: 4 changes artifact: d1ea359ed7 user: das | |
| 01:53 | • Ticket [3486554fff]: 4 changes artifact: 9cd315bcb6 user: ferrieux | |
| 01:49 | • Ticket [3486554fff]: 6 changes artifact: 49eab788d7 user: ferrieux | |
|
2012-02-10
| ||
| 22:02 | • Open ticket [3486554fff]. artifact: 376b322b05 user: ferrieux | |
| 21:58 | • Closed ticket [3486554fff]. artifact: 822de5b43a user: ferrieux | |
| 21:57 | • Ticket [3486554fff]: 4 changes artifact: 3f385cecef user: ferrieux | |
| 21:57 | • Add attachment selectbomb3.tcl to ticket [3486554fff] artifact: 4a292c7d21 user: ferrieux | |
| 21:56 | • Ticket [3486554fff] FD_SET macros must be used status still Open with 4 othe... artifact: c7967239b6 user: ferrieux | |
| 21:56 | • Add attachment selectbomb2.tcl to ticket [3486554fff] artifact: 2091e6aa4a user: ferrieux | |
| 21:56 | • Add attachment selectbomb1.tcl to ticket [3486554fff] artifact: 08e9be4fd3 user: ferrieux | |
| 21:56 | • Ticket [3486554fff] FD_SET macros must be used status still Open with 4 othe... artifact: 23934c0630 user: ferrieux | |
| 14:55 | • New ticket [3486554fff]. artifact: 4f8206141b user: ferrieux | |
FD_SET macros must be used
Closed / Fixed3486554fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2012-02-10 14:55:28
This report is here to document a past fix, but is nonetheless important as a reference for people encountering the associated bugs in older versions, since these bugs have not been reported here. Prior to Check-in [e496f9ef50] by Daniel A. Steffen, 2009-04-10 20:46:21, * unix/tclUnixChan.c: TclUnixWaitForFile(): use FD_* macros * macosx/tclMacOSXNotify.c:to manipulate select masks (Cassoff). Bug 1960647 there were dangerously non-portable shift manipulations in TclUnixWaitForFile(). These have been properly replaced by the clean FD_SET et al. macros by Daniel. Here is the behavior, observed independently by me on 8.4.13 and by evilotto on 8.4.12, both on x84_64 Linux: A fileevent readable on a high descriptor (above 32) repeatedly fires, but the [read]s done on it don't consume any bytes, leading to a busyloop known as "select bomb". The failing bitshifts misdirected the setting of the select() bits. Attached scripts, courtesy of evilotto, expose the behavior. Also, the problem is likely to occur under load when using [package require httpd] asynchronously (many simultaneous requests must be active).
ferrieuxplain2012-02-10 21:56:18
File Added - 435415: selectbomb1.tcl
ferrieuxplain2012-02-10 21:56:45
File Added - 435417: selectbomb2.tcl
ferrieuxplain2012-02-10 21:57:29
File Added - 435419: selectbomb3.tcl
ferrieuxplain2012-02-10 21:58:12
Closing since it was fixed nearly 3 yrs ago.
ferrieuxplain2012-02-10 22:02:25
Reopening since it was never backported to 8.4. Pending specific action, the 8.4 branch remains crippled in that regard: don't use 8.4 on x86_64 !!!
ferrieuxplain2012-03-05 01:49:19
In case a 8.4.20 is rolled out...
ferrieuxplain2012-03-05 01:53:17
Daniel, any objection against a backport of this specific cleanup to 8.4 ?
dasplain2012-03-05 09:21:07
none at all, please feel free!
das Ticket [3486554fff]: 1 change
[History diff]2012-03-05 09:21:14
ferrieuxplain2012-03-06 00:30:24
Committed to tip of core-8-4-branch
Log in (anonymous is fine) to add a comment.
Attachments:
- selectbomb3.tcl [download] added by ferrieux on 2012-02-10 21:57:29. [details]
- selectbomb2.tcl [download] added by ferrieux on 2012-02-10 21:56:45. [details]
- selectbomb1.tcl [download] added by ferrieux on 2012-02-10 21:56:18. [details]