diff -Naur valgrind-2.4.0-ppc-050407/cachegrind/tests/Makefile.am valgrind-2.4.0-ppc-050407-modified/cachegrind/tests/Makefile.am --- valgrind-2.4.0-ppc-050407/cachegrind/tests/Makefile.am 2004-10-19 19:07:31.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/cachegrind/tests/Makefile.am 2005-04-18 15:12:36.575337000 +0000 @@ -9,7 +9,7 @@ check_PROGRAMS = \ chdir dlclose myprint.so -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g +AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -fPIC # C ones chdir_SOURCES = chdir.c diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_creat.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_creat.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_creat.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_creat.stderr.exp2 2005-04-18 15:12:36.576336000 +0000 @@ -0,0 +1,20 @@ + + +FILE DESCRIPTORS: 4 open at exit. +Open file descriptor .: /tmp/file + + at 0x........: creat (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_dup.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_dup.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_dup.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_dup.stderr.exp2 2005-04-18 15:12:36.577336000 +0000 @@ -0,0 +1,24 @@ + + +FILE DESCRIPTORS: 5 open at exit. +Open file descriptor .: /dev/null + at 0x........: dup (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: /dev/null + at 0x........: open (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_dup2.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_dup2.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_dup2.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_dup2.stderr.exp2 2005-04-18 15:12:36.579336000 +0000 @@ -0,0 +1,29 @@ + + +FILE DESCRIPTORS: 6 open at exit. +Open file descriptor .: /dev/null + at 0x........: dup2 (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: /dev/null + at 0x........: dup2 (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: /dev/null + at 0x........: open (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_fcntl.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_fcntl.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_fcntl.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_fcntl.stderr.exp2 2005-04-18 15:12:36.580336000 +0000 @@ -0,0 +1,23 @@ + + +FILE DESCRIPTORS: 5 open at exit. +Open file descriptor .: /dev/null + at 0x........: fcntl (in /...libc...) + by 0x........: main (fdleak_fcntl.c:18) + +Open file descriptor .: /dev/null + at 0x........: open (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_open.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_open.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_open.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_open.stderr.exp2 2005-04-18 15:12:36.581336000 +0000 @@ -0,0 +1,19 @@ + + +FILE DESCRIPTORS: 4 open at exit. +Open file descriptor .: /dev/null + at 0x........: open (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_pipe.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_pipe.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_pipe.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_pipe.stderr.exp2 2005-04-18 15:12:36.583335000 +0000 @@ -0,0 +1,24 @@ + + +FILE DESCRIPTORS: 5 open at exit. +Open file descriptor .: + at 0x........: pipe (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: + at 0x........: pipe (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_socketpair.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_socketpair.stderr.exp2 --- valgrind-2.4.0-ppc-050407/corecheck/tests/fdleak_socketpair.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/fdleak_socketpair.stderr.exp2 2005-04-18 15:12:36.584335000 +0000 @@ -0,0 +1,26 @@ + + +FILE DESCRIPTORS: 5 open at exit. +Open AF_UNIX socket .: + at 0x........: socketpair (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open AF_UNIX socket .: + at 0x........: socketpair (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +Open file descriptor .: . + + +Open file descriptor .: . + + +Open file descriptor .: /dev/null + + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/corecheck/tests/sigkill.stderr.exp3 valgrind-2.4.0-ppc-050407-modified/corecheck/tests/sigkill.stderr.exp3 --- valgrind-2.4.0-ppc-050407/corecheck/tests/sigkill.stderr.exp3 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/corecheck/tests/sigkill.stderr.exp3 2005-04-18 15:12:36.587335000 +0000 @@ -0,0 +1,198 @@ + +setting signal 1: Success +getting signal 1: Success + +setting signal 2: Success +getting signal 2: Success + +setting signal 3: Success +getting signal 3: Success + +setting signal 4: Success +getting signal 4: Success + +setting signal 5: Success +getting signal 5: Success + +setting signal 6: Success +getting signal 6: Success + +setting signal 7: Success +getting signal 7: Success + +setting signal 8: Success +getting signal 8: Success + +setting signal 9: Warning: ignored attempt to set SIGKILL handler in sigaction(); + the SIGKILL signal is uncatchable +Invalid argument +getting signal 9: Success + +setting signal 10: Success +getting signal 10: Success + +setting signal 11: Success +getting signal 11: Success + +setting signal 12: Success +getting signal 12: Success + +setting signal 13: Success +getting signal 13: Success + +setting signal 14: Success +getting signal 14: Success + +setting signal 15: Success +getting signal 15: Success + +setting signal 16: Success +getting signal 16: Success + +setting signal 17: Success +getting signal 17: Success + +setting signal 18: Success +getting signal 18: Success + +setting signal 19: Warning: ignored attempt to set SIGSTOP handler in sigaction(); + the SIGSTOP signal is uncatchable +Invalid argument +getting signal 19: Success + +setting signal 20: Success +getting signal 20: Success + +setting signal 21: Success +getting signal 21: Success + +setting signal 22: Success +getting signal 22: Success + +setting signal 23: Success +getting signal 23: Success + +setting signal 24: Success +getting signal 24: Success + +setting signal 25: Success +getting signal 25: Success + +setting signal 26: Success +getting signal 26: Success + +setting signal 27: Success +getting signal 27: Success + +setting signal 28: Success +getting signal 28: Success + +setting signal 29: Success +getting signal 29: Success + +setting signal 30: Success +getting signal 30: Success + +setting signal 31: Success +getting signal 31: Success + +setting signal 32: Invalid argument +getting signal 32: Invalid argument + +setting signal 33: Success +getting signal 33: Success + +setting signal 34: Success +getting signal 34: Success + +setting signal 35: Success +getting signal 35: Success + +setting signal 36: Success +getting signal 36: Success + +setting signal 37: Success +getting signal 37: Success + +setting signal 38: Success +getting signal 38: Success + +setting signal 39: Success +getting signal 39: Success + +setting signal 40: Success +getting signal 40: Success + +setting signal 41: Success +getting signal 41: Success + +setting signal 42: Success +getting signal 42: Success + +setting signal 43: Success +getting signal 43: Success + +setting signal 44: Success +getting signal 44: Success + +setting signal 45: Success +getting signal 45: Success + +setting signal 46: Success +getting signal 46: Success + +setting signal 47: Success +getting signal 47: Success + +setting signal 48: Success +getting signal 48: Success + +setting signal 49: Success +getting signal 49: Success + +setting signal 50: Success +getting signal 50: Success + +setting signal 51: Success +getting signal 51: Success + +setting signal 52: Success +getting signal 52: Success + +setting signal 53: Success +getting signal 53: Success + +setting signal 54: Success +getting signal 54: Success + +setting signal 55: Success +getting signal 55: Success + +setting signal 56: Success +getting signal 56: Success + +setting signal 57: Success +getting signal 57: Success + +setting signal 58: Success +getting signal 58: Success + +setting signal 59: Success +getting signal 59: Success + +setting signal 60: Success +getting signal 60: Success + +setting signal 61: Success +getting signal 61: Success + +setting signal 62: Success +getting signal 62: Success + +setting signal 65: Warning: bad signal number 65 in sigaction() +Invalid argument +getting signal 65: Warning: bad signal number 65 in sigaction() +Invalid argument + + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/badjump.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/badjump.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/badjump.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/badjump.stderr.exp2 2005-04-18 15:12:36.588335000 +0000 @@ -0,0 +1,18 @@ + +Jump to the invalid address stated on the next line + at 0x........: ??? + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Process terminating with default action of signal 11 (SIGSEGV) + Access not within mapped region at address 0x........ + at 0x........: ??? + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 0 allocs, 0 frees, 0 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/badjump2.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/badjump2.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/badjump2.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/badjump2.stderr.exp2 2005-04-18 15:12:36.589335000 +0000 @@ -0,0 +1,6 @@ +Jump to the invalid address stated on the next line + at 0x........: ??? + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Signal caught, as expected diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/buflen_check.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/buflen_check.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/buflen_check.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/buflen_check.stderr.exp2 2005-04-18 15:12:36.591334000 +0000 @@ -0,0 +1,15 @@ +Syscall param socketcall.getsockname(name) points to unaddressable byte(s) + at 0x........: getsockname (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param socketcall.getsockname(namelen_in) points to unaddressable byte(s) + at 0x........: getsockname (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +getsockname(1) failed +getsockname(2) failed diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/execve.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/execve.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/execve.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/execve.stderr.exp2 2005-04-18 15:12:36.592334000 +0000 @@ -0,0 +1,20 @@ +Syscall param execve(filename) points to unaddressable byte(s) + at 0x........: execve (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param execve(argv[i]) points to unaddressable byte(s) + at 0x........: execve (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param execve(envp[i]) points to unaddressable byte(s) + at 0x........: execve (in /...libc...) + by 0x........: ... + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/execve2.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/execve2.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/execve2.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/execve2.stderr.exp2 2005-04-18 15:12:36.593334000 +0000 @@ -0,0 +1,6 @@ +Syscall param execve(filename) points to unaddressable byte(s) + at 0x........: execve (in /...libc...) + by 0x........: __libc_csu_init (elf-init.c:60) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is not stack'd, malloc'd or (recently) free'd diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/fwrite.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/fwrite.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/fwrite.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/fwrite.stderr.exp2 2005-04-18 15:12:36.595334000 +0000 @@ -0,0 +1,7 @@ +Syscall param write(buf) points to uninitialised byte(s) + at 0x........: write (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + Address 0x........ is 0 bytes inside a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (fwrite.c:6) diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/match-overrun.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/match-overrun.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/match-overrun.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/match-overrun.stderr.exp2 2005-04-18 15:12:36.596333000 +0000 @@ -0,0 +1,14 @@ + + +Process terminating with default action of signal 11 (SIGSEGV) + Access not within mapped region at address 0x........ + at 0x........: a1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 (match-overrun.c:6) + by 0x........: __libc_csu_init (elf-init.c:60) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +malloc/free: in use at exit: 0 bytes in 0 blocks. +malloc/free: 0 allocs, 0 frees, 0 bytes allocated. +For a detailed leak analysis, rerun with: --leak-check=yes +For counts of detected errors, rerun with: -v diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/scalar.c valgrind-2.4.0-ppc-050407-modified/memcheck/tests/scalar.c --- valgrind-2.4.0-ppc-050407/memcheck/tests/scalar.c 2005-03-23 10:22:03.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/scalar.c 2005-04-18 15:12:36.599333000 +0000 @@ -14,7 +14,6 @@ // PRE_MEM_READ/PRE_MEM_WRITE calls. (Note that Memcheck and Addrcheck will // always issue an error message immediately before these seg faults occur). -#include #include #include @@ -142,7 +141,9 @@ // __NR_ptrace 26 // XXX: memory pointed to be arg3 goes unchecked... otherwise would be 2m GO(__NR_ptrace, "4s 1m"); +#ifndef __PPC__ /* no PTRACE_GETREGS on ppc */ SY(__NR_ptrace, x0+PTRACE_GETREGS, x0, x0, x0); FAIL; +#endif // __NR_alarm 27 GO(__NR_alarm, "1s 0m"); @@ -254,6 +255,9 @@ // __NR_ioctl 54 #include +#ifdef __PPC__ + #include +#endif GO(__NR_ioctl, "3s 1m"); SY(__NR_ioctl, x0, x0+TCSETS, x0); FAIL; diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/scalar_exit_group.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/scalar_exit_group.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/scalar_exit_group.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/scalar_exit_group.stderr.exp2 2005-04-18 15:12:36.601333000 +0000 @@ -0,0 +1,7 @@ +----------------------------------------------------- +234: __NR_exit_group 1s 0m +----------------------------------------------------- +Syscall param exit_group(exit_code) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: generic_start_main (in /...libc...) + by 0x........: __libc_start_main (in /...libc...) diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/scalar_vfork.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/scalar_vfork.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/scalar_vfork.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/scalar_vfork.stderr.exp2 2005-04-18 15:12:36.602333000 +0000 @@ -0,0 +1,3 @@ +----------------------------------------------------- +189: __NR_vfork 0e +----------------------------------------------------- diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/weirdioctl.stderr.exp2 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/weirdioctl.stderr.exp2 --- valgrind-2.4.0-ppc-050407/memcheck/tests/weirdioctl.stderr.exp2 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/weirdioctl.stderr.exp2 2005-04-18 15:12:36.603332000 +0000 @@ -0,0 +1,4 @@ +Syscall param ioctl(generic) points to uninitialised byte(s) + at 0x........: ioctl (in /...libc...) + by 0x........: main (weirdioctl.c:23) + Address 0x........ is on thread 1's stack diff -Naur valgrind-2.4.0-ppc-050407/memcheck/tests/writev.stderr.exp3 valgrind-2.4.0-ppc-050407-modified/memcheck/tests/writev.stderr.exp3 --- valgrind-2.4.0-ppc-050407/memcheck/tests/writev.stderr.exp3 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/memcheck/tests/writev.stderr.exp3 2005-04-18 15:12:36.604332000 +0000 @@ -0,0 +1,18 @@ +Test file created. +Syscall param writev(vector[...]) points to unaddressable byte(s) + at 0x........: do_writev (in /...libc...) + by 0x........: main (writev.c:56) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Received EFAULT as expected + +Syscall param writev(vector) points to unaddressable byte(s) + at 0x........: do_writev (in /...libc...) + by 0x........: main (writev.c:68) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Received EINVAL as expected + +Syscall param readv(vector) points to unaddressable byte(s) + at 0x........: do_readv (in /...libc...) + by 0x........: main (writev.c:76) + Address 0x........ is not stack'd, malloc'd or (recently) free'd +Received EINVAL as expected diff -Naur valgrind-2.4.0-ppc-050407/none/tests/Makefile.am valgrind-2.4.0-ppc-050407-modified/none/tests/Makefile.am --- valgrind-2.4.0-ppc-050407/none/tests/Makefile.am 2005-03-11 23:32:23.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/Makefile.am 2005-04-18 15:12:36.606332000 +0000 @@ -28,7 +28,6 @@ floored.vgtest \ fork.stderr.exp fork.stdout.exp fork.vgtest \ fucomip.stderr.exp fucomip.vgtest \ - getseg.stdout.exp getseg.stderr.exp getseg.vgtest \ gxx304.stderr.exp gxx304.vgtest \ manythreads.stdout.exp manythreads.stderr.exp manythreads.vgtest \ map_unaligned.stderr.exp map_unaligned.vgtest \ @@ -53,7 +52,6 @@ sha1_test.stderr.exp sha1_test.vgtest \ shortpush.stderr.exp shortpush.vgtest \ shorts.stderr.exp shorts.vgtest \ - sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest \ sigstackgrowth.stdout.exp sigstackgrowth.stderr.exp sigstackgrowth.vgtest \ smc1.stderr.exp smc1.stdout.exp smc1.vgtest \ stackgrowth.stdout.exp stackgrowth.stderr.exp stackgrowth.vgtest \ @@ -68,11 +66,11 @@ check_PROGRAMS = \ args async-sigs bitfield1 blockfault closeall coolo_strlen \ discard exec-sigmask execve faultstatus fcntl_setown floored fork \ - fucomip getseg \ + fucomip \ manythreads \ munmap_exe map_unaligned map_unmap mq mremap rcrl readline1 \ resolv rlimit_nofile selfrun sem semlimit sha1_test \ - shortpush shorts sigcontext \ + shortpush shorts \ stackgrowth sigstackgrowth \ smc1 susphello pending pth_blockedsig pth_stackalign \ syscall-restart1 syscall-restart2 system \ @@ -100,7 +98,6 @@ floored_SOURCES = floored.c floored_LDADD = -lm fucomip_SOURCES = fucomip.c -getseg_SOURCES = getseg.c pending_SOURCES = pending.c map_unaligned_SOURCES = map_unaligned.c map_unmap_SOURCES = map_unmap.c @@ -120,7 +117,6 @@ sha1_test_SOURCES = sha1_test.c shortpush_SOURCES = shortpush.c shorts_SOURCES = shorts.c -sigcontext_SOURCES = sigcontext.c sigstackgrowth_SOURCES = sigstackgrowth.c susphello_SOURCES = susphello.c susphello_LDADD = -lpthread diff -Naur valgrind-2.4.0-ppc-050407/none/tests/exec-sigmask.stdout.exp3 valgrind-2.4.0-ppc-050407-modified/none/tests/exec-sigmask.stdout.exp3 --- valgrind-2.4.0-ppc-050407/none/tests/exec-sigmask.stdout.exp3 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/exec-sigmask.stdout.exp3 2005-04-18 15:26:26.636221000 +0000 @@ -0,0 +1 @@ +full: signal 32 missing from mask diff -Naur valgrind-2.4.0-ppc-050407/none/tests/getseg.c valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.c --- valgrind-2.4.0-ppc-050407/none/tests/getseg.c 2005-01-05 00:54:35.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -/* test segment register getting */ -#include - -int main() -{ - unsigned short gsw; - unsigned long gsl; - - asm ("mov $~0, %0; movl %%gs, %0" : "=r" (gsl)); - asm ("mov $~0, %0; movw %%gs, %0" : "=r" (gsw)); - - printf("%s\n", gsl == gsw ? "PASS" : "FAIL"); - - return 0; -} diff -Naur valgrind-2.4.0-ppc-050407/none/tests/getseg.stderr.exp valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.stderr.exp --- valgrind-2.4.0-ppc-050407/none/tests/getseg.stderr.exp 2005-01-05 00:54:35.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.stderr.exp 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ - - diff -Naur valgrind-2.4.0-ppc-050407/none/tests/getseg.stdout.exp valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.stdout.exp --- valgrind-2.4.0-ppc-050407/none/tests/getseg.stdout.exp 2005-01-05 00:54:35.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.stdout.exp 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -PASS diff -Naur valgrind-2.4.0-ppc-050407/none/tests/getseg.vgtest valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.vgtest --- valgrind-2.4.0-ppc-050407/none/tests/getseg.vgtest 2005-01-05 00:54:35.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/getseg.vgtest 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -prog: getseg diff -Naur valgrind-2.4.0-ppc-050407/none/tests/sigcontext.c valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.c --- valgrind-2.4.0-ppc-050407/none/tests/sigcontext.c 2005-01-15 02:05:03.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.c 1970-01-01 00:00:00.000000000 +0000 @@ -1,92 +0,0 @@ -#define _GNU_SOURCE - -#include -#include -#include -#include -#include - -#define VAL1 0x11223344 -#define VAL2 0x44332211 - -static void handler1(int sig, siginfo_t *si, ucontext_t *uc) -{ - /* Since the handler will be called as kill leaves the kernel, - this is replacing the kill syscall's return value. */ - if (uc->uc_mcontext.gregs[REG_EAX] != 0) - printf("FAILED: handler2 expected eax == 0, not %d\n", uc->uc_mcontext.gregs[REG_EAX]); - uc->uc_mcontext.gregs[REG_EAX] = VAL1; - - asm volatile ( - "movl $0, %%edx\n" - "movl $0, %%esi\n" - "movl $0, %%edi\n" - : : : "edx", "esi", "edi"); -} - -static void handler2(int sig, struct sigcontext sc) -{ - /* Since the handler will be called as kill leaves the kernel, - this is replacing the kill syscall's return value. */ - if (sc.eax != 0) - printf("FAILED: handler2 expected eax == 0, not %d\n", sc.eax); - - sc.eax = VAL2; - - asm volatile ( - "movl $0, %%edx\n" - "movl $0, %%esi\n" - "movl $0, %%edi\n" - : : : "edx", "esi", "edi"); -} - -int main() -{ - struct sigaction sa; - int ret; - int v1, v2, v3, v4; - - sa.sa_handler = handler1; - sa.sa_flags = SA_SIGINFO; - sigfillset(&sa.sa_mask); - - sigaction(SIGUSR1, &sa, NULL); - - sa.sa_handler = handler2; - sa.sa_flags = 0; - sigfillset(&sa.sa_mask); - - sigaction(SIGUSR2, &sa, NULL); - - asm volatile ( - //"movl $0x11111111, %%ebp\n" - "movl $0x22222222, %%edx\n" - "movl $0x33333333, %%esi\n" - "movl $0x44444444, %%edi\n" - "int $0x80" - : "=a" (ret), "=d" (v2), "=S" (v3), "=D" (v4) - : "0" (__NR_kill), "b" (getpid()), "c" (SIGUSR1)); - printf("v2=%x v3=%x v4=%x\n", v2, v3, v4); - - if (ret == VAL1) - printf("PASS %x\n", ret); - else - printf("FAIL ret=%x not %x\n", ret, VAL1); - - asm volatile ( - //"movl $0x11111111, %%ebp\n" - "movl $0x22222222, %%edx\n" - "movl $0x33333333, %%esi\n" - "movl $0x44444444, %%edi\n" - "int $0x80" - : "=a" (ret), "=d" (v2), "=S" (v3), "=D" (v4) - : "0" (__NR_kill), "b" (getpid()), "c" (SIGUSR2)); - printf("v2=%x v3=%x v4=%x\n", v2, v3, v4); - - if (ret == VAL2) - printf("PASS %x\n", ret); - else - printf("FAIL ret=%x not %x\n", ret, VAL2); - - return 0; -} diff -Naur valgrind-2.4.0-ppc-050407/none/tests/sigcontext.stderr.exp valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.stderr.exp --- valgrind-2.4.0-ppc-050407/none/tests/sigcontext.stderr.exp 2005-01-15 02:05:03.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.stderr.exp 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ - - diff -Naur valgrind-2.4.0-ppc-050407/none/tests/sigcontext.stdout.exp valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.stdout.exp --- valgrind-2.4.0-ppc-050407/none/tests/sigcontext.stdout.exp 2005-01-15 02:05:03.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.stdout.exp 1970-01-01 00:00:00.000000000 +0000 @@ -1,4 +0,0 @@ -v2=22222222 v3=33333333 v4=44444444 -PASS 11223344 -v2=22222222 v3=33333333 v4=44444444 -PASS 44332211 diff -Naur valgrind-2.4.0-ppc-050407/none/tests/sigcontext.vgtest valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.vgtest --- valgrind-2.4.0-ppc-050407/none/tests/sigcontext.vgtest 2005-01-15 02:05:03.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/sigcontext.vgtest 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -prog: sigcontext diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/Makefile.am valgrind-2.4.0-ppc-050407-modified/none/tests/x86/Makefile.am --- valgrind-2.4.0-ppc-050407/none/tests/x86/Makefile.am 2005-01-16 11:15:46.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/Makefile.am 2005-04-18 15:12:36.615331000 +0000 @@ -11,18 +11,21 @@ dastest.stderr.exp dastest.stdout.exp dastest.vgtest \ fpu_lazy_eflags.stderr.exp fpu_lazy_eflags.stdout.exp \ fpu_lazy_eflags.vgtest \ + getseg.stdout.exp getseg.stderr.exp getseg.vgtest \ int.stderr.exp int.stdout.exp int.vgtest \ $(addsuffix .stderr.exp,$(INSN_TESTS)) \ $(addsuffix .stdout.exp,$(INSN_TESTS)) \ $(addsuffix .vgtest,$(INSN_TESTS)) \ pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \ rcl_assert.stderr.exp rcl_assert.vgtest \ - seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest + seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \ + sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest check_PROGRAMS = \ badseg bt_everything bt_literal cpuid dastest fpu_lazy_eflags \ + getseg \ $(INSN_TESTS) \ - int pushpopseg rcl_assert seg_override + int pushpopseg rcl_assert seg_override sigcontext AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include AM_CXXFLAGS = $(AM_CFLAGS) @@ -34,6 +37,7 @@ cpuid_SOURCES = cpuid_c.c cpuid_s.s dastest_SOURCES = dastest_c.c dastest_s.s fpu_lazy_eflags_SOURCES = fpu_lazy_eflags.c +getseg_SOURCES = getseg.c insn_basic_SOURCES = insn_basic.def insn_basic_LDADD = -lm insn_fpu_SOURCES = insn_fpu.def @@ -52,6 +56,7 @@ pushpopseg_SOURCES = pushpopseg.c rcl_assert_SOURCES = rcl_assert.S seg_override_SOURCES = seg_override.c +sigcontext_SOURCES = sigcontext.c .def.c: $(srcdir)/gen_insn_test.pl $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.c valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.c --- valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.c 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.c 2005-04-18 15:12:36.617330000 +0000 @@ -0,0 +1,15 @@ +/* test segment register getting */ +#include + +int main() +{ + unsigned short gsw; + unsigned long gsl; + + asm ("mov $~0, %0; movl %%gs, %0" : "=r" (gsl)); + asm ("mov $~0, %0; movw %%gs, %0" : "=r" (gsw)); + + printf("%s\n", gsl == gsw ? "PASS" : "FAIL"); + + return 0; +} diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.stderr.exp valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.stderr.exp --- valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.stderr.exp 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.stderr.exp 2005-04-18 15:12:36.618330000 +0000 @@ -0,0 +1,2 @@ + + diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.stdout.exp valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.stdout.exp --- valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.stdout.exp 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.stdout.exp 2005-04-18 15:12:36.619330000 +0000 @@ -0,0 +1 @@ +PASS diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.vgtest valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.vgtest --- valgrind-2.4.0-ppc-050407/none/tests/x86/getseg.vgtest 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/getseg.vgtest 2005-04-18 15:12:36.620330000 +0000 @@ -0,0 +1 @@ +prog: getseg diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.c valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.c --- valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.c 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.c 2005-04-18 15:12:36.622329000 +0000 @@ -0,0 +1,92 @@ +#define _GNU_SOURCE + +#include +#include +#include +#include +#include + +#define VAL1 0x11223344 +#define VAL2 0x44332211 + +static void handler1(int sig, siginfo_t *si, ucontext_t *uc) +{ + /* Since the handler will be called as kill leaves the kernel, + this is replacing the kill syscall's return value. */ + if (uc->uc_mcontext.gregs[REG_EAX] != 0) + printf("FAILED: handler2 expected eax == 0, not %d\n", uc->uc_mcontext.gregs[REG_EAX]); + uc->uc_mcontext.gregs[REG_EAX] = VAL1; + + asm volatile ( + "movl $0, %%edx\n" + "movl $0, %%esi\n" + "movl $0, %%edi\n" + : : : "edx", "esi", "edi"); +} + +static void handler2(int sig, struct sigcontext sc) +{ + /* Since the handler will be called as kill leaves the kernel, + this is replacing the kill syscall's return value. */ + if (sc.eax != 0) + printf("FAILED: handler2 expected eax == 0, not %d\n", sc.eax); + + sc.eax = VAL2; + + asm volatile ( + "movl $0, %%edx\n" + "movl $0, %%esi\n" + "movl $0, %%edi\n" + : : : "edx", "esi", "edi"); +} + +int main() +{ + struct sigaction sa; + int ret; + int v1, v2, v3, v4; + + sa.sa_handler = handler1; + sa.sa_flags = SA_SIGINFO; + sigfillset(&sa.sa_mask); + + sigaction(SIGUSR1, &sa, NULL); + + sa.sa_handler = handler2; + sa.sa_flags = 0; + sigfillset(&sa.sa_mask); + + sigaction(SIGUSR2, &sa, NULL); + + asm volatile ( + //"movl $0x11111111, %%ebp\n" + "movl $0x22222222, %%edx\n" + "movl $0x33333333, %%esi\n" + "movl $0x44444444, %%edi\n" + "int $0x80" + : "=a" (ret), "=d" (v2), "=S" (v3), "=D" (v4) + : "0" (__NR_kill), "b" (getpid()), "c" (SIGUSR1)); + printf("v2=%x v3=%x v4=%x\n", v2, v3, v4); + + if (ret == VAL1) + printf("PASS %x\n", ret); + else + printf("FAIL ret=%x not %x\n", ret, VAL1); + + asm volatile ( + //"movl $0x11111111, %%ebp\n" + "movl $0x22222222, %%edx\n" + "movl $0x33333333, %%esi\n" + "movl $0x44444444, %%edi\n" + "int $0x80" + : "=a" (ret), "=d" (v2), "=S" (v3), "=D" (v4) + : "0" (__NR_kill), "b" (getpid()), "c" (SIGUSR2)); + printf("v2=%x v3=%x v4=%x\n", v2, v3, v4); + + if (ret == VAL2) + printf("PASS %x\n", ret); + else + printf("FAIL ret=%x not %x\n", ret, VAL2); + + return 0; +} diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.stderr.exp valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.stderr.exp --- valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.stderr.exp 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.stderr.exp 2005-04-18 15:12:36.623329000 +0000 @@ -0,0 +1,2 @@ + + diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.stdout.exp valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.stdout.exp --- valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.stdout.exp 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.stdout.exp 2005-04-18 15:12:36.624329000 +0000 @@ -0,0 +1,4 @@ +v2=22222222 v3=33333333 v4=44444444 +PASS 11223344 +v2=22222222 v3=33333333 v4=44444444 +PASS 44332211 diff -Naur valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.vgtest valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.vgtest --- valgrind-2.4.0-ppc-050407/none/tests/x86/sigcontext.vgtest 1970-01-01 00:00:00.000000000 +0000 +++ valgrind-2.4.0-ppc-050407-modified/none/tests/x86/sigcontext.vgtest 2005-04-18 15:12:36.625329000 +0000 @@ -0,0 +1 @@ +prog: sigcontext