Skip to content
Tcl Source Code Artifact [8bfb25e14c]
Login

Artifact [8bfb25e14c]

Artifact 8bfb25e14c624c4d7174c9239fd8e4da4168a6ffbb0e3ab52355c45e71158876:

Ticket change [8bfb25e14c] - New ticket [bc7ddc7944ec60be|bc7ddc7944] <i>Error: &quot;can&#39;t convert value to type substcode&quot;</i>. by pointsman on 2023-08-08 21:36:51.
D 2023-08-08T21:36:51.455
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment On\sWindows\sand\sLinux\sI\sget\sreproducible\sa\sTcl\sError\swhich\scomes\sout\sof\r\n[https://core.tcl-lang.org/tcl/file?udc=1&ln=963-965&ci=tip&name=generic%2FtclObj.c]\r\nand\sI'm\ssomewhat\scertain\sthis\sshould\snot\sbe\sthis\sway.\r\n\r\nBisecing\spoints\sto\s[91c2f411e7].\sSince\sthen\sI\ssee\sthis\serror:\r\n\r\n@|can't\sconvert\svalue\sto\stype\ssubstcode\r\n@|\s\s\s\swhile\sexecuting\r\n@|"foreach\sfile\s$filesMade\s{\r\n@|\s\s\s\s\s\s\s\s\s\sif\s{[file\sexists\s$file]}\s{\r\n@|\s\s\s\s\s\s\s\s\s\s\s\s\s\sDebugDo\s1\s{Warn\s"cleanupTests\sdeleting\s$file..."}\r\n@|\s\s\s\s\s\s\s\s\s\s\s\s\s\scatch\s{file\sdelete\s-force\s--\s$file}\r\n@|\s\s\s\s\s\s\s..."\r\n@|\s\s\s\s(procedure\s"::tcltest::cleanupTests"\sline\s33)\r\n\r\n(The\sscript\splace\sreferenced\sby\sthis\serror\smsg\sis\r\n[https://core.tcl-lang.org/tcl/file?udc=1&ln=2535&ci=978b4c8a0a42db53&name=library%2Ftcltest%2Ftcltest.tcl])\r\n\r\nThis\sis\sdone\sonly\sby\sscript\scode;\sno\sextension\swhatsoever\sin\splace.\r\n\r\nUnfortunately\sits\sa\slot\sand\sinvolved\scode\sneeded\sto\strigger\sthat\r\nand\sI\sdidn't\ssucceed\sto\sreduce\sthis\sto\sa\ssimple\scode\sexample.\sI\r\nextracted\sit\sout\sof\sthe\stcllib\scontext\s(in\swhich\sI\sstumbled\sover\r\nthis)\sbut\sit\sis\sstill\slots\sof\scode.\sI\stried\ssome\sstandard\r\nmeans\sfrom\svalgrind\sover\sgut\sfeelings\suntil\sfprintf(stder,"")\sbut\r\ncan\sonly\sshare\sa\sfew\smore\sthings.\r\n\r\nI\sseems\sinfact\sto\sblow\sup\sin\sthe\sline\r\n\r\nforeach\sfile\s$filesMade\s{\r\n\r\nAt\sthis\splace\s$filesMade\shas\san\sinternal\srepresentation\slike\r\n(by\stcl::unsupported::representation:\r\n\r\nvalue\sis\sa\ssubstcode\swith\sa\srefcount\sof\s74,\s[...]\r\n\r\nSimples\sway\sto\sreproduce\sis:\r\n\r\nStep\s0:\r\nInstall\sa\sbuild\sof\scurrent\sTcl\strunk\ssomewhere\r\n\r\nStep\s0.5:\r\nGet\sthe\stcllib\sfossil\srepository:\r\n\r\nfossil\sclone\shttps://core.tcl-lang.org/tcllib\stcllib.fossil\r\n\r\nStep\s1:\r\nCreate\sa\stest\sdirectory,\scd\sinto\sand\sdo\r\n\r\nfossil\sopen\spath/to/your/tcllib.fossil\stcl9-testarea-rde\r\n\r\nStep\s2:\r\nRun\r\n\r\ntclsh\ssak.tcl\stest\srun\s-v\s--shell\s/path/to/your/tclsh9.0\sdebug\r\n\r\n(The\stclsh\sin\sthe\scmd\sline\sabove\smay\sbe\sany\srecent\sTcl\ssh\syou've\r\nin\spath.)\r\n\r\nIn\sthe\soutput\sof\sthis\syou\sshould\ssee\sthe\serror.
J foundin trunk
J is_private 0
J login pointsman
J priority 5\sMedium
J private_contact 4ca203a8e925aecdd9419645f936bccf18cd6ea7
J resolution None
J severity Severe
J status Open
J submitter pointsman
J subsystem 69.\sOther
J title Error:\s"can't\sconvert\svalue\sto\stype\ssubstcode"
J type Bug
K bc7ddc7944ec60be761ad6ee54d31110926f85a8
U pointsman
Z c5123d83540fc80fca6e916a442b2eac