Problem Report Number | 0005 (TSD.0001) |
---|---|
Submitter's Classification | Test Suite Problem (TSD) |
State | Resolved |
Resolution | Test Suite Deficiency (TSD) |
Raised | 2002-07-26 22:55 |
Updated | 2002-08-01 09:11 |
Published | 2002-08-01 09:11 |
Certification Program | Linux Standard Base Conformance Release 1.2 |
Test Suite | lsb-runtime IA32 version 1.2.1-1 |
Test Identification | LSB.os/ioprim/readv_L/T.readv_L 3,6-8,10,11,14,16 |
Problem Summary | Bad function declaration gives SEGVs |
Problem Text | IA64 and other LP64 machines: the function tbrdv_to fails to include a declaration for the second and third arguments, the second is a pointer. This defaults to an "int", on an LP64 machine that means the address of the iovec is truncated, leading to a bad address and a segmentation violation. Should not be an issue on ILP32 machines, or on ILP64. Patch is enclosed: --- LSB.os/ioprim/readv_L/readv_L.c- Fri Jul 26 14:38:27 2002 +++ LSB.os/ioprim/readv_L/readv_L.c Fri Jul 26 16:27:49 2002 @@ -356,6 +356,8 @@ private ssize_t tbrdv_to(fd, iov, iovcnt, timeout, expret, experrno, expdata) int fd; +struct iovec *iov; +int iovcnt; unsigned timeout; int expret, experrno; char *expdata; |
Test Output | 520|539 3 00014737 1 1|unexpected signal 11 (SIGSEGV) received 10|539 /tset/LSB.os/ioprim/readv_L/T.readv_L 22:13:31|TC Start, scenario ref 544-0 15|539 3.3-lite 24|TCM Start 400|539 3 1 22:13:35|IC Start 200|539 3 22:13:35|TP Start 520|539 3 00026867 1 1|unexpected signal 11 (SIGSEGV) received 220|539 3 1 22:13:35|FAIL 410|539 3 1 22:13:35|IC End 400|539 6 1 22:13:35|IC Start 200|539 6 22:13:35|TP Start 520|539 6 00026867 1 1|unexpected signal 11 (SIGSEGV) received 220|539 6 1 22:13:35|FAIL 410|539 6 1 22:13:35|IC End 400|539 7 1 22:13:35|IC Start 200|539 7 22:13:35|TP Start 520|539 7 00026867 2 1|child process was terminated by signal 11 (SIGSEGV) 220|539 7 1 22:13:45|FAIL 410|539 7 1 22:13:45|IC End 400|539 8 1 22:13:45|IC Start 200|539 8 22:13:45|TP Start 520|539 8 00026867 3 1|child process was terminated by signal 11 (SIGSEGV) 520|539 8 00026867 5 1|child process was terminated by signal 11 (SIGSEGV) 220|539 8 1 22:14:35|FAIL 410|539 8 1 22:14:35|IC End 400|539 10 1 22:14:35|IC Start 200|539 10 22:14:35|TP Start 520|539 10 00026867 1 1|unexpected signal 11 (SIGSEGV) received 220|539 10 1 22:14:35|FAIL 410|539 10 1 22:14:35|IC End 400|539 11 1 22:14:35|IC Start 200|539 11 22:14:35|TP Start 520|539 11 00026867 2 1|unexpected signal 11 (SIGSEGV) received 220|539 11 1 22:14:35|FAIL 410|539 11 1 22:14:35|IC End 400|539 14 1 22:14:41|IC Start 200|539 14 22:14:41|TP Start 520|539 14 00026867 1 1|unexpected signal 11 (SIGSEGV) received 220|539 14 1 22:14:41|FAIL 410|539 14 1 22:14:41|IC End 400|539 16 1 22:14:43|IC Start 200|539 16 22:14:43|TP Start 520|539 16 00026867 1 1|unexpected signal 11 (SIGSEGV) received 220|539 16 1 22:14:43|FAIL 410|539 16 1 22:14:43|IC End |
Review Type | TSMA Review |
---|---|
Start Date | 2002-07-26 22:55 |
Last Updated | 2002-07-30 15:25 |
Completed | 2002-07-30 15:25 |
Status | Complete |
Review Recommendation | Test Suite Deficiency (TSD) |
Review Response | A TSD is recommended. |
Review Type | SA Review |
---|---|
Start Date | 2002-07-30 14:25 |
Last Updated | 2002-07-31 16:43 |
Completed | 2002-07-31 16:43 |
Status | Complete |
Review Resolution | Test Suite Deficiency (TSD) |
Review Conclusion | SA concurrs with TSD. |
Copyright 2005, The Free Standards Group, All Rights Reserved