Overview
| Artifact ID: | ed50b3b648b5d8c7cf5d518e46efc612a863583608279bedf721454553808296 |
|---|---|
| Ticket: | 893f8cc5db3ba8bd6bed80ce89a0a75c6088a37c
Nested mutexes following TIP 509 |
| User & Date: | sebres on 2025-09-24 20:21:28 |
Changes
- icomment:
Yep... The fix looks good to me.<br/> Moreover it is pretty well reproducible with VC memdebug build, exactly like within GHA before the fix: <details> ``` win> nmake -f makefile.vc OPTS=symbols STATS=compdbg,memdbg test TESTFLAGS="-f \"*exit.test enc*.test\"" ... d:\Projects\tcl9.0-core-upstream\win\Debug_AMD64_VC1942\tcltest90.exe "d:/Projects/tcl9.0-core-upstream/win/../tests/all.tcl" -f "*exit.test enc*.test" -loadfile T:\Temp\nm32.tmp Tests running in interp: d:/Projects/tcl9.0-core-upstream/win/Debug_AMD64_VC1942/tcltest90.exe Tests located in: D:/Projects/tcl9.0-core-upstream/tests Tests running in: D:/Projects/tcl9.0-core-upstream/win Temporary files stored in D:/Projects/tcl9.0-core-upstream/win Test files run in separate interpreters Running tests that match: * Skipping test files that match: l.*.test Only running test files that match: *exit.test enc*.test Tests began at 2025-09-24 22:09:52 +0200 aaa_exit.test ==== 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 encoding.test ==== encoding-24.2 EscapeFreeProc on open channels FAILED ==== Contents of test case: # Bug #524674 output runInSubprocess { encoding system cp1252; # Bug #2891556 crash revelator fconfigure stdout -encoding iso2022-jp puts ab乎棙g set env(TCL_FINALIZE_ON_EXIT) 1 exit } ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: ab8CD%g child killed: segmentation violation while executing "exec [interpreter] $theFile" (procedure "runInSubprocess" line 4) invoked from within "runInSubprocess { encoding system cp1252; # Bug #2891556 crash revelator fconfigure stdout -encoding iso2022-jp puts ab乎棙g set env(TCL_FINALIZ..." ("uplevel" body line 3) invoked from within "uplevel 1 $script" ---- errorCode: CHILDKILLED 22336 SIGSEGV {segmentation violation} ==== encoding-24.2 FAILED Tests ended at 2025-09-24 22:10:34 +0200 all.tcl: Total 234 Passed 228 Skipped 4 Failed 2 Sourced 2 Test Files. Files with failing tests: aaa_exit.test encoding.test Number of tests skipped for each constraint: 4 perf ``` </details> And not reproducible anymore after latest fix of allocMutex. Strange is that it was not reproducible also within [gcc (--enable-symbols=all)](https://github.com/tcltk/tcl/actions/runs/17969599841/job/51113679485), which implies mem-debug too. I expected it to fail there too. - login: "sebres"
- mimetype: "text/x-markdown"