.
D 2000-10-26T01:09:10
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3773\sBug\nVersion:\s8.2.2\nSubmitDate:\s'1999-12-06'\nLastModified:\s'1999-12-07'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sAll\sUnix\nFixedDate:\s'1999-12-07'\nFixedInVersion:\s8.3b1\nClosedDate:\s'2000-10-25'\n\n\nName:\nErik\sAllaert\n\nCustomShell:\nNo\spatches\sapplied,\s"pure"\stclsh.\n\nComments:\nCore\sanalysis:\ngdb)\sbt\n#0\s\s0xc0140120\sin\skill\s()\n#1\s\s0xc00a9744\sin\sraise\s()\n#2\s\s0xc008b258\sin\s_sigaddset\s()\n#3\s\s0xc0085c84\sin\sabort\s()\n#4\s\s0xc0f09d04\sin\spanic\s()\n#5\s\s0xc0f40518\sin\sFlushChannel\s()\n#6\s\s0xc0f40d08\sin\sDoWrite\s()\n#7\s\s0xc0f40a8c\sin\sTcl_Write\s()\n#8\s\s0xc0f4563c\sin\sTcl_PutsObjCmd\s()\n\nDoes\salso\shappen\sin\sTcl\s8.0.5.\sDid\snot\shappen\sin\sTcl\s7.6\n\nReproducibleScript:\n#!/bin/sh\n#\sexec\stclsh\s"$0"\s${1+"$@"}\n\nfconfigure\sstdin\s-blocking\s0\s;\s#\swithout\sthis,\sno\score\sdump\n\nfor\s{set\si\s0}\s{$i\s<\s1000}\s{incr\si}\s{\n\s\s\s\sputs\s"$i\sabcdefg\sabcdefg\sabcdefg\sabcdefg\sabcdefg\sabcdefg"\n\s\s\s\s##\safter\s1\s;\s#\swith\sthis\sdelay,\sno\score\sdump\s?!?!\n}\n\nObservedBehavior:\nExecuting\sthis\sscript,\swe\sget\sa\score-dump\son\sHP-UX\s10.20\sand\sSolaris\s2.6.\nThis\sseems\sto\sbe\sdue\sto\ssome\srace\sconditions,\sand\ssome\s(relatively\sslow)\shardware\sdoes\snot\sshow\sthis\sproblem;\son\sthe\shardware\sit\soccurs,\sit\sdoesn't\nalways\shappen\safter\sthe\ssame\samount\sof\sloops,\salthough\sthe\sfact\sthat\sit\sdoes\ncore-dump\sis\svery\sreproducible.\sDelays\sintroduced\sby\se.g.\sgbd\smake\sthis\sproblem\n"evaporate"...\n\nThe\score\sdump\soccurs\swithin\stclIO.c,\sfunction\sFlushChannel,\swhen\sthe\noutputChannel\sgets\swritten\sinto.\sThis\sfunction\sseems\sto\sreturn\ssometimes\na\s-1\s(instead\sof\snumber\sof\sbytes\swritten),\sand\sFlushChannel\spanics\swith\nthe\smessage\s"Blocking\schannel\sdriver\sdid\snot\sblock\son\soutput"\s(although\nthis\smessage\sdoes\snot\salways\smake\sit\sto\sstdout).\n\nPlatforms\sexposing\sthis\sproblem:\sHP9000/J2240,\sHP9000/J5000,\sUltra-Sparc\s1\n\nDesiredBehavior:\nNo\score\sdump\s8-)\n\n\n\nremoved\spanic\scase,\sinstead\streating\sit\sthe\ssame\sas\sthe\snon-blocking\nchannel,\sas\sthat\smight\sbe\sthe\sappropriate\smethod\sfor\stty\schannels.\s\n--\s12/07/1999\shobbs
J foundin obsolete:\s8.2.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 62.\s(unused)
J title puts\scommand\score-dumps
J type Bug
K 219000ffffffffffffffffffffffffffffffffff
U nobody
Z 3ebf748962e23499df3e3e610ab94a6f