Tcl Source Code

View Ticket
Login
Ticket UUID: e8004edfe5490a1439e6abfa429581fdd1c5c51d
Title: tip 458 test failures
Type: Bug Created on: 2016-12-12 19:03:36
Submitter: dgp Assigned to: nobody
Subsystem: - New Builtin Commands Severity: Minor
Priority: 5 Medium Last modified: 2026-10-22 17:19:28
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-10-21 08:46:00
Version: tip-458
Description:
The branch might not be fully ready for testing yet,
but FWIW the test suite on Centos Linux 7 yields:

aaa_exit.test


==== exit-1.1 normal, quick exit FAILED
==== Contents of test case:

     set f [open "|[interpreter] << \"exec [interpreter] << {set ::env(TCL_FINALIZE_ON_EXIT) 0;exit}\"" r]
     set aft [after 1000 {set done "Quick exit hangs !!!"}]
     fileevent $f readable {after cancel $aft;set done OK}
     vwait done
     if {$done != "OK"} {
        fconfigure $f -blocking 0
        close $f
     } else {
        if {[catch {close $f} err]} {
            set done "Quick exit misbehaves: $err"
        }
     }
     set done

---- Result was:
Quick exit hangs !!!
---- Result should have been (exact matching):
OK
==== exit-1.1 FAILED



==== exit-1.2 full-finalized exit FAILED
==== Contents of test case:

     set f [open "|[interpreter] << \"exec [interpreter] << {set ::env(TCL_FINALIZE_ON_EXIT) 1;exit}\"" r]
     set aft [after 1000 {set done "Full-finalized exit hangs !!!"}]
     fileevent $f readable {after cancel $aft;set done OK}
     vwait done
     if {$done != "OK"} {
        fconfigure $f -blocking 0
        close $f
     } else {
        if {[catch {close $f} err]} {
            set done "Full-finalized exit misbehaves: $err"
        }
     }
     set done

---- Result was:
Full-finalized exit hangs !!!
---- Result should have been (exact matching):
OK
==== exit-1.2 FAILED

...

basic.test
Test file error: epoll_ctl: Operation not permitted

...

then it appears to hang in chan.test
User Comments:
dgp added on 2016-12-12 19:04:28:
Drilling down some detail:

basic.test
---- basic-26.1 start
Test file error: epoll_ctl: Operation not permitted

dgp added on 2016-12-12 19:05:23:
chan.test
---- chan-16.9 start
<HANGS>

dgp added on 2016-12-12 19:06:49:
==== event-1.1 Tcl_CreateFileHandler, reading FAILED
==== Contents of test case:

    testfilehandler create 0 readable off
    testfilehandler clear 0
    testfilehandler oneevent
    lappend result [testfilehandler counts 0]
    testfilehandler fillpartial 0
    testfilehandler oneevent
    lappend result [testfilehandler counts 0]
    testfilehandler oneevent
    lappend result [testfilehandler counts 0]

---- Result was:
{0 0} {1 0} {1 0}
---- Result should have been (exact matching):
{0 0} {1 0} {2 0}
==== event-1.1 FAILED

dgp added on 2016-12-12 19:07:12:
---- event-5.3 start
<HANGS>

dgp added on 2016-12-12 19:07:32:
I'll stop there; hope that's enough to get started.

anonymous (claiming to be vxp) added on 2017-01-02 18:48:41:
FYI: those have all been fixed a while ago, see *.log in the top-level directory of the `tip458' branch in <https://github.com/lalbornoz/tcl/tree/tip458> for test results and the mailing list thread (TIP #458: Add Support for epoll() and kqueue() in the Notifier.) - vxp

serhiy.storchaka added on 2026-10-21 08:46:00:

TIP 458 was merged in [858569fb04] (2017) after these branch problems were fixed. With the epoll notifier on current main, aaa_exit.test, basic.test, chan.test and event.test all pass. Closing.