Menu

#41 Posixtest make fails when executing conformance tests

milestone_1
open
3
2018-01-24
2018-01-24
Seeteena
No

Steps to Reproduce

Machine Type= Power 9/Power 8
Machine Version = SLES 15 Beta4

uname ouptut

Linux alp7 4.12.14-4.2-default #1
SMP Sun Nov 19 21:04:49 UTC 2017 (349e50c) ppc64le
ppc64le ppc64le GNU/Linux

  1. Download
    http://ufpr.dl.sourceforge.net/sourceforge/posixtest/
    posixtestsuite-1.5.2.tar.gz

  2. Go to Posixtestsuite and run make

Test fails with following error

conformance/interfaces/sched_setparam/1-1:
execution: PASS
make: *** [Makefile💯 conformance/interfaces
/sched_setparam/9-1.run-test]
Terminated
make: *** [Makefile💯 conformance/interfaces
/sched_setparam/10-1.run-test]
Terminated
Terminated

This is a test error. The test is calling kill with garbage as pid due to an array overflow:

void kill_children(int *child_pid){
int i;

    for(i=0; i<nb_cpu; i++) {
            kill(child_pid[i], SIGTERM);            
    }

}

This for should iterate up to nb_cpu-1 like main() does:

    for(i=0; i<nb_cpu-1; i++) {

    Attaching the patch..
1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB