|
2001-04-20
| ||
| 02:07 | • Ticket [219062ffff] Bad System Call(coredump)" from lseek status still ... artifact: e801af8124 user: dgp | |
|
2000-10-26
| ||
| 08:34 | • Closed ticket [219062ffff]. artifact: 4065e40361 user: welch | |
| 01:10 | • New ticket [219062ffff]. artifact: 7e0ffb26c1 user: nobody | |
Bad System Call(coredump)" from lseek
Closed / Fixed219062ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:03
OriginalBugID: 4409 Bug
Version: 8.3
SubmitDate: '2000-03-20'
LastModified: '2000-03-27'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: Other
OSVersion: ibm370-amdahl-uts4
FixedDate: '2000-03-27'
FixedInVersion: 8.3.1
ClosedDate: '2000-10-25'
Name:
John Ellson
ReproducibleScript:
There's a bug in the uts4 native compiler's handling of lseek that's
causing the tclsh "seek" command to get a "Bad System Call(coredump)"
signal. This only fails when the compiler is in non-ansi mode, not
with -Xa.
Below is a patch that should fix it, which is to cast the second parameter
to off_t. There are other calls to lseek in the same source file where this
is already done.
ObservedBehavior:
no crashes
Patch:
*** tcl8.3.0/unix/tclUnixChan.c.O Fri Mar 3 11:05:34 2000
--- tcl8.3.0/unix/tclUnixChan.c Fri Mar 3 11:05:11 2000
***************
*** 502,508 ****
FileState *fsPtr = (FileState *) instanceData;
int newLoc;
! newLoc = lseek(fsPtr->fd, offset, mode);
*errorCodePtr = (newLoc == -1) ? errno : 0;
return newLoc;
--- 502,508 ----
FileState *fsPtr = (FileState *) instanceData;
int newLoc;
! newLoc = lseek(fsPtr->fd, (off_t) offset, mode);
*errorCodePtr = (newLoc == -1) ? errno : 0;
return newLoc;
PatchFiles:
tclUnixChan.c
Again, thanks for the patch. I applied it to the CVS repository; the fix will go out with 8.3.1.
- eric
-- 03/27/2000 ericm
welch Closed ticket [219062ffff].
[History diff]2000-10-26 08:34:06
dgp Ticket [219062ffff]: 4 changes
[History diff]2001-04-20 02:07:31
Log in (anonymous is fine) to add a comment.