Problem Report Number | 0006 (TSD.0002) |
---|---|
Submitter's Classification | Test Suite Problem (TSD) |
State | Resolved |
Resolution | Test Suite Deficiency (TSD) |
Raised | 2002-07-27 00:44 |
Updated | 2002-08-05 14:11 |
Published | 2002-08-05 14:11 |
Certification Program | Linux Standard Base Conformance Release 1.2 |
Test Suite | lsb-runtime IA32 version 1.2.1-1 |
Test Identification | /tset/LSB.os/procprim/exec_L/T.execl_L 1 |
Problem Summary | LSB.os exec tests fail sigalstack test |
Problem Text | Observed on Itanium, may apply elsewhere. exec test 1 sets up a sigalstack, execs, and has the child do a sigalstack call to make sure there's no stack. The child test (exec_tgn_L.c) does not allocate space for the retrieved "old" stack, apparently this is required (perhaps not for all platforms?). Thus a segv in the child. Patch attached: --- LSB.os/procprim/exec_L/exec_tgn_L.c- Fri Jul 26 18:22:29 2002 +++ LSB.os/procprim/exec_L/exec_tgn_L.c Fri Jul 26 18:18:56 2002 @@ -193,12 +193,12 @@ test1() { int err; - stack_t *old_stack; + stack_t old_stack; int pathok = 0; DBUG_ENTER("test1"); - if (sigaltstack((const stack_t *) NULL, old_stack) == SYSERROR) { + if (sigaltstack((const stack_t *) NULL, &old_stack) == SYSERROR) { err = errno; pipe_xx_rpt(DELETION); (void) sprintf(rbuf, "deletion reason - sigaltstack() failed - errno %d", err); @@ -208,10 +208,10 @@ else PATH_TRACE; - if((old_stack->ss_flags&SS_DISABLE) == 0) { + if((old_stack.ss_flags&SS_DISABLE) == 0) { pipe_xx_rpt(FAILURE); pipe_in_rpt("alternate signal stack not disabled by exec:"); - (void) sprintf(rbuf, "expected value %d; observed value %d", SS_DISABLE, old_stack->ss_flags); + (void) sprintf(rbuf, "expected value %d; observed value %d", SS_DISABLE, old_stack.ss_flags); pipe_in_rpt(rbuf); } else |
Test Output | 10|642 /tset/LSB.os/procprim/exec_L/T.execl_L 22:27:34|TC Start, scenario ref 647-0 15|642 3.3-lite 8|TCM Start 400|642 1 1 22:27:34|IC Start 200|642 1 22:27:34|TP Start 520|642 1 00028720 2 1|deletion reason - unexpected child status 520|642 1 00028720 2 2|expected action: process exitted - exit code 1 520|642 1 00028720 2 3|observed action: signal 11 terminated process 220|642 1 2 22:27:34|UNRESOLVED 410|642 1 1 22:27:34|IC End 10|643 /tset/LSB.os/procprim/exec_L/T.execle_L 22:27:47|TC Start, scenario ref 648-0 15|643 3.3-lite 8|TCM Start 400|643 1 1 22:27:47|IC Start 200|643 1 22:27:47|TP Start 520|643 1 00028731 2 1|deletion reason - unexpected child status 520|643 1 00028731 2 2|expected action: process exitted - exit code 1 520|643 1 00028731 2 3|observed action: signal 11 terminated process 220|643 1 2 22:27:47|UNRESOLVED 410|643 1 1 22:27:47|IC End 10|644 /tset/LSB.os/procprim/exec_L/T.execlp_L 22:28:00|TC Start, scenario ref 649-0 15|644 3.3-lite 8|TCM Start 400|644 1 1 22:28:00|IC Start 200|644 1 22:28:00|TP Start 520|644 1 00028742 2 1|deletion reason - unexpected child status 520|644 1 00028742 2 2|expected action: process exitted - exit code 1 520|644 1 00028742 2 3|observed action: signal 11 terminated process 220|644 1 2 22:28:00|UNRESOLVED 410|644 1 1 22:28:00|IC End 10|645 /tset/LSB.os/procprim/exec_L/T.execv_L 22:28:13|TC Start, scenario ref 650-0 15|645 3.3-lite 8|TCM Start 400|645 1 1 22:28:13|IC Start 200|645 1 22:28:13|TP Start 520|645 1 00028755 2 1|deletion reason - unexpected child status 520|645 1 00028755 2 2|expected action: process exitted - exit code 1 520|645 1 00028755 2 3|observed action: signal 11 terminated process 220|645 1 2 22:28:13|UNRESOLVED 410|645 1 1 22:28:13|IC End 10|646 /tset/LSB.os/procprim/exec_L/T.execve_L 22:28:26|TC Start, scenario ref 651-0 15|646 3.3-lite 8|TCM Start 400|646 1 1 22:28:26|IC Start 200|646 1 22:28:26|TP Start 520|646 1 00028766 2 1|deletion reason - unexpected child status 520|646 1 00028766 2 2|expected action: process exitted - exit code 1 520|646 1 00028766 2 3|observed action: signal 11 terminated process 220|646 1 2 22:28:26|UNRESOLVED 410|646 1 1 22:28:26|IC End 10|647 /tset/LSB.os/procprim/exec_L/T.execvp_L 22:28:39|TC Start, scenario ref 652-0 15|647 3.3-lite 8|TCM Start 400|647 1 1 22:28:39|IC Start 200|647 1 22:28:39|TP Start 520|647 1 00028777 2 1|deletion reason - unexpected child status 520|647 1 00028777 2 2|expected action: process exitted - exit code 1 520|647 1 00028777 2 3|observed action: signal 11 terminated process 220|647 1 2 22:28:39|UNRESOLVED 410|647 1 1 22:28:39|IC End |
Review Type | TSMA Review |
---|---|
Start Date | 2002-07-27 00:44 |
Last Updated | 2002-08-02 08:39 |
Completed | 2002-08-02 08:39 |
Status | Complete |
Review Recommendation | Test Suite Deficiency (TSD) |
Review Response | We recommend that a TSD be granted. |
Review Type | SA Review |
---|---|
Start Date | 2002-08-02 07:39 |
Last Updated | 2002-08-05 09:26 |
Completed | 2002-08-05 09:26 |
Status | Complete |
Review Resolution | Test Suite Deficiency (TSD) |
Review Conclusion | A test suite deficiency is granted. |
Copyright 2005, The Free Standards Group, All Rights Reserved