|
2003-07-17
| ||
| 05:10 | • Closed ticket [767578ffff]: NotifierThreadProc is spinning on 64 bit machine... artifact: db37a272b8 user: hobbs | |
|
2003-07-09
| ||
| 12:56 | • Ticket [767578ffff]: 4 changes artifact: b7a98e6f24 user: henninggodske | |
| 02:24 | • Ticket [767578ffff]: 5 changes artifact: ae14691045 user: hobbs | |
|
2003-07-08
| ||
| 15:53 | • Ticket [767578ffff]: 6 changes artifact: 265ea40820 user: dkf | |
| 13:45 | • Ticket [767578ffff]: 4 changes artifact: c95485b4ff user: henninggodske | |
| 06:27 | • New ticket [767578ffff]. artifact: f4803daba8 user: nobody | |
NotifierThreadProc is spinning on 64 bit machine
Closed / Fixed767578ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-07-08 06:27:42
From [email protected] Seen in 8.4.3 The use of vars. "found" and "word" in NotifierThreadProc() in tclUnixNotfy.c shall be long, not int, as they are used to hold long values in the select tests. This error results in the select spinning if int and long is not the same size. First seen on HP-UX 11i running Tcl/Tk in 64 bit mode.
henninggodskeplain2003-07-08 13:45:57
Logged In: YES user_id=818072 The code change needed ín tcl8.4.3/unix/tclUnixNotfy.c is: 865c865,866 < int i, status, index, bit, numFdBits, found, receivePipe, word; --- > int i, status, index, bit, numFdBits, receivePipe; > long found, word;
dkfplain2003-07-08 15:53:31
Logged In: YES user_id=79902 Any reason not to declare those variables as fd_mask instead? That's the official type of the members of the array that they are manipulating... In fact, I think those variables ought to be declared much closer to where they are used (somewhere around line 971) but that's just a general stylistic point.
hobbsplain2003-07-09 02:24:22
Logged In: YES user_id=72656 I believe going with the proper type is best. Is there a particular test I can use to verify this (although logically it is clear ... tests are always nice).
henninggodskeplain2003-07-09 12:56:10
Logged In: YES user_id=818072 The bug was not found using Tcl/Tk tests, but when imbedding Tk into another application on a HP-UX 11i. The Tcl part runs OK, but it started spinning when the main Tk window was raised, because on the HP platform this sets a bit in the high-end of the select mask. The same code was running without any problems on Tru64 UNIX and on Solaris. So I don't have at test, except that the fix worked on HP-UX and did not break anything on Tru64 and Solaris.
hobbsplain2003-07-17 05:10:51
Logged In: YES user_id=72656 corrected for 8.4.4 and 8.5a
Log in (anonymous is fine) to add a comment.