@Anasuya -- the failure here is triggered by what I would think of as an invalid assumption in the LTP test in this case. The value MINSIGSTKSZ says that you should have your stack bigger than this to be valid. It does not actually say that if it is one byte fewer than the limit it will not work. The libc lower limit differs from the kernel absolute limit for this case which is why the test fails on this architecture. But the value libc recommends is bigger and therefore valid.
I don't believe anything is wrong as such, just the test's assumption is wrong. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1267062 Title: LTP sigaltstack02 test failure -- MINSIGSTKSZ in userspace missmatches kernel (was: sigaltstack system call unable to send proper return code (error12)) Status in “eglibc” package in Ubuntu: New Status in “linux” package in Ubuntu: Confirmed Bug description: 9.3.189.114 (root/.pasroot) (Host Machine) Run the follwoing command to go to the guest victim machine from (/var/lib/libvirt/images/jagan/new_ubuntu_alpha1) qemu-system-ppc64 -enable-kvm -M pseries -cpu POWER8 -smp 1 -m 10G -nographic -nodefaults -monitor stdio -serial pty -append "root=/dev/sda" -kernel trusty-server-cloudimg-ppc64el-vmlinuz-generic -device spapr-vscsi -device spapr- vlan,netdev=net0,mac=6c:ae:8b:69:16:15 -netdev bridge,br=virbr0,id=net0 -drive file=trusty-server-cloudimg- ppc64el.img.qcow2 after this command you will get the screen number. example: QEMU 1.6.0 monitor - type 'help' for more information (qemu) char device redirected to /dev/pts/16 (label serial0) Then open another host session and execute the below command # screen /dev/pts/16 (qemu) Here the screen number is /dev/pts/16 -->>Then you will get a blank screen so press ENTER key. The guest machine login: ubuntu/passw0rd Then do --->sudo -i Environment: =========== Host: Power8 Guest : ubuntu hosted on Power8 The issue: ====== sigaltstack system call unable send proper return value. How to run : ======== -->cd /root/ltp-full-20130904/testcases/kernel/syscalls/sigaltstack --> ./sigaltstack02 ==> Getting the below error sigaltstack02 1 TPASS : stgaltstack() fails, Invalid Flag value, errno:22 sigaltstack02 2 TFAIL : sigaltstack() returned 0, expected -1, errno:12 =====>> FAIL <<<test_start>>> tag=sigaltstack02 stime=1386653793 cmdline="sigaltstack02" contacts="" analysis=exit <<<test_output>>> sigaltstack02 1 TPASS : stgaltstack() fails, Invalid Flag value, errno:22 sigaltstack02 2 TFAIL : sigaltstack() returned 0, expected -1, errno:12 <<<execution_status>>> initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=0 <<<test_end>>> sigaltstack() should fail and set errno to ENOMEM when the size of alternate stack area is less than MINSIGSTKSZ. But here its sigaltstack() is returning 0. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1267062/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp