.
D 2001-09-17T18:54:02
J assignee andreas_kupries
J cmimetype text/plain
J comment Using\sexpect5.32\swith\sTcl8.4a3,\smy\sexpect\sscript\nwedges.\nI\shave\sused\sstrace(1)\sand\sprintfs\sto\sfind\sthat\nChannelTimerProc\nis\scalling\sTclNotifyChannel,\swhich\scauses\sexpect\sto\nperform\na\sblocking\sread.\s\sThis\sis\susually\sokay,\sbut\ssometimes\nthere's\nno\sdata,\sand\sthe\sread\sblocks\sforever,\sbecause\sthe\nchannel\ncorresponds\sto\sa\schild\swhich\sis\swaiting\sfor\sa\scommand.\s\nDeadlock.\n\nI\scan\stell\sfrom\sthe\ssystem\scall\strace\sthat\sthe\sprogram\ndoes\sNOT\nhave\senough\sinformation\sto\sknow\swhether\sthe\sread\swill\nblock,\nbut\sit\scould\sguess\sthat\sit\swould\sbecause\sthe\sprevious\nread\nreturned\sa\sshort\sreply.\s\sHowever,\sthe\sfile\sdescriptor\nhas\snot\nbeen\stested\sby\sselect(),\sso\sthe\sissuance\sof\sthe\snotify\nis\sprobably\nbogus.\n\nMy\sguess\sis\sthat\sthere\sshould\sbe\ssomething\scancelling\nthe\ntimer,\ssince\sit\swas\sstarted\sbefore\sthe\slast\ssuccessful\nread,\nand\shas\sjust\sbeen\srunning\ssince\sthen.\n\nI\shave\shundreds\sof\smegabytes\sof\strace,\sbut\sdon't\nunderstand\nthe\sinternals\swell\senough\sto\smake\smuch\smore\ssense\sout\nof\sthem\nthan\sthe\sabove,\sthough\sI'm\sworking\son\sit.\s\sI\scan\sboil\nthe\straces\ndown\squite\sa\sbit\sif\sanyone\scan\swork\swith\sme\son\sthis.\n\nSorry\sI\scan't\sgive\sa\sconcise\scode\ssample,\sbecause\sI\ndon't\sknow\nhow\sto\sprovoke\sthe\serror\swithout\smy\s1GB\sOracle\ndatabase.\nI\shave,\showever,\sincluded\sa\sboiled-down\stail\sof\sone\sof\nthe\ntraces.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter kogorman
J subsystem 25.\sChannel\sSystem
J title Notification\swhen\sthere's\sno\sdata
J type Bug
K 462317ffffffffffffffffffffffffffffffffff
U kogorman
Z dbe78a078324331cf2df5022f633d831