.
D 2000-10-26T01:10:03
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4409\sBug\nVersion:\s8.3\nSubmitDate:\s'2000-03-20'\nLastModified:\s'2000-03-27'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sOther\nOSVersion:\sibm370-amdahl-uts4\nFixedDate:\s'2000-03-27'\nFixedInVersion:\s8.3.1\nClosedDate:\s'2000-10-25'\n\n\nName:\nJohn\sEllson\n\nReproducibleScript:\nThere's\sa\sbug\sin\sthe\suts4\snative\scompiler's\shandling\sof\slseek\sthat's\ncausing\sthe\stclsh\s"seek"\scommand\sto\sget\sa\s"Bad\sSystem\sCall(coredump)"\nsignal.\s\sThis\sonly\sfails\swhen\sthe\scompiler\sis\sin\snon-ansi\smode,\snot\s\nwith\s-Xa.\n\nBelow\sis\sa\spatch\sthat\sshould\sfix\sit,\swhich\sis\sto\scast\sthe\ssecond\sparameter\nto\soff_t.\sThere\sare\sother\scalls\sto\slseek\sin\sthe\ssame\ssource\sfile\swhere\sthis\nis\salready\sdone.\n\nObservedBehavior:\nno\scrashes\n\nPatch:\n***\stcl8.3.0/unix/tclUnixChan.c.O\s\s\s\s\s\s\sFri\sMar\s\s3\s11:05:34\s2000\n---\stcl8.3.0/unix/tclUnixChan.c\sFri\sMar\s\s3\s11:05:11\s2000\n***************\n***\s502,508\s****\n\s\s\s\s\s\sFileState\s*fsPtr\s=\s(FileState\s*)\sinstanceData;\n\s\s\s\s\s\sint\snewLoc;\n\s\s\n!\s\s\s\s\snewLoc\s=\slseek(fsPtr->fd,\soffset,\smode);\n\s\s\n\s\s\s\s\s\s*errorCodePtr\s=\s(newLoc\s==\s-1)\s?\serrno\s:\s0;\n\s\s\s\s\s\sreturn\snewLoc;\n---\s502,508\s----\n\s\s\s\s\s\sFileState\s*fsPtr\s=\s(FileState\s*)\sinstanceData;\n\s\s\s\s\s\sint\snewLoc;\n\s\s\n!\s\s\s\s\snewLoc\s=\slseek(fsPtr->fd,\s(off_t)\soffset,\smode);\n\s\s\n\s\s\s\s\s\s*errorCodePtr\s=\s(newLoc\s==\s-1)\s?\serrno\s:\s0;\n\s\s\s\s\s\sreturn\snewLoc;\n\nPatchFiles:\ntclUnixChan.c\n\n\n\nAgain,\sthanks\sfor\sthe\spatch.\s\sI\sapplied\sit\sto\sthe\sCVS\srepository;\sthe\sfix\swill\sgo\sout\swith\s8.3.1.\n\n-\seric\n\n--\s03/27/2000\sericm\n\n
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Bad\sSystem\sCall(coredump)"\sfrom\slseek
J type Bug
K 219062ffffffffffffffffffffffffffffffffff
U nobody
Z b4fa2115e8628b95f7d5c9667ef18c1f