Bug 15081

Summary: AB-INT PTEST: tcl aaa_exit ptest failure
Product: [QA/Testing] Package Testing (ptest) Reporter: Alexandre Belloni <alexandre.belloni>
Component: ptestAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, nat.bailey, randy.macleod, ross.burton, tgamblin
Version: unspecified   
Target Milestone: 5.0 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2023-03-23 14:36:55 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/4627/steps/13/logs/stdio

'tcl': ['aaa_exit.test']

FAIL: aaa_exit.test
Tests running in interp:  /usr/lib/tcl/ptest/tcltest
Tests located in:  /usr/lib/tcl/ptest/tests
Tests running in:  /usr/lib/tcl/ptest
Temporary files stored in /usr/lib/tcl/ptest
Test files run in separate interpreters
Running tests that match:  *
Skipping test files that match:  l.*.test
Only running test files that match:  aaa_exit.test
Tests began at Fri Mar 17 17:32:49 GMT 2023
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
Comment 1 Randy MacLeod 2023-03-23 14:55:45 UTC
Happened in two runs this week.
Comment 2 Alexandre Belloni 2023-03-23 16:38:17 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/4646/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 3 Alexandre Belloni 2023-06-08 21:32:08 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/4936/steps/12/logs/stdio

qemuarm64-ptest ubuntu2204-arm-1
Comment 4 Alexandre Belloni 2023-07-19 17:13:13 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5058/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 5 Alexandre Belloni 2023-07-20 22:20:11 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5180/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 6 Alexandre Belloni 2023-08-01 17:12:31 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5214/steps/12/logs/stdio

qemuarm64-ptest ubuntu2204-arm-1
Comment 7 Alexandre Belloni 2023-09-07 16:28:50 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5364/steps/12/logs/stdio

qemuarm64-ptest ubuntu2204-arm-1
Comment 8 Alexandre Belloni 2023-11-09 10:29:36 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5673/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 9 Ross Burton 2023-12-07 22:20:41 UTC
Patch to add skips sent.
Comment 10 Ross Burton 2023-12-13 16:49:16 UTC
Hopefully fixed in 68beb4f4b5a0bea5d431decddf7656f18ac7a04a.