<i>background error swallowed with command delete trace on a coroutine</i>.
by
.
D 2017-06-22T17:11:10.811
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment When\san\serror\soccurs\sin\sa\scoroutine\sthat\shas\sa\sdelete\strace\sset\son\sit,\sthe\r\ndelete\strace\sis\sinvoked\sbefore\sthe\sbackground\serror\shandler\sis\sinvoked.\sWhen\sa\r\ncoroutine\sis\sacting\sas\sthe\smain\sroutine\sin\sa\sscript\sit\smay\sthen\scarry\sout\sthe\r\nremainder\sof\sthe\sprogram,\soblivious\sto\sthe\serror:\r\n\r\n<code><verbatim>\r\nproc\sbgerror\s{error\soptions}\s{\r\n\s\s\s\sputs\sstderr\s[dict\sget\s$options\s-errorinfo]\r\n\s\s\s\sexit\s1\r\n}\r\n\r\nproc\sp1\s{}\s{\r\n\s\s\s\syield\s[info\scoroutine]\r\n\s\s\s\serror\s{never\sgonna\sgive\syou\sup}\r\n}\r\n\r\ncoroutine\smain\s::apply\s[list\s{}\s{\r\n\s\s\s\syield\s[info\scoroutine]\r\n\s\s\s\scoroutine\sc1\sp1\r\n\s\s\s\strace\sadd\scommand\sc1\sdelete\s[info\scoroutine]\r\n\s\s\s\syieldto\sc1\r\n\s\s\s\sexit\s0\r\n}\s[namespace\scurrent]]\r\nafter\sidle\smain\r\ninterp\sbgerror\s{}\s[namespace\swhich\sbgerror]\r\nvwait\sforever\r\n</verbatim></code>
J foundin head
J is_private 0
J login pooryorick
J priority 5\sMedium
J private_contact e476148cded301ffff84bcdc432536dc0c949e88
J resolution None
J severity Important
J status Open
J submitter pooryorick
J subsystem 20.\s[interp]
J title background\serror\sswallowed\swith\scommand\sdelete\strace\son\sa\scoroutine
J type Bug
K 8f559999fa000614504de7a7eefbc99dc7beea2b
U pooryorick
Z 1c07393e007748602b21cd6b01eabe6e