You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(17) |
2
(11) |
3
(6) |
4
(6) |
|
5
(10) |
6
(5) |
7
(3) |
8
(7) |
9
(4) |
10
(4) |
11
(3) |
|
12
(3) |
13
(17) |
14
(18) |
15
(32) |
16
(22) |
17
(18) |
18
(10) |
|
19
(4) |
20
(3) |
21
(8) |
22
(15) |
23
(32) |
24
(28) |
25
(18) |
|
26
(20) |
27
(16) |
28
(28) |
29
(28) |
30
(27) |
|
|
|
From: <sv...@va...> - 2009-04-15 23:58:30
|
Author: njn Date: 2009-04-16 00:58:26 +0100 (Thu, 16 Apr 2009) New Revision: 9554 Log: Include the CPPFLAGS in the CCASFLAGS. This fixes a problem with pre-1.10 versions of automake. Modified: trunk/Makefile.flags.am Modified: trunk/Makefile.flags.am =================================================================== --- trunk/Makefile.flags.am 2009-04-15 23:10:04 UTC (rev 9553) +++ trunk/Makefile.flags.am 2009-04-15 23:58:26 UTC (rev 9554) @@ -13,9 +13,20 @@ AM_CFLAGS_PIC = -O -g -fpic -fno-omit-frame-pointer -fno-strict-aliasing # Flags for specific targets. +# # Nb: the AM_CPPFLAGS_* values are suitable for building tools and auxprogs. # For building the core, coregrind/Makefile.am files add some extra things. +# +# Also: in newer versions of automake (1.10 onwards?) asm files ending with +# '.S' are considered "pre-processed" (as opposed to those ending in '.s') +# and so the CPPFLAGS are passed to the assembler. But this is not true for +# older automakes (e.g. 1.8.5, 1.9.6), sigh. So we include +# AM_CPPFLAGS_<PLATFORM> in each AM_CCASFLAGS_<PLATFORM> variable. This +# means some of the flags are duplicated on systems with newer versions of +# automake, but this does not really matter and seems hard to avoid. + AM_CPPFLAGS_COMMON = \ + -I$(top_srcdir) \ -I$(top_srcdir)/include \ -I@VEX_DIR@/pub @@ -26,7 +37,7 @@ -DVGP_x86_linux=1 AM_CFLAGS_X86_LINUX = @FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ \ $(AM_CFLAGS_BASE) -AM_CCASFLAGS_X86_LINUX = @FLAG_M32@ -g +AM_CCASFLAGS_X86_LINUX = $(AM_CPPFLAGS_X86_LINUX) @FLAG_M32@ -g AM_FLAG_M3264_AMD64_LINUX = @FLAG_M64@ AM_CPPFLAGS_AMD64_LINUX = $(AM_CPPFLAGS_COMMON) \ @@ -35,7 +46,7 @@ -DVGP_amd64_linux=1 AM_CFLAGS_AMD64_LINUX = @FLAG_M64@ -fomit-frame-pointer \ @PREFERRED_STACK_BOUNDARY@ $(AM_CFLAGS_BASE) -AM_CCASFLAGS_AMD64_LINUX = @FLAG_M64@ -g +AM_CCASFLAGS_AMD64_LINUX = $(AM_CPPFLAGS_AMD64_LINUX) @FLAG_M64@ -g AM_FLAG_M3264_PPC32_LINUX = @FLAG_M32@ AM_CPPFLAGS_PPC32_LINUX = $(AM_CPPFLAGS_COMMON) \ @@ -43,7 +54,7 @@ -DVGO_linux=1 \ -DVGP_ppc32_linux=1 AM_CFLAGS_PPC32_LINUX = @FLAG_M32@ $(AM_CFLAGS_BASE) -AM_CCASFLAGS_PPC32_LINUX = @FLAG_M32@ -g +AM_CCASFLAGS_PPC32_LINUX = $(AM_CPPFLAGS_PPC32_LINUX) @FLAG_M32@ -g AM_FLAG_M3264_PPC64_LINUX = @FLAG_M64@ AM_CPPFLAGS_PPC64_LINUX = $(AM_CPPFLAGS_COMMON) \ @@ -51,7 +62,7 @@ -DVGO_linux=1 \ -DVGP_ppc64_linux=1 AM_CFLAGS_PPC64_LINUX = @FLAG_M64@ $(AM_CFLAGS_BASE) -AM_CCASFLAGS_PPC64_LINUX = @FLAG_M64@ -g +AM_CCASFLAGS_PPC64_LINUX = $(AM_CPPFLAGS_PPC64_LINUX) @FLAG_M64@ -g AM_FLAG_M3264_PPC32_AIX5 = @FLAG_MAIX32@ AM_CPPFLAGS_PPC32_AIX5 = $(AM_CPPFLAGS_COMMON) \ @@ -59,7 +70,8 @@ -DVGO_aix5=1 \ -DVGP_ppc32_aix5=1 AM_CFLAGS_PPC32_AIX5 = @FLAG_MAIX32@ -mcpu=powerpc $(AM_CFLAGS_BASE) -AM_CCASFLAGS_PPC32_AIX5 = @FLAG_MAIX32@ -mcpu=powerpc -g +AM_CCASFLAGS_PPC32_AIX5 = $(AM_CPPFLAGS_PPC32_AIX5) \ + @FLAG_MAIX32@ -mcpu=powerpc -g AM_FLAG_M3264_PPC64_AIX5 = @FLAG_MAIX64@ AM_CPPFLAGS_PPC64_AIX5 = $(AM_CPPFLAGS_COMMON) \ @@ -67,7 +79,8 @@ -DVGO_aix5=1 \ -DVGP_ppc64_aix5=1 AM_CFLAGS_PPC64_AIX5 = @FLAG_MAIX64@ -mcpu=powerpc64 $(AM_CFLAGS_BASE) -AM_CCASFLAGS_PPC64_AIX5 = @FLAG_MAIX64@ -mcpu=powerpc64 -g +AM_CCASFLAGS_PPC64_AIX5 = $(AM_CPPFLAGS_PPC64_AIX5) \ + @FLAG_MAIX64@ -mcpu=powerpc64 -g # Flags for the primary target. These must be used to build the # regtests and performance tests. In fact, these must be used to |
|
From: Nicholas N. <n.n...@gm...> - 2009-04-15 23:22:11
|
On Mon, Mar 30, 2009 at 1:17 AM, Filipe Cabecinhas <fi...@gm...> wrote: > > Is there a list of tasks to be done? I could try to help in my spare time, > but would have to know where to start. I've been mostly working on getting the number of regtest failures down. Attached is the file I've been using to track them, it has explanations for most of them why they fail. Patches to fix any of the failing tests would be welcome, although beware that I'm working on them as well, and not in any particular order (but I'm mostly focusing on the Memcheck and Nulgrind ones) so there's potential for duplicating work. Better might be to look at comments in the branch code indicating things that need improvement. Search for comments containing "DDD" and "GrP". Another thing you could do is diff the DARWIN branch against the trunk, go through the diff and see if there's anything that looks like it could do with some improvement. The aim is to get the diff between the branch and the trunk to contain only clean, Darwin-only code, so that when the time comes to merge it will be as simple as possible, just dropping in all the extra Darwin pieces, if you see what I mean. Or you could run some big programs and fix any problems you find, like you did with your iTunes-enabling patch (which I'll hopefully get to shortly!) Thanks for asking, I hope this info is useful. Nick |
|
From: <sv...@va...> - 2009-04-15 23:10:15
|
Author: njn
Date: 2009-04-16 00:10:04 +0100 (Thu, 16 Apr 2009)
New Revision: 9553
Log:
Merge r9550..r9552 (move seg_override and sigcontext) from the DARWIN branch.
Added:
trunk/none/tests/x86-linux/
trunk/none/tests/x86-linux/filter_stderr
Removed:
trunk/none/tests/x86/seg_override.c
trunk/none/tests/x86/seg_override.stderr.exp
trunk/none/tests/x86/seg_override.stdout.exp
trunk/none/tests/x86/seg_override.vgtest
trunk/none/tests/x86/sigcontext.c
trunk/none/tests/x86/sigcontext.stderr.exp
trunk/none/tests/x86/sigcontext.stdout.exp
trunk/none/tests/x86/sigcontext.vgtest
Modified:
trunk/configure.in
trunk/none/tests/Makefile.am
trunk/none/tests/x86/Makefile.am
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/configure.in 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1751,6 +1751,7 @@
none/tests/ppc64/Makefile
none/tests/x86/Makefile
none/tests/linux/Makefile
+ none/tests/x86-linux/Makefile
none/docs/Makefile
exp-omega/Makefile
exp-omega/tests/Makefile
Modified: trunk/none/tests/Makefile.am
===================================================================
--- trunk/none/tests/Makefile.am 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/Makefile.am 2009-04-15 23:10:04 UTC (rev 9553)
@@ -22,6 +22,11 @@
SUBDIRS += linux
endif
+# Platform-specific tests
+if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
+SUBDIRS += x86-linux
+endif
+
DIST_SUBDIRS = x86 amd64 ppc32 ppc64 linux .
noinst_SCRIPTS = \
Modified: trunk/none/tests/x86/Makefile.am
===================================================================
--- trunk/none/tests/x86/Makefile.am 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/Makefile.am 2009-04-15 23:10:04 UTC (rev 9553)
@@ -50,8 +50,6 @@
movx.stderr.exp movx.stdout.exp movx.vgtest \
pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \
sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \
- seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \
- sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest \
smc1.stderr.exp smc1.stdout.exp smc1.vgtest \
ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \
ssse3_misaligned.vgtest \
@@ -85,8 +83,6 @@
movx \
pushpopseg \
sbbmisc \
- seg_override \
- sigcontext \
smc1 \
yield
if BUILD_SSSE3_TESTS
Deleted: trunk/none/tests/x86/seg_override.c
===================================================================
--- trunk/none/tests/x86/seg_override.c 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/seg_override.c 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1,138 +0,0 @@
-
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-
-/* Stuff from Wine. */
-
-typedef unsigned short WORD; /* I guess */
-typedef unsigned char BYTE;
-
-typedef struct _LDT_ENTRY {
- WORD LimitLow;
- WORD BaseLow;
- union {
- struct {
- BYTE BaseMid;
- BYTE Flags1;
- /*Declare as bytes to avoid alignment problems */
- BYTE Flags2;
- BYTE BaseHi;
- } Bytes;
- struct {
- unsigned BaseMid : 8;
- unsigned Type : 5;
- unsigned Dpl : 2;
- unsigned Pres : 1;
- unsigned LimitHi : 4;
- unsigned Sys : 1;
- unsigned Reserved_0 : 1;
- unsigned Default_Big : 1;
- unsigned Granularity : 1;
- unsigned BaseHi : 8;
- } Bits;
- } HighWord;
-} LDT_ENTRY;
-
-inline static void *wine_ldt_get_base( const LDT_ENTRY *ent )
-{
- return (void *)(ent->BaseLow |
- (unsigned long)ent->HighWord.Bits.BaseMid << 16 |
- (unsigned long)ent->HighWord.Bits.BaseHi << 24);
-}
-inline static unsigned int wine_ldt_get_limit( const LDT_ENTRY *ent )
-{
- unsigned int limit = ent->LimitLow | (ent->HighWord.Bits.LimitHi << 16);
- if (ent->HighWord.Bits.Granularity) limit = (limit << 12) | 0xfff;
- return limit;
-}
-
-
-/* our copy of the ldt */
-LDT_ENTRY ldt_copy[8192];
-
-/* System call to set LDT entry. */
-//extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
-extern int __modify_ldt (int, void *, size_t);
-
-void print_ldt ( void )
-{
- int res;
- res = __modify_ldt( 0, ldt_copy, 8192*sizeof(LDT_ENTRY) );
- printf("got %d bytes\n", res );
- perror("error is");
-}
-
-/* Structure passed on `modify_ldt' call. */
-#define MODIFY_LDT_CONTENTS_DATA 0
-#define MODIFY_LDT_CONTENTS_STACK 1
-#define MODIFY_LDT_CONTENTS_CODE 2
-
-struct modify_ldt_ldt_s
-{
- unsigned int entry_number;
- unsigned long int base_addr;
- unsigned int limit;
- unsigned int seg_32bit:1;
- unsigned int contents:2;
- unsigned int read_exec_only:1;
- unsigned int limit_in_pages:1;
- unsigned int seg_not_present:1;
- unsigned int useable:1;
- unsigned int empty:25;
-};
-
-/* System call to set LDT entry. */
-//extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
-
-void set_ldt1 ( void* base )
-{
- int stat;
- struct modify_ldt_ldt_s ldt_entry;
-
- /* stop valgrind yelping about initialised holes in this struct. */
- memset(&ldt_entry, 0, sizeof(ldt_entry));
-
- ldt_entry.entry_number = 1;
- ldt_entry.base_addr = (unsigned)base; //0x12345678;
- ldt_entry.limit = 10;
- ldt_entry.seg_32bit = 1;
- ldt_entry.contents = MODIFY_LDT_CONTENTS_DATA;
- ldt_entry.read_exec_only = 0;
- ldt_entry.limit_in_pages = 0;
- ldt_entry.seg_not_present = 0;
- stat = __modify_ldt (1, &ldt_entry, sizeof (ldt_entry));
- printf("stat = %d\n", stat);
-}
-
-
-void ldt_seg_write ( int ldt_entno, unsigned offset, unsigned val )
-{
- asm volatile("movl %2, %%eax\n\t"
- "movl %1, %%edx\n\t"
- "movl %0, %%fs\n\t"
- "movl %%eax, %%fs:(%%edx)\t"
- :
- : "r" (7 /* LDT(TI), least privilege */ + (ldt_entno << 3)),
- "r" (offset), "r" (val)
- : "eax", "edx", "cc" );
-}
-
-int main ( void )
-{
- int i;
- int arr[9];
-
- for (i = 0; i < 9; i++) arr[i] = 11*i;
-
- set_ldt1( &arr[4] );
- print_ldt();
-
- ldt_seg_write(1 /* ldt entry # */, 4 /* offset */, 4444);
-
- for (i = 0; i < 9; i++) printf("%d ", arr[i]);
- printf("\n");
-
- return 0;
-}
-
Deleted: trunk/none/tests/x86/seg_override.stderr.exp
===================================================================
--- trunk/none/tests/x86/seg_override.stderr.exp 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/seg_override.stderr.exp 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1,3 +0,0 @@
-
-error is: Success
-
Deleted: trunk/none/tests/x86/seg_override.stdout.exp
===================================================================
--- trunk/none/tests/x86/seg_override.stdout.exp 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/seg_override.stdout.exp 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1,3 +0,0 @@
-stat = 0
-got 65536 bytes
-0 11 22 33 44 4444 66 77 88
Deleted: trunk/none/tests/x86/seg_override.vgtest
===================================================================
--- trunk/none/tests/x86/seg_override.vgtest 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/seg_override.vgtest 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1 +0,0 @@
-prog: seg_override
Deleted: trunk/none/tests/x86/sigcontext.c
===================================================================
--- trunk/none/tests/x86/sigcontext.c 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/sigcontext.c 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1,92 +0,0 @@
-#define _GNU_SOURCE
-
-#include <stdio.h>
-#include <signal.h>
-#include <unistd.h>
-#include <sys/ucontext.h>
-#include <asm/unistd.h>
-
-#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 %p\n", (void*)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 v2, v3, v4;
-
- sa.sa_handler = (void*)handler1;
- sa.sa_flags = SA_SIGINFO;
- sigfillset(&sa.sa_mask);
-
- sigaction(SIGUSR1, &sa, NULL);
-
- sa.sa_handler = (void*)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;
-}
Deleted: trunk/none/tests/x86/sigcontext.stderr.exp
===================================================================
--- trunk/none/tests/x86/sigcontext.stderr.exp 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/sigcontext.stderr.exp 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1,2 +0,0 @@
-
-
Deleted: trunk/none/tests/x86/sigcontext.stdout.exp
===================================================================
--- trunk/none/tests/x86/sigcontext.stdout.exp 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/sigcontext.stdout.exp 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1,4 +0,0 @@
-v2=22222222 v3=33333333 v4=44444444
-PASS 11223344
-v2=22222222 v3=33333333 v4=44444444
-PASS 44332211
Deleted: trunk/none/tests/x86/sigcontext.vgtest
===================================================================
--- trunk/none/tests/x86/sigcontext.vgtest 2009-04-15 07:36:54 UTC (rev 9552)
+++ trunk/none/tests/x86/sigcontext.vgtest 2009-04-15 23:10:04 UTC (rev 9553)
@@ -1 +0,0 @@
-prog: sigcontext
Copied: trunk/none/tests/x86-linux (from rev 9550, branches/DARWIN/none/tests/x86-linux)
Copied: trunk/none/tests/x86-linux/filter_stderr (from rev 9552, branches/DARWIN/none/tests/x86-linux/filter_stderr)
===================================================================
--- trunk/none/tests/x86-linux/filter_stderr (rev 0)
+++ trunk/none/tests/x86-linux/filter_stderr 2009-04-15 23:10:04 UTC (rev 9553)
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+../filter_stderr
+
|
|
From: <sv...@va...> - 2009-04-15 23:06:03
|
Author: njn Date: 2009-04-16 00:05:51 +0100 (Thu, 16 Apr 2009) New Revision: 383 Log: Tweak an entry. Modified: trunk/gallery/users.html Modified: trunk/gallery/users.html =================================================================== --- trunk/gallery/users.html 2009-04-15 23:03:17 UTC (rev 382) +++ trunk/gallery/users.html 2009-04-15 23:05:51 UTC (rev 383) @@ -805,10 +805,9 @@ <ul> <li><a href="http://www.cfmu.eurocontrol.int/">Eurocontrol/CFMU's</a> - <a href="http://www.cfmu.eurocontrol.be/cfmu/public/standard_page/developments_etfms_index.html">ETFMS</a> and - <a href="http://www.cfmu.eurocontrol.be/cfmu/public/standard_page/ifpuv_index.html">IFPS</a>: - IFPS: A flight plan validation and distribution system for all flights - flying in/over Europe. ETFMS: Air traffic flow management for Europe. + <a href="http://www.cfmu.eurocontrol.be/cfmu/public/standard_page/developments_etfms_index.html">ETFMS:</a> air traffic flow management for Europe; and + <a href="http://www.cfmu.eurocontrol.be/cfmu/public/standard_page/ifpuv_index.html">IFPS</a>: a flight plan validation and distribution system for all + flights flying in/over Europe. </li> <li><a href="http://www.lysator.liu.se/~alla/dia/">Dia:</a> a |
|
From: <sv...@va...> - 2009-04-15 23:03:30
|
Author: njn Date: 2009-04-16 00:03:17 +0100 (Thu, 16 Apr 2009) New Revision: 382 Log: Added ClamAV. Modified: trunk/gallery/users.html Modified: trunk/gallery/users.html =================================================================== --- trunk/gallery/users.html 2009-03-10 22:13:31 UTC (rev 381) +++ trunk/gallery/users.html 2009-04-15 23:03:17 UTC (rev 382) @@ -858,4 +858,8 @@ <li><a href="http://developer.berlios.de/project/showfiles.php?group_id=910">xfce4-xmms2-client:</a> a GUI client for xmms2.</li> + <li><a href="http://www.clamav.net">ClamAV:</a> + an open source (GPL) anti-virus toolkit for UNIX, designed especially + for e-mail scanning on mail gateways.</li> + </ul> |
|
From: Nicholas N. <n.n...@gm...> - 2009-04-15 17:42:26
|
Nightly build on ocean32 ( Ubuntu 8.10, Intel x86-64 (32-bit only) ) started at 2009-04-16 03:00:01 EST
Results unchanged from 24 hours ago
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 446 tests, 7 stderr failures, 2 stdout failures, 0 post failures ==
memcheck/tests/linux/stack_switch (stderr)
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
none/tests/linux/mremap2 (stdout)
none/tests/shell (stdout)
none/tests/shell (stderr)
none/tests/shell_valid1 (stderr)
none/tests/shell_valid2 (stderr)
none/tests/shell_valid3 (stderr)
=================================================
./valgrind/memcheck/tests/linux/stack_switch.stderr.diff
=================================================
--- stack_switch.stderr.exp 2009-04-16 03:23:50.000000000 +1000
+++ stack_switch.stderr.out 2009-04-16 03:40:15.000000000 +1000
@@ -0,0 +1,2 @@
+Syscall param clone(child_tidptr) contains uninitialised byte(s)
+ ...
=================================================
./valgrind/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-04-16 03:23:58.000000000 +1000
+++ origin1-yes.stderr.out 2009-04-16 03:40:32.000000000 +1000
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:93)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: ??? (in /lib32/ld-2.8.90.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:90)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-04-16 03:23:58.000000000 +1000
+++ origin5-bz2.stderr.out 2009-04-16 03:40:36.000000000 +1000
@@ -11,7 +11,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -19,7 +19,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
@@ -27,7 +27,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2820)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -38,7 +38,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2823)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -49,7 +49,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2854)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -60,7 +60,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2858)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -71,7 +71,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2963)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -82,7 +82,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: mainSort (origin5-bz2.c:2964)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -93,7 +93,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2269)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
@@ -104,7 +104,7 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: fallbackSort (origin5-bz2.c:2275)
by 0x........: BZ2_blockSort (origin5-bz2.c:3116)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-04-16 03:23:58.000000000 +1000
+++ origin5-bz2.stderr.out 2009-04-16 03:40:36.000000000 +1000
@@ -28,7 +28,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -38,7 +39,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -48,7 +50,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2855)
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -58,7 +61,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2859)
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -68,7 +72,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
@@ -78,7 +83,8 @@
at 0x........: main (origin5-bz2.c:6479)
Use of uninitialised value of size 4
- at 0x........: BZ2_blockSort (origin5-bz2.c:2964)
+ at 0x........: mainSort (origin5-bz2.c:2964)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
=================================================
./valgrind/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-04-16 03:23:58.000000000 +1000
+++ origin5-bz2.stderr.out 2009-04-16 03:40:36.000000000 +1000
@@ -1,7 +1,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin5-bz2.c:6481)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
Conditional jump or move depends on uninitialised value(s)
at 0x........: handle_compress (origin5-bz2.c:4686)
@@ -9,85 +9,91 @@
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
+Use of uninitialised value of size 4
at 0x........: handle_compress (origin5-bz2.c:4686)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2820)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2820)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2823)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2823)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2854)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2854)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2858)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2858)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
by 0x........: BZ2_bzBuffToBuffCompress (origin5-bz2.c:5630)
by 0x........: main (origin5-bz2.c:6484)
Uninitialised value was created by a client request
- at 0x........: main (origin5-bz2.c:6481)
+ at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: BZ2_blockSort (origin5-bz2.c:2963)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2963)
+ by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
<truncated beyond 100 lines>
=================================================
./valgrind/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-04-16 03:25:05.000000000 +1000
+++ mremap2.stdout.out 2009-04-16 03:41:39.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,40 +173,40 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
<truncated beyond 100 lines>
=================================================
./valgrind/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-04-16 03:25:05.000000000 +1000
+++ mremap2.stdout.out 2009-04-16 03:41:39.000000000 +1000
@@ -176,49 +176,49 @@
maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other)
XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...................
..................................................
=================================================
./valgrind/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-04-16 03:25:05.000000000 +1000
+++ mremap2.stdout.out 2009-04-16 03:41:39.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
-maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12
+XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
..................................................
..................................................
@@ -173,52 +173,52 @@
..................................................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX
+maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXX.............................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX
+maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.....................
..................................................
-maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other)
+XXXXXXXXX...............................XXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-..................................................
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX....................
<truncated beyond 100 lines>
=================================================
./valgrind/none/tests/shell.stderr.diff
=================================================
--- shell.stderr.exp 2009-04-16 03:25:12.000000000 +1000
+++ shell.stderr.out 2009-04-16 03:41:53.000000000 +1000
@@ -1,8 +1 @@
-./shell: ./x86/: is a directory
-./shell: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell: ./shell_binaryfile: cannot execute binary file
-./shell: ./shell_nosuchfile: No such file or directory
-./shell: shell_nosuchfile: command not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell.stderr.diff-dash
=================================================
--- shell.stderr.exp-dash 2009-04-16 03:25:12.000000000 +1000
+++ shell.stderr.out 2009-04-16 03:41:53.000000000 +1000
@@ -1,8 +1 @@
-./shell: 10: ./x86/: Permission denied
-./shell: 13: ./shell.vgtest: Permission denied
-execve(0x........(./shell_badinterp), 0x........, 0x........) failed, errno 2
-EXEC FAILED: I can't recover from execve() failing, so I'm dying.
-Add more stringent tests in PRE(sys_execve), or work out how to recover.
-./shell_binaryfile: 4: Syntax error: ")" unexpected
-./shell: 22: ./shell_nosuchfile: not found
-./shell: 25: shell_nosuchfile: not found
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell.stdout.diff
=================================================
--- shell.stdout.exp 2009-04-16 03:25:12.000000000 +1000
+++ shell.stdout.out 2009-04-16 03:41:53.000000000 +1000
@@ -1,10 +0,0 @@
-Execute a directory
-Execute a non-executable file
-Execute a script with a bad interpreter name
-Execute a binary file
-Execute a non-existent file
-Execute a non-existent file (2)
-Execute a valid script with a #! line
-Execute a valid script without a #! line
-Execute a valid script with #! but no interpname
-Execute a zero-length file
=================================================
./valgrind/none/tests/shell_valid1.stderr.diff
=================================================
--- shell_valid1.stderr.exp 2009-04-16 03:25:12.000000000 +1000
+++ shell_valid1.stderr.out 2009-04-16 03:41:53.000000000 +1000
@@ -0,0 +1 @@
+valgrind: failed to start tool 'none' for platform 'amd64-linux': No such file or directory
=================================================
./valgrind/none/tests/shell_valid2.stderr.diff
=================================================
--- shell_valid2.stderr.exp 2009-04-16 03:25:12.000000000 +1000
+++ shell_valid2.stderr.out 2009-04-16 03:41:53.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid2: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind/none/tests/shell_valid3.stderr.diff
=================================================
--- shell_valid3.stderr.exp 2009-04-16 03:25:12.000000000 +1000
+++ shell_valid3.stderr.out 2009-04-16 03:41:53.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid3: bad interpreter (/bin/sh): VG_(strerror): unknown error
|
|
From: Nicholas N. <n.n...@gm...> - 2009-04-15 16:50:16
|
Nightly build on ocean ( Ubuntu 8.10, Intel x86-64 ) started at 2009-04-16 02:00:01 EST Results unchanged from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 483 tests, 0 stderr failures, 1 stdout failure, 0 post failures == none/tests/linux/mremap2 (stdout) ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff ================================================= --- mremap2.stdout.exp 2009-04-16 02:27:39.000000000 +1000 +++ mremap2.stdout.out 2009-04-16 02:49:31.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,40 +173,40 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... <truncated beyond 100 lines> ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff-glibc28-amd64 ================================================= --- mremap2.stdout.exp-glibc28-amd64 2009-04-16 02:27:39.000000000 +1000 +++ mremap2.stdout.out 2009-04-16 02:49:31.000000000 +1000 @@ -176,49 +176,49 @@ maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 0 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. maymv 1 fixed 0 newsz 31 dstpo 1 dst 0x........ -> 0x........ (== other) XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX................... .................................................. ================================================= ./valgrind/none/tests/linux/mremap2.stdout.diff2 ================================================= --- mremap2.stdout.exp2 2009-04-16 02:27:39.000000000 +1000 +++ mremap2.stdout.out 2009-04-16 02:49:31.000000000 +1000 @@ -27,38 +27,38 @@ .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 0 fixed 0 newsz 21 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 0 fixed 0 newsz 29 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 0 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. -maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 0 fixed 0 newsz 30 dstpo 1 dst 0x........ -> error 12 +XXXXXXXXX.XXXXXXXXXXXXXXXXXXXX..........XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .................................................. .................................................. @@ -173,52 +173,52 @@ .................................................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXX.........XXXXXXXXXX +maymv 1 fixed 0 newsz 21 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXX............................. .................................................. -maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.XXXXXXXXXX +maymv 1 fixed 0 newsz 29 dstpo 1 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXX..................... .................................................. -maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== src) -XXXXXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +maymv 1 fixed 0 newsz 30 dstpo 0 dst 0x........ -> 0x........ (== other) +XXXXXXXXX...............................XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -.................................................. +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.................... <truncated beyond 100 lines> |
|
From: Vince W. <vi...@cs...> - 2009-04-15 16:02:02
|
On Wed, 15 Apr 2009, Nicholas Nethercote wrote: > There's a current thread on valgrind-users "can't compile valgrind, > fails in make" about this. Basically, I think it's because you have > an old automake that does the wrong thing -- what version do you have? Ahh, I didn't think to check the valgrind-users list. Probably would have saved me a bit of time on bisection. The one machine I tested on was an older one, running SuSE 10.1 which has automake 1.9.6 I also tried on a current debian-unstable system which I would have thought would have had a more modern automake, but oddly it is using automake 1.7.9 > And if you try the attached patch, I think that will fix it. yes, it seems to fix it. Thanks Vince |
|
From: <sv...@va...> - 2009-04-15 07:36:57
|
Author: njn Date: 2009-04-15 08:36:54 +0100 (Wed, 15 Apr 2009) New Revision: 9552 Log: This also should have gone in with r9550. Added: branches/DARWIN/none/tests/x86-linux/filter_stderr Added: branches/DARWIN/none/tests/x86-linux/filter_stderr =================================================================== --- branches/DARWIN/none/tests/x86-linux/filter_stderr (rev 0) +++ branches/DARWIN/none/tests/x86-linux/filter_stderr 2009-04-15 07:36:54 UTC (rev 9552) @@ -0,0 +1,4 @@ +#! /bin/sh + +../filter_stderr + Property changes on: branches/DARWIN/none/tests/x86-linux/filter_stderr ___________________________________________________________________ Name: svn:executable + * |
|
From: <sv...@va...> - 2009-04-15 07:27:57
|
Author: njn
Date: 2009-04-15 08:27:51 +0100 (Wed, 15 Apr 2009)
New Revision: 9551
Log:
This should have gone in with r9550.
Modified:
branches/DARWIN/configure.in
Modified: branches/DARWIN/configure.in
===================================================================
--- branches/DARWIN/configure.in 2009-04-15 07:21:34 UTC (rev 9550)
+++ branches/DARWIN/configure.in 2009-04-15 07:27:51 UTC (rev 9551)
@@ -1845,6 +1845,7 @@
none/tests/ppc64/Makefile
none/tests/x86/Makefile
none/tests/linux/Makefile
+ none/tests/x86-linux/Makefile
none/docs/Makefile
exp-omega/Makefile
exp-omega/tests/Makefile
|
|
From: <sv...@va...> - 2009-04-15 07:21:38
|
Author: njn
Date: 2009-04-15 08:21:34 +0100 (Wed, 15 Apr 2009)
New Revision: 9550
Log:
Moved seg_override and sigcontext to (newly created) x86-linux/ sub-dir, as
they are Linux-specific.
Added:
branches/DARWIN/none/tests/x86-linux/
branches/DARWIN/none/tests/x86-linux/Makefile.am
branches/DARWIN/none/tests/x86-linux/seg_override.c
branches/DARWIN/none/tests/x86-linux/seg_override.stderr.exp
branches/DARWIN/none/tests/x86-linux/seg_override.stdout.exp
branches/DARWIN/none/tests/x86-linux/seg_override.vgtest
branches/DARWIN/none/tests/x86-linux/sigcontext.c
branches/DARWIN/none/tests/x86-linux/sigcontext.stderr.exp
branches/DARWIN/none/tests/x86-linux/sigcontext.stdout.exp
branches/DARWIN/none/tests/x86-linux/sigcontext.vgtest
Removed:
branches/DARWIN/none/tests/x86/seg_override.c
branches/DARWIN/none/tests/x86/seg_override.stderr.exp
branches/DARWIN/none/tests/x86/seg_override.stdout.exp
branches/DARWIN/none/tests/x86/seg_override.vgtest
branches/DARWIN/none/tests/x86/sigcontext.c
branches/DARWIN/none/tests/x86/sigcontext.stderr.exp
branches/DARWIN/none/tests/x86/sigcontext.stdout.exp
branches/DARWIN/none/tests/x86/sigcontext.vgtest
Modified:
branches/DARWIN/none/tests/Makefile.am
branches/DARWIN/none/tests/x86/Makefile.am
Modified: branches/DARWIN/none/tests/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/Makefile.am 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/Makefile.am 2009-04-15 07:21:34 UTC (rev 9550)
@@ -22,6 +22,11 @@
SUBDIRS += linux
endif
+# Platform-specific tests
+if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
+SUBDIRS += x86-linux
+endif
+
DIST_SUBDIRS = x86 amd64 ppc32 ppc64 linux .
noinst_SCRIPTS = \
Modified: branches/DARWIN/none/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/x86/Makefile.am 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/Makefile.am 2009-04-15 07:21:34 UTC (rev 9550)
@@ -49,8 +49,6 @@
movx.stderr.exp movx.stdout.exp movx.vgtest \
pushpopseg.stderr.exp pushpopseg.stdout.exp pushpopseg.vgtest \
sbbmisc.stderr.exp sbbmisc.stdout.exp sbbmisc.vgtest \
- seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \
- sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest \
smc1.stderr.exp smc1.stdout.exp smc1.vgtest \
ssse3_misaligned.stderr.exp ssse3_misaligned.stdout.exp \
ssse3_misaligned.vgtest ssse3_misaligned.c \
@@ -92,9 +90,7 @@
if ! VGCONF_OS_IS_DARWIN
check_PROGRAMS += \
cpuid \
- faultstatus \
- seg_override \
- sigcontext
+ faultstatus
endif
AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
Deleted: branches/DARWIN/none/tests/x86/seg_override.c
===================================================================
--- branches/DARWIN/none/tests/x86/seg_override.c 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/seg_override.c 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1,138 +0,0 @@
-
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-
-/* Stuff from Wine. */
-
-typedef unsigned short WORD; /* I guess */
-typedef unsigned char BYTE;
-
-typedef struct _LDT_ENTRY {
- WORD LimitLow;
- WORD BaseLow;
- union {
- struct {
- BYTE BaseMid;
- BYTE Flags1;
- /*Declare as bytes to avoid alignment problems */
- BYTE Flags2;
- BYTE BaseHi;
- } Bytes;
- struct {
- unsigned BaseMid : 8;
- unsigned Type : 5;
- unsigned Dpl : 2;
- unsigned Pres : 1;
- unsigned LimitHi : 4;
- unsigned Sys : 1;
- unsigned Reserved_0 : 1;
- unsigned Default_Big : 1;
- unsigned Granularity : 1;
- unsigned BaseHi : 8;
- } Bits;
- } HighWord;
-} LDT_ENTRY;
-
-inline static void *wine_ldt_get_base( const LDT_ENTRY *ent )
-{
- return (void *)(ent->BaseLow |
- (unsigned long)ent->HighWord.Bits.BaseMid << 16 |
- (unsigned long)ent->HighWord.Bits.BaseHi << 24);
-}
-inline static unsigned int wine_ldt_get_limit( const LDT_ENTRY *ent )
-{
- unsigned int limit = ent->LimitLow | (ent->HighWord.Bits.LimitHi << 16);
- if (ent->HighWord.Bits.Granularity) limit = (limit << 12) | 0xfff;
- return limit;
-}
-
-
-/* our copy of the ldt */
-LDT_ENTRY ldt_copy[8192];
-
-/* System call to set LDT entry. */
-//extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
-extern int __modify_ldt (int, void *, size_t);
-
-void print_ldt ( void )
-{
- int res;
- res = __modify_ldt( 0, ldt_copy, 8192*sizeof(LDT_ENTRY) );
- printf("got %d bytes\n", res );
- perror("error is");
-}
-
-/* Structure passed on `modify_ldt' call. */
-#define MODIFY_LDT_CONTENTS_DATA 0
-#define MODIFY_LDT_CONTENTS_STACK 1
-#define MODIFY_LDT_CONTENTS_CODE 2
-
-struct modify_ldt_ldt_s
-{
- unsigned int entry_number;
- unsigned long int base_addr;
- unsigned int limit;
- unsigned int seg_32bit:1;
- unsigned int contents:2;
- unsigned int read_exec_only:1;
- unsigned int limit_in_pages:1;
- unsigned int seg_not_present:1;
- unsigned int useable:1;
- unsigned int empty:25;
-};
-
-/* System call to set LDT entry. */
-//extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
-
-void set_ldt1 ( void* base )
-{
- int stat;
- struct modify_ldt_ldt_s ldt_entry;
-
- /* stop valgrind yelping about initialised holes in this struct. */
- memset(&ldt_entry, 0, sizeof(ldt_entry));
-
- ldt_entry.entry_number = 1;
- ldt_entry.base_addr = (unsigned)base; //0x12345678;
- ldt_entry.limit = 10;
- ldt_entry.seg_32bit = 1;
- ldt_entry.contents = MODIFY_LDT_CONTENTS_DATA;
- ldt_entry.read_exec_only = 0;
- ldt_entry.limit_in_pages = 0;
- ldt_entry.seg_not_present = 0;
- stat = __modify_ldt (1, &ldt_entry, sizeof (ldt_entry));
- printf("stat = %d\n", stat);
-}
-
-
-void ldt_seg_write ( int ldt_entno, unsigned offset, unsigned val )
-{
- asm volatile("movl %2, %%eax\n\t"
- "movl %1, %%edx\n\t"
- "movl %0, %%fs\n\t"
- "movl %%eax, %%fs:(%%edx)\t"
- :
- : "r" (7 /* LDT(TI), least privilege */ + (ldt_entno << 3)),
- "r" (offset), "r" (val)
- : "eax", "edx", "cc" );
-}
-
-int main ( void )
-{
- int i;
- int arr[9];
-
- for (i = 0; i < 9; i++) arr[i] = 11*i;
-
- set_ldt1( &arr[4] );
- print_ldt();
-
- ldt_seg_write(1 /* ldt entry # */, 4 /* offset */, 4444);
-
- for (i = 0; i < 9; i++) printf("%d ", arr[i]);
- printf("\n");
-
- return 0;
-}
-
Deleted: branches/DARWIN/none/tests/x86/seg_override.stderr.exp
===================================================================
--- branches/DARWIN/none/tests/x86/seg_override.stderr.exp 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/seg_override.stderr.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1,3 +0,0 @@
-
-error is: Success
-
Deleted: branches/DARWIN/none/tests/x86/seg_override.stdout.exp
===================================================================
--- branches/DARWIN/none/tests/x86/seg_override.stdout.exp 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/seg_override.stdout.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1,3 +0,0 @@
-stat = 0
-got 65536 bytes
-0 11 22 33 44 4444 66 77 88
Deleted: branches/DARWIN/none/tests/x86/seg_override.vgtest
===================================================================
--- branches/DARWIN/none/tests/x86/seg_override.vgtest 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/seg_override.vgtest 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1 +0,0 @@
-prog: seg_override
Deleted: branches/DARWIN/none/tests/x86/sigcontext.c
===================================================================
--- branches/DARWIN/none/tests/x86/sigcontext.c 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/sigcontext.c 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1,92 +0,0 @@
-#define _GNU_SOURCE
-
-#include <stdio.h>
-#include <signal.h>
-#include <unistd.h>
-#include <sys/ucontext.h>
-#include <asm/unistd.h>
-
-#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 %p\n", (void*)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 v2, v3, v4;
-
- sa.sa_handler = (void*)handler1;
- sa.sa_flags = SA_SIGINFO;
- sigfillset(&sa.sa_mask);
-
- sigaction(SIGUSR1, &sa, NULL);
-
- sa.sa_handler = (void*)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;
-}
Deleted: branches/DARWIN/none/tests/x86/sigcontext.stderr.exp
===================================================================
--- branches/DARWIN/none/tests/x86/sigcontext.stderr.exp 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/sigcontext.stderr.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1,2 +0,0 @@
-
-
Deleted: branches/DARWIN/none/tests/x86/sigcontext.stdout.exp
===================================================================
--- branches/DARWIN/none/tests/x86/sigcontext.stdout.exp 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/sigcontext.stdout.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1,4 +0,0 @@
-v2=22222222 v3=33333333 v4=44444444
-PASS 11223344
-v2=22222222 v3=33333333 v4=44444444
-PASS 44332211
Deleted: branches/DARWIN/none/tests/x86/sigcontext.vgtest
===================================================================
--- branches/DARWIN/none/tests/x86/sigcontext.vgtest 2009-04-15 07:11:36 UTC (rev 9549)
+++ branches/DARWIN/none/tests/x86/sigcontext.vgtest 2009-04-15 07:21:34 UTC (rev 9550)
@@ -1 +0,0 @@
-prog: sigcontext
Added: branches/DARWIN/none/tests/x86-linux/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/x86-linux/Makefile.am (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/Makefile.am 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,19 @@
+
+include $(top_srcdir)/Makefile.tool-tests.am
+
+noinst_SCRIPTS = \
+ filter_stderr
+
+EXTRA_DIST = $(noinst_SCRIPTS) \
+ seg_override.stderr.exp seg_override.stdout.exp seg_override.vgtest \
+ sigcontext.stdout.exp sigcontext.stderr.exp sigcontext.vgtest
+
+check_PROGRAMS = \
+ seg_override \
+ sigcontext
+
+AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
+AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
+AM_CCASFLAGS = @FLAG_M32@
+
+
Copied: branches/DARWIN/none/tests/x86-linux/seg_override.c (from rev 9544, branches/DARWIN/none/tests/x86/seg_override.c)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/seg_override.c (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/seg_override.c 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,138 @@
+
+#include <stdio.h>
+#include <errno.h>
+#include <string.h>
+
+/* Stuff from Wine. */
+
+typedef unsigned short WORD; /* I guess */
+typedef unsigned char BYTE;
+
+typedef struct _LDT_ENTRY {
+ WORD LimitLow;
+ WORD BaseLow;
+ union {
+ struct {
+ BYTE BaseMid;
+ BYTE Flags1;
+ /*Declare as bytes to avoid alignment problems */
+ BYTE Flags2;
+ BYTE BaseHi;
+ } Bytes;
+ struct {
+ unsigned BaseMid : 8;
+ unsigned Type : 5;
+ unsigned Dpl : 2;
+ unsigned Pres : 1;
+ unsigned LimitHi : 4;
+ unsigned Sys : 1;
+ unsigned Reserved_0 : 1;
+ unsigned Default_Big : 1;
+ unsigned Granularity : 1;
+ unsigned BaseHi : 8;
+ } Bits;
+ } HighWord;
+} LDT_ENTRY;
+
+inline static void *wine_ldt_get_base( const LDT_ENTRY *ent )
+{
+ return (void *)(ent->BaseLow |
+ (unsigned long)ent->HighWord.Bits.BaseMid << 16 |
+ (unsigned long)ent->HighWord.Bits.BaseHi << 24);
+}
+inline static unsigned int wine_ldt_get_limit( const LDT_ENTRY *ent )
+{
+ unsigned int limit = ent->LimitLow | (ent->HighWord.Bits.LimitHi << 16);
+ if (ent->HighWord.Bits.Granularity) limit = (limit << 12) | 0xfff;
+ return limit;
+}
+
+
+/* our copy of the ldt */
+LDT_ENTRY ldt_copy[8192];
+
+/* System call to set LDT entry. */
+//extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
+extern int __modify_ldt (int, void *, size_t);
+
+void print_ldt ( void )
+{
+ int res;
+ res = __modify_ldt( 0, ldt_copy, 8192*sizeof(LDT_ENTRY) );
+ printf("got %d bytes\n", res );
+ perror("error is");
+}
+
+/* Structure passed on `modify_ldt' call. */
+#define MODIFY_LDT_CONTENTS_DATA 0
+#define MODIFY_LDT_CONTENTS_STACK 1
+#define MODIFY_LDT_CONTENTS_CODE 2
+
+struct modify_ldt_ldt_s
+{
+ unsigned int entry_number;
+ unsigned long int base_addr;
+ unsigned int limit;
+ unsigned int seg_32bit:1;
+ unsigned int contents:2;
+ unsigned int read_exec_only:1;
+ unsigned int limit_in_pages:1;
+ unsigned int seg_not_present:1;
+ unsigned int useable:1;
+ unsigned int empty:25;
+};
+
+/* System call to set LDT entry. */
+//extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
+
+void set_ldt1 ( void* base )
+{
+ int stat;
+ struct modify_ldt_ldt_s ldt_entry;
+
+ /* stop valgrind yelping about initialised holes in this struct. */
+ memset(&ldt_entry, 0, sizeof(ldt_entry));
+
+ ldt_entry.entry_number = 1;
+ ldt_entry.base_addr = (unsigned)base; //0x12345678;
+ ldt_entry.limit = 10;
+ ldt_entry.seg_32bit = 1;
+ ldt_entry.contents = MODIFY_LDT_CONTENTS_DATA;
+ ldt_entry.read_exec_only = 0;
+ ldt_entry.limit_in_pages = 0;
+ ldt_entry.seg_not_present = 0;
+ stat = __modify_ldt (1, &ldt_entry, sizeof (ldt_entry));
+ printf("stat = %d\n", stat);
+}
+
+
+void ldt_seg_write ( int ldt_entno, unsigned offset, unsigned val )
+{
+ asm volatile("movl %2, %%eax\n\t"
+ "movl %1, %%edx\n\t"
+ "movl %0, %%fs\n\t"
+ "movl %%eax, %%fs:(%%edx)\t"
+ :
+ : "r" (7 /* LDT(TI), least privilege */ + (ldt_entno << 3)),
+ "r" (offset), "r" (val)
+ : "eax", "edx", "cc" );
+}
+
+int main ( void )
+{
+ int i;
+ int arr[9];
+
+ for (i = 0; i < 9; i++) arr[i] = 11*i;
+
+ set_ldt1( &arr[4] );
+ print_ldt();
+
+ ldt_seg_write(1 /* ldt entry # */, 4 /* offset */, 4444);
+
+ for (i = 0; i < 9; i++) printf("%d ", arr[i]);
+ printf("\n");
+
+ return 0;
+}
+
Copied: branches/DARWIN/none/tests/x86-linux/seg_override.stderr.exp (from rev 9544, branches/DARWIN/none/tests/x86/seg_override.stderr.exp)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/seg_override.stderr.exp (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/seg_override.stderr.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,3 @@
+
+error is: Success
+
Copied: branches/DARWIN/none/tests/x86-linux/seg_override.stdout.exp (from rev 9544, branches/DARWIN/none/tests/x86/seg_override.stdout.exp)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/seg_override.stdout.exp (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/seg_override.stdout.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,3 @@
+stat = 0
+got 65536 bytes
+0 11 22 33 44 4444 66 77 88
Copied: branches/DARWIN/none/tests/x86-linux/seg_override.vgtest (from rev 9544, branches/DARWIN/none/tests/x86/seg_override.vgtest)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/seg_override.vgtest (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/seg_override.vgtest 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1 @@
+prog: seg_override
Copied: branches/DARWIN/none/tests/x86-linux/sigcontext.c (from rev 9544, branches/DARWIN/none/tests/x86/sigcontext.c)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/sigcontext.c (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/sigcontext.c 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,92 @@
+#define _GNU_SOURCE
+
+#include <stdio.h>
+#include <signal.h>
+#include <unistd.h>
+#include <sys/ucontext.h>
+#include <asm/unistd.h>
+
+#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 %p\n", (void*)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 v2, v3, v4;
+
+ sa.sa_handler = (void*)handler1;
+ sa.sa_flags = SA_SIGINFO;
+ sigfillset(&sa.sa_mask);
+
+ sigaction(SIGUSR1, &sa, NULL);
+
+ sa.sa_handler = (void*)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;
+}
Copied: branches/DARWIN/none/tests/x86-linux/sigcontext.stderr.exp (from rev 9544, branches/DARWIN/none/tests/x86/sigcontext.stderr.exp)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/sigcontext.stderr.exp (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/sigcontext.stderr.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,2 @@
+
+
Copied: branches/DARWIN/none/tests/x86-linux/sigcontext.stdout.exp (from rev 9544, branches/DARWIN/none/tests/x86/sigcontext.stdout.exp)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/sigcontext.stdout.exp (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/sigcontext.stdout.exp 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1,4 @@
+v2=22222222 v3=33333333 v4=44444444
+PASS 11223344
+v2=22222222 v3=33333333 v4=44444444
+PASS 44332211
Copied: branches/DARWIN/none/tests/x86-linux/sigcontext.vgtest (from rev 9544, branches/DARWIN/none/tests/x86/sigcontext.vgtest)
===================================================================
--- branches/DARWIN/none/tests/x86-linux/sigcontext.vgtest (rev 0)
+++ branches/DARWIN/none/tests/x86-linux/sigcontext.vgtest 2009-04-15 07:21:34 UTC (rev 9550)
@@ -0,0 +1 @@
+prog: sigcontext
|
|
From: <sv...@va...> - 2009-04-15 07:11:40
|
Author: njn
Date: 2009-04-15 08:11:36 +0100 (Wed, 15 Apr 2009)
New Revision: 9549
Log:
Merged r9546..r9548 (moved blockfault, and filtering fixes) from the DARWIN
branch.
Added:
trunk/none/tests/linux/blockfault.c
trunk/none/tests/linux/blockfault.stderr.exp
trunk/none/tests/linux/blockfault.vgtest
Removed:
trunk/none/tests/blockfault.c
trunk/none/tests/blockfault.stderr.exp
trunk/none/tests/blockfault.stdout.exp
trunk/none/tests/blockfault.vgtest
Modified:
trunk/memcheck/tests/filter_stderr
trunk/none/tests/Makefile.am
trunk/none/tests/filter_stderr
trunk/none/tests/linux/Makefile.am
trunk/tests/filter_stderr_basic
Modified: trunk/memcheck/tests/filter_stderr
===================================================================
--- trunk/memcheck/tests/filter_stderr 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/memcheck/tests/filter_stderr 2009-04-15 07:11:36 UTC (rev 9549)
@@ -13,9 +13,6 @@
# Anonymise line numbers in mc_replace_strmem.c
sed "s/mc_replace_strmem.c:[0-9]*/mc_replace_strmem.c:.../" |
-# Remove the size in "The main thread stack size..." message.
-sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../" |
-
# Replace exit_group() with exit(), because you can get either on Linux
# depending on the system.
perl -p -e "s/param exit_group\(status\)/param exit(status)/" |
Modified: trunk/none/tests/Makefile.am
===================================================================
--- trunk/none/tests/Makefile.am 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/none/tests/Makefile.am 2009-04-15 07:11:36 UTC (rev 9549)
@@ -35,7 +35,6 @@
args.stderr.exp args.stdout.exp args.vgtest \
async-sigs.stderr.exp async-sigs.stdout.exp async-sigs.vgtest \
bitfield1.stderr.exp bitfield1.vgtest \
- blockfault.vgtest blockfault.stderr.exp blockfault.stdout.exp \
bug129866.vgtest bug129866.stderr.exp bug129866.stdout.exp \
closeall.stderr.exp closeall.vgtest \
cmdline0.stderr.exp cmdline0.stdout.exp cmdline0.vgtest \
@@ -127,7 +126,7 @@
check_PROGRAMS = \
ansi args \
- async-sigs bitfield1 blockfault \
+ async-sigs bitfield1 \
bug129866 \
closeall coolo_strlen \
discard exec-sigmask execve faultstatus fcntl_setown \
Deleted: trunk/none/tests/blockfault.c
===================================================================
--- trunk/none/tests/blockfault.c 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/none/tests/blockfault.c 2009-04-15 07:11:36 UTC (rev 9549)
@@ -1,35 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <signal.h>
-
-static void handler(int sig, siginfo_t *info, void *v)
-{
- printf("info: sig=%d code=%d addr=%p\n",
- info->si_signo, info->si_code, info->si_addr);
- exit(0);
-}
-
-/* Blocking a fault, ie SIGSEGV, won't work, and is the same as having
- the default handler */
-int main()
-{
-#if defined(_AIX)
- printf("this test hangs when run (even natively) on AIX\n");
- return 0;
-#endif
- struct sigaction sa;
- sigset_t mask;
-
- sa.sa_sigaction = handler;
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_SIGINFO;
-
- sigaction(SIGSEGV, &sa, NULL);
-
- sigfillset(&mask);
- sigprocmask(SIG_BLOCK, &mask, NULL);
-
- *(volatile int *)12345 = 213;
-
- return 0;
-}
Deleted: trunk/none/tests/blockfault.stderr.exp
===================================================================
--- trunk/none/tests/blockfault.stderr.exp 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/none/tests/blockfault.stderr.exp 2009-04-15 07:11:36 UTC (rev 9549)
@@ -1,10 +0,0 @@
-
-
-Process terminating with default action of signal 11 (SIGSEGV)
- Access not within mapped region at address 0x........
- at 0x........: main (blockfault.c:32)
- If you believe this happened as a result of a stack overflow in your
- program's main thread (unlikely but possible), you can try to increase
- the size of the main thread stack using the --main-stacksize= flag.
- The main thread stack size used in this run was ....
-
Deleted: trunk/none/tests/blockfault.stdout.exp
===================================================================
Deleted: trunk/none/tests/blockfault.vgtest
===================================================================
--- trunk/none/tests/blockfault.vgtest 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/none/tests/blockfault.vgtest 2009-04-15 07:11:36 UTC (rev 9549)
@@ -1 +0,0 @@
-prog: blockfault
Modified: trunk/none/tests/filter_stderr
===================================================================
--- trunk/none/tests/filter_stderr 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/none/tests/filter_stderr 2009-04-15 07:11:36 UTC (rev 9549)
@@ -7,9 +7,6 @@
# Remove "Nulgrind, ..." line and the following copyright line.
sed "/^Nulgrind, a binary JIT-compiler./ , /./ d" |
-# Remove the size in "The main thread stack size..." message.
-sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../" |
-
# Anonymise addresses
$dir/../../tests/filter_addresses
Modified: trunk/none/tests/linux/Makefile.am
===================================================================
--- trunk/none/tests/linux/Makefile.am 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/none/tests/linux/Makefile.am 2009-04-15 07:11:36 UTC (rev 9549)
@@ -4,11 +4,13 @@
noinst_SCRIPTS = filter_stderr
EXTRA_DIST = $(noinst_SCRIPTS) \
+ blockfault.stderr.exp blockfault.vgtest \
mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
mremap2.stderr.exp mremap2.stdout.exp mremap2.stdout.exp2 \
mremap2.stdout.exp-glibc28-amd64 mremap2.vgtest
check_PROGRAMS = \
+ blockfault \
mremap \
mremap2
Copied: trunk/none/tests/linux/blockfault.c (from rev 9546, branches/DARWIN/none/tests/linux/blockfault.c)
===================================================================
--- trunk/none/tests/linux/blockfault.c (rev 0)
+++ trunk/none/tests/linux/blockfault.c 2009-04-15 07:11:36 UTC (rev 9549)
@@ -0,0 +1,33 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <signal.h>
+#include "tests/sys_mman.h"
+
+static void handler(int sig, siginfo_t *info, void *v)
+{
+ printf("info: sig=%d code=%d addr=%p\n",
+ info->si_signo, info->si_code, info->si_addr);
+ exit(0);
+}
+
+/* Blocking a fault, ie SIGSEGV, won't work, and is the same as having
+ the default handler */
+int main()
+{
+ int* unmapped_page = get_unmapped_page();
+ struct sigaction sa;
+ sigset_t mask;
+
+ sa.sa_sigaction = handler;
+ sigemptyset(&sa.sa_mask);
+ sa.sa_flags = SA_SIGINFO;
+
+ sigaction(SIGSEGV, &sa, NULL);
+
+ sigfillset(&mask);
+ sigprocmask(SIG_BLOCK, &mask, NULL);
+
+ *(volatile int *)unmapped_page = 213;
+
+ return 0;
+}
Copied: trunk/none/tests/linux/blockfault.stderr.exp (from rev 9546, branches/DARWIN/none/tests/linux/blockfault.stderr.exp)
===================================================================
--- trunk/none/tests/linux/blockfault.stderr.exp (rev 0)
+++ trunk/none/tests/linux/blockfault.stderr.exp 2009-04-15 07:11:36 UTC (rev 9549)
@@ -0,0 +1,10 @@
+
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Access not within mapped region at address 0x........
+ at 0x........: main (blockfault.c:30)
+ If you believe this happened as a result of a stack overflow in your
+ program's main thread (unlikely but possible), you can try to increase
+ the size of the main thread stack using the --main-stacksize= flag.
+ The main thread stack size used in this run was ....
+
Copied: trunk/none/tests/linux/blockfault.vgtest (from rev 9546, branches/DARWIN/none/tests/linux/blockfault.vgtest)
===================================================================
--- trunk/none/tests/linux/blockfault.vgtest (rev 0)
+++ trunk/none/tests/linux/blockfault.vgtest 2009-04-15 07:11:36 UTC (rev 9549)
@@ -0,0 +1 @@
+prog: blockfault
Modified: trunk/tests/filter_stderr_basic
===================================================================
--- trunk/tests/filter_stderr_basic 2009-04-15 07:01:34 UTC (rev 9548)
+++ trunk/tests/filter_stderr_basic 2009-04-15 07:11:36 UTC (rev 9549)
@@ -46,4 +46,8 @@
# Remove any ": dumping core" message as the user might have a
# limit set that prevents the core dump
-sed "s/\(signal [0-9]* (SIG[A-Z]*)\): dumping core/\1/"
+sed "s/\(signal [0-9]* (SIG[A-Z]*)\): dumping core/\1/" |
+
+# Remove the size in "The main thread stack size..." message.
+sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../"
+
|
|
From: <sv...@va...> - 2009-04-15 07:01:44
|
Author: njn Date: 2009-04-15 08:01:34 +0100 (Wed, 15 Apr 2009) New Revision: 9548 Log: Filtering fixes. Modified: branches/DARWIN/memcheck/tests/filter_stderr branches/DARWIN/none/tests/linux/blockfault.stderr.exp branches/DARWIN/tests/filter_stderr_basic Modified: branches/DARWIN/memcheck/tests/filter_stderr =================================================================== --- branches/DARWIN/memcheck/tests/filter_stderr 2009-04-15 06:38:06 UTC (rev 9547) +++ branches/DARWIN/memcheck/tests/filter_stderr 2009-04-15 07:01:34 UTC (rev 9548) @@ -13,9 +13,6 @@ # Anonymise line numbers in mc_replace_strmem.c sed "s/mc_replace_strmem.c:[0-9]*/mc_replace_strmem.c:.../" | -# Remove the size in "The main thread stack size..." message. -sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../" | - # Replace exit_group() with exit(), because you can get either on Linux # depending on the system. perl -p -e "s/param exit_group\(status\)/param exit(status)/" | Modified: branches/DARWIN/none/tests/linux/blockfault.stderr.exp =================================================================== --- branches/DARWIN/none/tests/linux/blockfault.stderr.exp 2009-04-15 06:38:06 UTC (rev 9547) +++ branches/DARWIN/none/tests/linux/blockfault.stderr.exp 2009-04-15 07:01:34 UTC (rev 9548) @@ -6,5 +6,5 @@ If you believe this happened as a result of a stack overflow in your program's main thread (unlikely but possible), you can try to increase the size of the main thread stack using the --main-stacksize= flag. - The main thread stack size used in this run was 16777216. + The main thread stack size used in this run was .... Modified: branches/DARWIN/tests/filter_stderr_basic =================================================================== --- branches/DARWIN/tests/filter_stderr_basic 2009-04-15 06:38:06 UTC (rev 9547) +++ branches/DARWIN/tests/filter_stderr_basic 2009-04-15 07:01:34 UTC (rev 9548) @@ -49,6 +49,9 @@ # limit set that prevents the core dump sed "s/\(signal [0-9]* (SIG[A-Z]*)\): dumping core/\1/" | +# Remove the size in "The main thread stack size..." message. +sed "s/The main thread stack size used in this run was [0-9]*/The main thread stack size used in this run was .../" | + # DDD # Remove Darwin messages relating to the debugger. perl -n -e 'print if !/^Listening for debugger on port [0-9]+$/' |
|
From: <sv...@va...> - 2009-04-15 06:38:10
|
Author: njn
Date: 2009-04-15 07:38:06 +0100 (Wed, 15 Apr 2009)
New Revision: 9547
Log:
Fixes for Linux.
Modified:
branches/DARWIN/memcheck/tests/x86/Makefile.am
branches/DARWIN/none/tests/linux/blockfault.c
Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-15 06:00:16 UTC (rev 9546)
+++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-15 06:38:06 UTC (rev 9547)
@@ -54,7 +54,11 @@
# fpeflags must use these flags -- bug only occurred with them.
fpeflags_CFLAGS = $(AM_CFLAGS) -march=i686
pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.s
+if VGCONF_OS_IS_DARWIN
pushpopmem_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
+else
+pushpopmem_CFLAGS = $(AM_CFLAGS)
+endif
tronical_SOURCES = tronical.S
more_x86_fp_LDADD = -lm
Modified: branches/DARWIN/none/tests/linux/blockfault.c
===================================================================
--- branches/DARWIN/none/tests/linux/blockfault.c 2009-04-15 06:00:16 UTC (rev 9546)
+++ branches/DARWIN/none/tests/linux/blockfault.c 2009-04-15 06:38:06 UTC (rev 9547)
@@ -15,11 +15,6 @@
int main()
{
int* unmapped_page = get_unmapped_page();
-
-#if defined(VGO_aix5) || defined(VGO_darwin)
- printf("this test hangs when run (even natively) on AIX or Darwin\n");
- return 0;
-#endif
struct sigaction sa;
sigset_t mask;
|
|
From: <sv...@va...> - 2009-04-15 06:00:20
|
Author: njn
Date: 2009-04-15 07:00:16 +0100 (Wed, 15 Apr 2009)
New Revision: 9546
Log:
Moved blockfault to linux/, as it hangs natively on both AIX and Darwin.
Also used get_unmapped_page() within it to be safer.
Added:
branches/DARWIN/none/tests/linux/blockfault.c
branches/DARWIN/none/tests/linux/blockfault.stderr.exp
branches/DARWIN/none/tests/linux/blockfault.vgtest
Removed:
branches/DARWIN/none/tests/blockfault.c
branches/DARWIN/none/tests/blockfault.stderr.exp
branches/DARWIN/none/tests/blockfault.stdout.exp
branches/DARWIN/none/tests/blockfault.vgtest
Modified:
branches/DARWIN/none/tests/Makefile.am
branches/DARWIN/none/tests/linux/Makefile.am
Modified: branches/DARWIN/none/tests/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/Makefile.am 2009-04-15 05:38:42 UTC (rev 9545)
+++ branches/DARWIN/none/tests/Makefile.am 2009-04-15 06:00:16 UTC (rev 9546)
@@ -35,7 +35,6 @@
args.stderr.exp args.stdout.exp args.vgtest \
async-sigs.stderr.exp async-sigs.stdout.exp async-sigs.vgtest \
bitfield1.stderr.exp bitfield1.vgtest \
- blockfault.vgtest blockfault.stderr.exp blockfault.stdout.exp \
bug129866.vgtest bug129866.stderr.exp bug129866.stdout.exp \
closeall.stderr.exp closeall.vgtest \
cmdline0.stderr.exp cmdline0.stdout.exp cmdline0.vgtest \
@@ -159,7 +158,6 @@
fdleak_ipv4
endif
# DDD:
-# - blockfault hangs
# - manythreads and thread-exits have lots of this:
# --61831:0:aspacem sync_check_mapping_callback: segment mismatch:
# kernel's seg:
@@ -171,7 +169,6 @@
# hasW=0, hasX=0, hasT=0, mark=0, name="(none)"}
if ! VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN
check_PROGRAMS += \
- blockfault \
manythreads \
thread-exits
endif
Deleted: branches/DARWIN/none/tests/blockfault.c
===================================================================
--- branches/DARWIN/none/tests/blockfault.c 2009-04-15 05:38:42 UTC (rev 9545)
+++ branches/DARWIN/none/tests/blockfault.c 2009-04-15 06:00:16 UTC (rev 9546)
@@ -1,35 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <signal.h>
-
-static void handler(int sig, siginfo_t *info, void *v)
-{
- printf("info: sig=%d code=%d addr=%p\n",
- info->si_signo, info->si_code, info->si_addr);
- exit(0);
-}
-
-/* Blocking a fault, ie SIGSEGV, won't work, and is the same as having
- the default handler */
-int main()
-{
-#if defined(_AIX)
- printf("this test hangs when run (even natively) on AIX\n");
- return 0;
-#endif
- struct sigaction sa;
- sigset_t mask;
-
- sa.sa_sigaction = handler;
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = SA_SIGINFO;
-
- sigaction(SIGSEGV, &sa, NULL);
-
- sigfillset(&mask);
- sigprocmask(SIG_BLOCK, &mask, NULL);
-
- *(volatile int *)12345 = 213;
-
- return 0;
-}
Deleted: branches/DARWIN/none/tests/blockfault.stderr.exp
===================================================================
--- branches/DARWIN/none/tests/blockfault.stderr.exp 2009-04-15 05:38:42 UTC (rev 9545)
+++ branches/DARWIN/none/tests/blockfault.stderr.exp 2009-04-15 06:00:16 UTC (rev 9546)
@@ -1,10 +0,0 @@
-
-
-Process terminating with default action of signal 11 (SIGSEGV)
- Access not within mapped region at address 0x........
- at 0x........: main (blockfault.c:32)
- If you believe this happened as a result of a stack overflow in your
- program's main thread (unlikely but possible), you can try to increase
- the size of the main thread stack using the --main-stacksize= flag.
- The main thread stack size used in this run was 16777216.
-
Deleted: branches/DARWIN/none/tests/blockfault.stdout.exp
===================================================================
Deleted: branches/DARWIN/none/tests/blockfault.vgtest
===================================================================
--- branches/DARWIN/none/tests/blockfault.vgtest 2009-04-15 05:38:42 UTC (rev 9545)
+++ branches/DARWIN/none/tests/blockfault.vgtest 2009-04-15 06:00:16 UTC (rev 9546)
@@ -1 +0,0 @@
-prog: blockfault
Modified: branches/DARWIN/none/tests/linux/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/linux/Makefile.am 2009-04-15 05:38:42 UTC (rev 9545)
+++ branches/DARWIN/none/tests/linux/Makefile.am 2009-04-15 06:00:16 UTC (rev 9546)
@@ -4,11 +4,13 @@
noinst_SCRIPTS = filter_stderr
EXTRA_DIST = $(noinst_SCRIPTS) \
+ blockfault.stderr.exp blockfault.vgtest \
mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
mremap2.stderr.exp mremap2.stdout.exp mremap2.stdout.exp2 \
mremap2.stdout.exp-glibc28-amd64 mremap2.vgtest
check_PROGRAMS = \
+ blockfault \
mremap \
mremap2
Copied: branches/DARWIN/none/tests/linux/blockfault.c (from rev 9544, branches/DARWIN/none/tests/blockfault.c)
===================================================================
--- branches/DARWIN/none/tests/linux/blockfault.c (rev 0)
+++ branches/DARWIN/none/tests/linux/blockfault.c 2009-04-15 06:00:16 UTC (rev 9546)
@@ -0,0 +1,38 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <signal.h>
+#include "tests/sys_mman.h"
+
+static void handler(int sig, siginfo_t *info, void *v)
+{
+ printf("info: sig=%d code=%d addr=%p\n",
+ info->si_signo, info->si_code, info->si_addr);
+ exit(0);
+}
+
+/* Blocking a fault, ie SIGSEGV, won't work, and is the same as having
+ the default handler */
+int main()
+{
+ int* unmapped_page = get_unmapped_page();
+
+#if defined(VGO_aix5) || defined(VGO_darwin)
+ printf("this test hangs when run (even natively) on AIX or Darwin\n");
+ return 0;
+#endif
+ struct sigaction sa;
+ sigset_t mask;
+
+ sa.sa_sigaction = handler;
+ sigemptyset(&sa.sa_mask);
+ sa.sa_flags = SA_SIGINFO;
+
+ sigaction(SIGSEGV, &sa, NULL);
+
+ sigfillset(&mask);
+ sigprocmask(SIG_BLOCK, &mask, NULL);
+
+ *(volatile int *)unmapped_page = 213;
+
+ return 0;
+}
Copied: branches/DARWIN/none/tests/linux/blockfault.stderr.exp (from rev 9544, branches/DARWIN/none/tests/blockfault.stderr.exp)
===================================================================
--- branches/DARWIN/none/tests/linux/blockfault.stderr.exp (rev 0)
+++ branches/DARWIN/none/tests/linux/blockfault.stderr.exp 2009-04-15 06:00:16 UTC (rev 9546)
@@ -0,0 +1,10 @@
+
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Access not within mapped region at address 0x........
+ at 0x........: main (blockfault.c:30)
+ If you believe this happened as a result of a stack overflow in your
+ program's main thread (unlikely but possible), you can try to increase
+ the size of the main thread stack using the --main-stacksize= flag.
+ The main thread stack size used in this run was 16777216.
+
Copied: branches/DARWIN/none/tests/linux/blockfault.vgtest (from rev 9544, branches/DARWIN/none/tests/blockfault.vgtest)
===================================================================
--- branches/DARWIN/none/tests/linux/blockfault.vgtest (rev 0)
+++ branches/DARWIN/none/tests/linux/blockfault.vgtest 2009-04-15 06:00:16 UTC (rev 9546)
@@ -0,0 +1 @@
+prog: blockfault
|
|
From: Nicholas N. <n.n...@gm...> - 2009-04-15 05:55:29
|
On Wed, Apr 15, 2009 at 2:53 PM, Vince Weaver <vi...@cs...> wrote: > Hello > > current valgrind SVN fails with the following error for me: > > gcc -m64 -g -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement > -fno-stack-protector -c -o libcoregrind_amd64_linux_a-m_cpuid.o test -f > 'm_cpuid.S' || echo './'m_cpuid.S > In file included from m_cpuid.S:31: > pub_core_basics_asm.h:42:33: error: pub_tool_basics_asm.h: No such file or > directory > pub_core_basics_asm.h:45:20: error: config.h: No such file or directory > make[3]: *** [libcoregrind_amd64_linux_a-m_cpuid.o] Error 1 > make[3]: Leaving directory > /fusion/research4/vince/valgrind/svn/valgrind/coregrind' > > > I've bisected this down, the error was introduced at revision 9108 > which re-organized how the includes are set up. > > I'm not sure what the best way to fix this is; a straight revert would > probably fix it, but the proper fix is probably fixing Makefile.core.am > to handle the includes properly. There's a current thread on valgrind-users "can't compile valgrind, fails in make" about this. Basically, I think it's because you have an old automake that does the wrong thing -- what version do you have? And if you try the attached patch, I think that will fix it. Nick |
|
From: <sv...@va...> - 2009-04-15 05:38:54
|
Author: njn
Date: 2009-04-15 06:38:42 +0100 (Wed, 15 Apr 2009)
New Revision: 9545
Log:
Merged r9543 (make xor-undef-x86 work on Darwin) from the DARWIN branch.
Modified:
trunk/memcheck/tests/x86/xor-undef-x86.stderr.exp
trunk/memcheck/tests/x86/xor-undef-x86.vgtest
Modified: trunk/memcheck/tests/x86/xor-undef-x86.stderr.exp
===================================================================
--- trunk/memcheck/tests/x86/xor-undef-x86.stderr.exp 2009-04-15 05:35:00 UTC (rev 9544)
+++ trunk/memcheck/tests/x86/xor-undef-x86.stderr.exp 2009-04-15 05:38:42 UTC (rev 9545)
@@ -1,4 +1,3 @@
-
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (xor-undef-x86.c:17)
@@ -7,10 +6,3 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (xor-undef-x86.c:67)
-
-ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 1 allocs, 1 frees, 48 bytes allocated.
-For a detailed leak analysis, rerun with: --leak-check=yes
-For counts of detected errors, rerun with: -v
-Use --track-origins=yes to see where uninitialised values come from
Modified: trunk/memcheck/tests/x86/xor-undef-x86.vgtest
===================================================================
--- trunk/memcheck/tests/x86/xor-undef-x86.vgtest 2009-04-15 05:35:00 UTC (rev 9544)
+++ trunk/memcheck/tests/x86/xor-undef-x86.vgtest 2009-04-15 05:38:42 UTC (rev 9545)
@@ -1,2 +1,3 @@
+vgopts: -q
prog: xor-undef-x86
prereq: ../../../tests/x86_amd64_features x86-sse
|
|
From: <sv...@va...> - 2009-04-15 05:35:11
|
Author: njn
Date: 2009-04-15 06:35:00 +0100 (Wed, 15 Apr 2009)
New Revision: 9544
Log:
These three files should have been added in r9537.
Added:
trunk/tests/asm.h
trunk/tests/malloc.h
trunk/tests/sys_mman.h
Added: trunk/tests/asm.h
===================================================================
--- trunk/tests/asm.h (rev 0)
+++ trunk/tests/asm.h 2009-04-15 05:35:00 UTC (rev 9544)
@@ -0,0 +1,19 @@
+// Header to factor out platform differences in asm code.
+
+// On Darwin, all symbols get an underscore prepended when compiled. If we
+// use any such symbols in asm code, we need to add that underscore. So in
+// general, any symbol named in asm code should be wrapped by VG_SYM.
+
+// This one is for use in inline asm in C files.
+#if defined(VGO_darwin)
+#define VG_SYM(x) "_"#x
+#else
+#define VG_SYM(x) #x
+#endif
+
+// This one is for use in asm files.
+#if defined(VGO_darwin)
+#define VG_SYM_ASM(x) _#x
+#else
+#define VG_SYM_ASM(x) x
+#endif
Added: trunk/tests/malloc.h
===================================================================
--- trunk/tests/malloc.h (rev 0)
+++ trunk/tests/malloc.h 2009-04-15 05:35:00 UTC (rev 9544)
@@ -0,0 +1,27 @@
+// Replacement for malloc.h which factors out platform differences.
+
+#include <stdlib.h>
+#if defined(VGO_darwin)
+# include <malloc/malloc.h>
+#else
+# include <malloc.h>
+#endif
+
+#include <assert.h>
+
+// Allocates a 16-aligned block. Asserts if the allocation fails.
+__attribute__((unused))
+static void* memalign16(size_t szB)
+{
+ void* x;
+#if defined(VGO_darwin)
+ // Darwin lacks memalign, but its malloc is always 16-aligned anyway.
+ x = malloc(szB);
+#else
+ x = memalign(16, szB);
+#endif
+ assert(x);
+ assert(0 == ((16-1) & (unsigned long)x));
+ return x;
+}
+
Added: trunk/tests/sys_mman.h
===================================================================
--- trunk/tests/sys_mman.h (rev 0)
+++ trunk/tests/sys_mman.h 2009-04-15 05:35:00 UTC (rev 9544)
@@ -0,0 +1,31 @@
+// Replacement for sys/mman.h which factors out platform differences.
+
+#include <sys/mman.h>
+
+#if defined(VGO_darwin)
+# define MAP_ANONYMOUS MAP_ANON
+#endif
+
+
+#include <assert.h>
+#include <unistd.h>
+
+// Map a page, then unmap it, then return that address. That
+// guarantees to give an address which will fault when accessed,
+// without making any assumptions about the layout of the address
+// space.
+
+__attribute__((unused))
+static void* get_unmapped_page(void)
+{
+ void* ptr;
+ int r;
+ long pagesz = sysconf(_SC_PAGE_SIZE);
+ assert(pagesz == 4096 || pagesz == 65536);
+ ptr = mmap(0, pagesz, PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0);
+ assert(ptr != (void*)-1);
+ r = munmap(ptr, pagesz);
+ assert(r == 0);
+ return ptr;
+}
+
|
|
From: <sv...@va...> - 2009-04-15 05:27:39
|
Author: njn
Date: 2009-04-15 06:27:28 +0100 (Wed, 15 Apr 2009)
New Revision: 9543
Log:
Make xor-undef-x86 work on Darwin.
Modified:
branches/DARWIN/memcheck/tests/x86/xor-undef-x86.stderr.exp
branches/DARWIN/memcheck/tests/x86/xor-undef-x86.vgtest
Modified: branches/DARWIN/memcheck/tests/x86/xor-undef-x86.stderr.exp
===================================================================
--- branches/DARWIN/memcheck/tests/x86/xor-undef-x86.stderr.exp 2009-04-15 05:23:52 UTC (rev 9542)
+++ branches/DARWIN/memcheck/tests/x86/xor-undef-x86.stderr.exp 2009-04-15 05:27:28 UTC (rev 9543)
@@ -1,4 +1,3 @@
-
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (xor-undef-x86.c:17)
@@ -7,10 +6,3 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (xor-undef-x86.c:67)
-
-ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
-malloc/free: in use at exit: 0 bytes in 0 blocks.
-malloc/free: 1 allocs, 1 frees, 48 bytes allocated.
-For a detailed leak analysis, rerun with: --leak-check=yes
-For counts of detected errors, rerun with: -v
-Use --track-origins=yes to see where uninitialised values come from
Modified: branches/DARWIN/memcheck/tests/x86/xor-undef-x86.vgtest
===================================================================
--- branches/DARWIN/memcheck/tests/x86/xor-undef-x86.vgtest 2009-04-15 05:23:52 UTC (rev 9542)
+++ branches/DARWIN/memcheck/tests/x86/xor-undef-x86.vgtest 2009-04-15 05:27:28 UTC (rev 9543)
@@ -1,2 +1,3 @@
+vgopts: -q
prog: xor-undef-x86
prereq: ../../../tests/x86_amd64_features x86-sse
|
|
From: <sv...@va...> - 2009-04-15 05:24:04
|
Author: njn
Date: 2009-04-15 06:23:52 +0100 (Wed, 15 Apr 2009)
New Revision: 9542
Log:
Using -mdynamic-no-pic to compile all of Valgrind, except the preloaded shared
objects. (Most of the tests aren't compiled with it, though). This makes
things significantly faster in some cases, as shown by the vg_perf results:
-- bz2 --
bz2 ws5 :1.21s no: 4.5s ( 3.7x, -----) me:14.9s (12.4x, -----) ca:58.5s (48.3x, -----) ma: 4.8s ( 4.0x, -----)
bz2 ws4 :1.21s no: 4.5s ( 3.7x, 0.0%) me:15.3s (12.7x, -2.4%) ca:52.0s (43.0x, 11.1%) ma: 4.8s ( 3.9x, 1.9%)
-- fbench --
fbench ws5 :0.47s no: 2.8s ( 5.9x, -----) me:13.6s (28.9x, -----) ca:13.5s (28.7x, -----) ma: 2.6s ( 5.6x, -----)
fbench ws4 :0.47s no: 2.5s ( 5.2x, 12.2%) me:10.3s (22.0x, 23.7%) ca:12.5s (26.6x, 7.3%) ma: 2.5s ( 5.3x, 6.1%)
-- ffbench --
ffbench ws5 :0.33s no: 1.5s ( 4.6x, -----) me:11.5s (34.9x, -----) ca:14.0s (42.5x, -----) ma: 1.6s ( 4.8x, -----)
ffbench ws4 :0.33s no: 1.5s ( 4.6x, 0.7%) me: 7.2s (21.9x, 37.4%) ca:13.6s (41.2x, 3.2%) ma: 1.8s ( 5.5x,-13.8%)
-- heap --
heap ws5 :0.33s no: 2.7s ( 8.1x, -----) me:11.2s (33.9x, -----) ca:25.8s (78.0x, -----) ma:10.3s (31.4x, -----)
heap ws4 :0.33s no: 2.2s ( 6.6x, 18.3%) me:10.2s (30.9x, 9.0%) ca:24.1s (73.1x, 6.3%) ma: 8.7s (26.2x, 16.4%)
-- sarp --
sarp ws5 :0.05s no: 0.4s ( 8.6x, -----) me: 3.7s (73.6x, -----) ca: 3.7s (74.2x, -----) ma: 0.5s ( 9.2x, -----)
sarp ws4 :0.05s no: 0.4s ( 7.6x, 11.6%) me: 5.3s (106.0x,-44.0%) ca: 3.4s (68.0x, 8.4%) ma: 0.4s ( 8.8x, 4.3%)
-- tinycc --
tinycc ws5 :0.41s no: 3.7s ( 9.0x, -----) me:17.4s (42.3x, -----) ca:31.3s (76.4x, -----) ma: 5.3s (12.8x, -----)
tinycc ws4 :0.41s no: 3.5s ( 8.6x, 4.6%) me:17.1s (41.7x, 1.4%) ca:29.7s (72.4x, 5.2%) ma: 4.9s (11.9x, 7.4%)
I also used -mdynamic-no-pic on some of the previously-not-compiling asm
tests, and reverted a previous insn_*.c generator commit (r9315) to use %ebx
again.
Modified:
branches/DARWIN/Makefile.flags.am
branches/DARWIN/Makefile.tool.am
branches/DARWIN/coregrind/Makefile.am
branches/DARWIN/memcheck/Makefile.am
branches/DARWIN/memcheck/tests/x86/Makefile.am
branches/DARWIN/none/tests/x86/Makefile.am
branches/DARWIN/none/tests/x86/gen_insn_test.pl
branches/DARWIN/none/tests/x86/insn_basic.def
Modified: branches/DARWIN/Makefile.flags.am
===================================================================
--- branches/DARWIN/Makefile.flags.am 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/Makefile.flags.am 2009-04-15 05:23:52 UTC (rev 9542)
@@ -11,12 +11,11 @@
# stack traces, since users often see stack traces extending
# into (and through) the preloads.
if VGCONF_OS_IS_DARWIN
-AM_PIC_FLAG = -dynamic
+AM_CFLAGS_PIC = -dynamic -O -g -fno-omit-frame-pointer -fno-strict-aliasing -mno-dynamic-no-pic
else
-AM_PIC_FLAG = -fpic
+AM_CFLAGS_PIC = -fpic -O -g -fno-omit-frame-pointer -fno-strict-aliasing
endif
-AM_CFLAGS_PIC = $(AM_PIC_FLAG) -O -g -fno-omit-frame-pointer -fno-strict-aliasing
# Flags for specific targets.
# Nb: the AM_CPPFLAGS_* values are suitable for building tools and auxprogs.
@@ -81,7 +80,8 @@
-DVGO_darwin=1 \
-DVGP_x86_darwin=1
AM_CFLAGS_X86_DARWIN = $(WERROR) -arch i386 $(AM_CFLAGS_BASE) \
- -mmacosx-version-min=10.5 -fno-stack-protector
+ -mmacosx-version-min=10.5 -fno-stack-protector \
+ -mdynamic-no-pic
# GrP fixme -O0 for debugging goes here; -O3 crashes
# [Nb: that comment was from when we had -gstabs here instead of -g]
AM_CCASFLAGS_X86_DARWIN = $(add_includes_x86_darwin) -arch i386 -g -O0
Modified: branches/DARWIN/Makefile.tool.am
===================================================================
--- branches/DARWIN/Makefile.tool.am 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/Makefile.tool.am 2009-04-15 05:23:52 UTC (rev 9542)
@@ -156,7 +156,7 @@
TOOL_LDADD_X86_DARWIN = $(COREGRIND_LIBS_X86_DARWIN) $(TOOL_LDADD_COMMON)
TOOL_LDFLAGS_X86_DARWIN = \
- $(TOOL_LDFLAGS_COMMON_DARWIN) -arch i386 -mdynamic-no-pic \
+ $(TOOL_LDFLAGS_COMMON_DARWIN) -arch i386 \
-Wl,-seg1addr,0xf0080000 \
-Wl,-stack_addr,0xf0080000 -Wl,-stack_size,0x80000 \
-Wl,-pagezero_size,0xf0000000
Modified: branches/DARWIN/coregrind/Makefile.am
===================================================================
--- branches/DARWIN/coregrind/Makefile.am 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/coregrind/Makefile.am 2009-04-15 05:23:52 UTC (rev 9542)
@@ -485,37 +485,37 @@
libreplacemalloc_toolpreload_x86_linux_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_x86_linux_a_CPPFLAGS = $(AM_CPPFLAGS_X86_LINUX)
-libreplacemalloc_toolpreload_x86_linux_a_CFLAGS = $(AM_CFLAGS_X86_LINUX) -fpic -fno-omit-frame-pointer
+libreplacemalloc_toolpreload_x86_linux_a_CFLAGS = $(AM_CFLAGS_X86_LINUX) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_amd64_linux_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_amd64_linux_a_CPPFLAGS = $(AM_CPPFLAGS_AMD64_LINUX)
-libreplacemalloc_toolpreload_amd64_linux_a_CFLAGS = $(AM_CFLAGS_AMD64_LINUX) -fpic -fno-omit-frame-pointer
+libreplacemalloc_toolpreload_amd64_linux_a_CFLAGS = $(AM_CFLAGS_AMD64_LINUX) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_ppc32_linux_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_ppc32_linux_a_CPPFLAGS = $(AM_CPPFLAGS_PPC32_LINUX)
-libreplacemalloc_toolpreload_ppc32_linux_a_CFLAGS = $(AM_CFLAGS_PPC32_LINUX) -fpic -fno-omit-frame-pointer
+libreplacemalloc_toolpreload_ppc32_linux_a_CFLAGS = $(AM_CFLAGS_PPC32_LINUX) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_ppc64_linux_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_ppc64_linux_a_CPPFLAGS = $(AM_CPPFLAGS_PPC64_LINUX)
-libreplacemalloc_toolpreload_ppc64_linux_a_CFLAGS = $(AM_CFLAGS_PPC64_LINUX) -fpic -fno-omit-frame-pointer
+libreplacemalloc_toolpreload_ppc64_linux_a_CFLAGS = $(AM_CFLAGS_PPC64_LINUX) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_ppc32_aix5_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_ppc32_aix5_a_CPPFLAGS = $(AM_CPPFLAGS_PPC32_AIX5)
-libreplacemalloc_toolpreload_ppc32_aix5_a_CFLAGS = $(AM_CFLAGS_PPC32_AIX5) -fpic -fno-omit-frame-pointer
+libreplacemalloc_toolpreload_ppc32_aix5_a_CFLAGS = $(AM_CFLAGS_PPC32_AIX5) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_ppc32_aix5_a_AR = $(AR) -X32 cru
libreplacemalloc_toolpreload_ppc64_aix5_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_ppc64_aix5_a_CPPFLAGS = $(AM_CPPFLAGS_PPC64_AIX5)
-libreplacemalloc_toolpreload_ppc64_aix5_a_CFLAGS = $(AM_CFLAGS_PPC64_AIX5) -fpic -fno-omit-frame-pointer
+libreplacemalloc_toolpreload_ppc64_aix5_a_CFLAGS = $(AM_CFLAGS_PPC64_AIX5) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_ppc64_aix5_a_AR = $(AR) -X64 cru
libreplacemalloc_toolpreload_x86_darwin_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_x86_darwin_a_CPPFLAGS = $(AM_CPPFLAGS_X86_DARWIN)
-libreplacemalloc_toolpreload_x86_darwin_a_CFLAGS = $(AM_CFLAGS_X86_DARWIN)
+libreplacemalloc_toolpreload_x86_darwin_a_CFLAGS = $(AM_CFLAGS_X86_DARWIN) $(AM_CFLAGS_PIC)
libreplacemalloc_toolpreload_amd64_darwin_a_SOURCES = m_replacemalloc/vg_replace_malloc.c
libreplacemalloc_toolpreload_amd64_darwin_a_CPPFLAGS = $(AM_CPPFLAGS_AMD64_DARWIN)
-libreplacemalloc_toolpreload_amd64_darwin_a_CFLAGS = $(AM_CFLAGS_AMD64_DARWIN)
+libreplacemalloc_toolpreload_amd64_darwin_a_CFLAGS = $(AM_CFLAGS_AMD64_DARWIN) $(AM_CFLAGS_PIC)
m_dispatch/dispatch-x86-linux.S: libvex_guest_offsets.h
m_dispatch/dispatch-amd64-linux.S: libvex_guest_offsets.h
Modified: branches/DARWIN/memcheck/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/Makefile.am 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/memcheck/Makefile.am 2009-04-15 05:23:52 UTC (rev 9542)
@@ -161,7 +161,7 @@
memcheck_x86_darwin_SOURCES = $(MEMCHECK_SOURCES_COMMON)
memcheck_x86_darwin_CPPFLAGS = $(AM_CPPFLAGS_X86_DARWIN)
-memcheck_x86_darwin_CFLAGS = $(AM_CFLAGS_X86_DARWIN) -O2 -mdynamic-no-pic
+memcheck_x86_darwin_CFLAGS = $(AM_CFLAGS_X86_DARWIN) -O2
memcheck_x86_darwin_CCASFLAGS = $(AM_CCASFLAGS_X86_DARWIN)
memcheck_x86_darwin_DEPENDENCIES = $(COREGRIND_LIBS_X86_DARWIN)
memcheck_x86_darwin_LDADD = $(TOOL_LDADD_X86_DARWIN)
Modified: branches/DARWIN/memcheck/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/memcheck/tests/x86/Makefile.am 2009-04-15 05:23:52 UTC (rev 9542)
@@ -32,6 +32,7 @@
fprem \
fxsave \
pushfw_x86 \
+ pushpopmem \
sse_memory \
xor-undef-x86
@@ -42,7 +43,6 @@
int3-x86 \
more_x86_fp \
pushfpopf \
- pushpopmem \
tronical
endif
@@ -50,9 +50,11 @@
AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CCASFLAGS = @FLAG_M32@
-# must be built with these flags -- bug only occurred with them
+
+# fpeflags must use these flags -- bug only occurred with them.
fpeflags_CFLAGS = $(AM_CFLAGS) -march=i686
pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.s
+pushpopmem_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
tronical_SOURCES = tronical.S
more_x86_fp_LDADD = -lm
Modified: branches/DARWIN/none/tests/x86/Makefile.am
===================================================================
--- branches/DARWIN/none/tests/x86/Makefile.am 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/none/tests/x86/Makefile.am 2009-04-15 05:23:52 UTC (rev 9542)
@@ -26,8 +26,7 @@
bug132813-x86.stderr.exp bug132813-x86.stdout.exp bug132813-x86.vgtest \
bug135421-x86.stderr.exp bug135421-x86.stdout.exp bug135421-x86.vgtest \
bug137714-x86.stderr.exp bug137714-x86.stdout.exp bug137714-x86.vgtest \
- bug152818-x86.vgtest bug152818-x86.stdout.exp \
- bug152818-x86.stderr.exp \
+ bug152818-x86.stderr.exp bug152818-x86.stdout.exp bug152818-x86.vgtest \
cmpxchg8b.stderr.exp cmpxchg8b.stdout.exp cmpxchg8b.vgtest \
cpuid.stderr.exp cpuid.stdout.exp cpuid.vgtest \
cse_fail.stderr.exp cse_fail.stdout.exp cse_fail.vgtest \
@@ -62,9 +61,11 @@
bt_everything \
bt_literal \
bug126147-x86 \
+ bug125959-x86 \
bug132813-x86 \
bug135421-x86 \
bug137714-x86 \
+ bug152818-x86 \
cmpxchg8b \
cse_fail \
fcmovnu \
@@ -90,8 +91,6 @@
# be moved into x86-linux/.
if ! VGCONF_OS_IS_DARWIN
check_PROGRAMS += \
- bug125959-x86 \
- bug152818-x86 \
cpuid \
faultstatus \
seg_override \
@@ -102,10 +101,17 @@
AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE)
AM_CCASFLAGS = @FLAG_M32@
+# Some of the tests (bug125959_x86, bug152818_x86, insn_*) need
+# -mdynamic-no-pic. I tried setting *_CFLAGS separately for all of them,
+# but it caused problems with the generation of insn_*.c. So just use this
+# crude approach of setting -mdynamic-no-pic for all tests in this
+# directory.
+if VGCONF_OS_IS_DARWIN
+AM_CFLAGS += -mdynamic-no-pic
+endif
-# generic C ones
cpuid_SOURCES = cpuid_c.c cpuid_s.s
-# fpu_lazy_eflags must use these flags -- the bug only occurred with them
+# fpu_lazy_eflags must use these flags -- the bug only occurred with them.
fpu_lazy_eflags_CFLAGS = @FLAG_M32@ -O2 -march=pentiumpro
fxtract_LDADD = -lm
insn_basic_SOURCES = insn_basic.def
@@ -124,6 +130,8 @@
insn_sse2_LDADD = -lm
insn_sse3_SOURCES = insn_sse3.def
insn_sse3_LDADD = -lm
+insn_ssse3_SOURCES = insn_ssse3.def
+insn_ssse3_LDADD = -lm
yield_LDADD = -lpthread
.def.c: $(srcdir)/gen_insn_test.pl
Modified: branches/DARWIN/none/tests/x86/gen_insn_test.pl
===================================================================
--- branches/DARWIN/none/tests/x86/gen_insn_test.pl 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/none/tests/x86/gen_insn_test.pl 2009-04-15 05:23:52 UTC (rev 9542)
@@ -48,36 +48,34 @@
);
our %RegNums = (
- # We avoid using %ebx and %bx because %ebx is the PIC
- # register on Darwin and so cannot be clobbered.
al => 0, ax => 0, eax => 0,
- cl => 1, cx => 1, ecx => 1,
- dl => 2, dx => 2, edx => 2,
- bl => 3, si => 3, esi => 3,
+ bl => 1, bx => 1, ebx => 1,
+ cl => 2, cx => 2, ecx => 2,
+ dl => 3, dx => 3, edx => 3,
ah => 4,
- ch => 5,
- dh => 6,
- bh => 7,
+ bh => 5,
+ ch => 6,
+ dh => 7,
st0 => 0, st1 => 1, st2 => 2, st3 => 3,
st4 => 4, st5 => 5, st6 => 6, st7 => 7
);
our %RegTypes = (
al => "r8", ah => "r8", ax => "r16", eax => "r32",
+ bl => "r8", bh => "r8", bx => "r16", ebx => "r32",
cl => "r8", ch => "r8", cx => "r16", ecx => "r32",
- dl => "r8", dh => "r8", dx => "r16", edx => "r32",
- bl => "r8", bh => "r8", si => "r16", esi => "r32"
+ dl => "r8", dh => "r8", dx => "r16", edx => "r32"
);
our @IntRegs = (
{ r8 => "al", r16 => "ax", r32 => "eax" },
+ { r8 => "bl", r16 => "bx", r32 => "ebx" },
{ r8 => "cl", r16 => "cx", r32 => "ecx" },
{ r8 => "dl", r16 => "dx", r32 => "edx" },
- { r8 => "bl", r16 => "si", r32 => "esi" },
{ r8 => "ah" },
+ { r8 => "bh" },
{ r8 => "ch" },
- { r8 => "dh" },
- { r8 => "bh" }
+ { r8 => "dh" }
);
print <<EOF;
@@ -330,7 +328,7 @@
{
my $name = "arg$argc";
- if ($arg =~ /^([abcd]l|[abcd]x|e[abcd]x|si|esi|r8|r16|r32|mm|xmm|m8|m16|m32|m64|m128)\.(sb|ub|sw|uw|sd|ud|sq|uq|ps|pd)\[([^\]]+)\]$/)
+ if ($arg =~ /^([abcd]l|[abcd]x|e[abcd]x|r8|r16|r32|mm|xmm|m8|m16|m32|m64|m128)\.(sb|ub|sw|uw|sd|ud|sq|uq|ps|pd)\[([^\]]+)\]$/)
{
my $type = $RegTypes{$1} || $1;
my $regnum = $RegNums{$1};
Modified: branches/DARWIN/none/tests/x86/insn_basic.def
===================================================================
--- branches/DARWIN/none/tests/x86/insn_basic.def 2009-04-15 03:57:25 UTC (rev 9541)
+++ branches/DARWIN/none/tests/x86/insn_basic.def 2009-04-15 05:23:52 UTC (rev 9542)
@@ -20,8 +20,8 @@
###aas eflags[0x11,0x10] al.ub[0xf] ah.ub[0x2] : => al.ub[0x9] ah.ub[0x01] eflags[0x11,0x11]
adcb eflags[0x1,0x0] : imm8[12] al.ub[34] => 1.ub[46]
adcb eflags[0x1,0x1] : imm8[12] al.ub[34] => 1.ub[47]
-adcb eflags[0x1,0x0] : imm8[12] cl.ub[34] => 1.ub[46]
-adcb eflags[0x1,0x1] : imm8[12] cl.ub[34] => 1.ub[47]
+adcb eflags[0x1,0x0] : imm8[12] bl.ub[34] => 1.ub[46]
+adcb eflags[0x1,0x1] : imm8[12] bl.ub[34] => 1.ub[47]
adcb eflags[0x1,0x0] : imm8[12] m8.ub[34] => 1.ub[46]
adcb eflags[0x1,0x1] : imm8[12] m8.ub[34] => 1.ub[47]
adcb eflags[0x1,0x0] : r8.ub[12] r8.ub[34] => 1.ub[46]
@@ -34,8 +34,8 @@
adcw eflags[0x1,0x1] : imm8[12] r16.uw[3456] => 1.uw[3469]
adcw eflags[0x1,0x0] : imm16[1234] ax.uw[5678] => 1.uw[6912]
adcw eflags[0x1,0x1] : imm16[1234] ax.uw[5678] => 1.uw[6913]
-adcw eflags[0x1,0x0] : imm16[1234] si.uw[5678] => 1.uw[6912]
-adcw eflags[0x1,0x1] : imm16[1234] si.uw[5678] => 1.uw[6913]
+adcw eflags[0x1,0x0] : imm16[1234] bx.uw[5678] => 1.uw[6912]
+adcw eflags[0x1,0x1] : imm16[1234] bx.uw[5678] => 1.uw[6913]
adcw eflags[0x1,0x0] : imm16[1234] m16.uw[5678] => 1.uw[6912]
adcw eflags[0x1,0x1] : imm16[1234] m16.uw[5678] => 1.uw[6913]
adcw eflags[0x1,0x0] : r16.uw[1234] r16.uw[5678] => 1.uw[6912]
@@ -48,8 +48,8 @@
adcl eflags[0x1,0x1] : imm8[12] r32.ud[87654321] => 1.ud[87654334]
adcl eflags[0x1,0x0] : imm32[12345678] eax.ud[87654321] => 1.ud[99999999]
adcl eflags[0x1,0x1] : imm32[12345678] eax.ud[87654321] => 1.ud[100000000]
-adcl eflags[0x1,0x0] : imm32[12345678] esi.ud[87654321] => 1.ud[99999999]
-adcl eflags[0x1,0x1] : imm32[12345678] esi.ud[87654321] => 1.ud[100000000]
+adcl eflags[0x1,0x0] : imm32[12345678] ebx.ud[87654321] => 1.ud[99999999]
+adcl eflags[0x1,0x1] : imm32[12345678] ebx.ud[87654321] => 1.ud[100000000]
adcl eflags[0x1,0x0] : imm32[12345678] m32.ud[87654321] => 1.ud[99999999]
adcl eflags[0x1,0x1] : imm32[12345678] m32.ud[87654321] => 1.ud[100000000]
adcl eflags[0x1,0x0] : r32.ud[12345678] r32.ud[87654321] => 1.ud[99999999]
@@ -59,41 +59,41 @@
adcl eflags[0x1,0x0] : m32.ud[12345678] r32.ud[87654321] => 1.ud[99999999]
adcl eflags[0x1,0x1] : m32.ud[12345678] r32.ud[87654321] => 1.ud[100000000]
addb imm8[12] al.ub[34] => 1.ub[46]
-addb imm8[12] cl.ub[34] => 1.ub[46]
+addb imm8[12] bl.ub[34] => 1.ub[46]
addb imm8[12] m8.ub[34] => 1.ub[46]
addb r8.ub[12] r8.ub[34] => 1.ub[46]
addb r8.ub[12] m8.ub[34] => 1.ub[46]
addb m8.ub[12] r8.ub[34] => 1.ub[46]
addw imm8[12] r16.uw[3456] => 1.uw[3468]
addw imm16[1234] ax.uw[5678] => 1.uw[6912]
-addw imm16[1234] si.uw[5678] => 1.uw[6912]
+addw imm16[1234] bx.uw[5678] => 1.uw[6912]
addw imm16[1234] m16.uw[5678] => 1.uw[6912]
addw r16.uw[1234] r16.uw[5678] => 1.uw[6912]
addw r16.uw[1234] m16.uw[5678] => 1.uw[6912]
addw m16.uw[1234] r16.uw[5678] => 1.uw[6912]
addl imm8[12] r32.ud[87654321] => 1.ud[87654333]
addl imm32[12345678] eax.ud[87654321] => 1.ud[99999999]
-addl imm32[12345678] esi.ud[87654321] => 1.ud[99999999]
+addl imm32[12345678] ebx.ud[87654321] => 1.ud[99999999]
addl imm32[12345678] m32.ud[87654321] => 1.ud[99999999]
addl r32.ud[12345678] r32.ud[87654321] => 1.ud[99999999]
addl r32.ud[12345678] m32.ud[87654321] => 1.ud[99999999]
addl m32.ud[12345678] r32.ud[87654321] => 1.ud[99999999]
andb imm8[0x34] al.ub[0x56] => 1.ub[0x14]
-andb imm8[0x34] cl.ub[0x56] => 1.ub[0x14]
+andb imm8[0x34] bl.ub[0x56] => 1.ub[0x14]
andb imm8[0x34] m8.ub[0x56] => 1.ub[0x14]
andb r8.ub[0x34] r8.ub[0x56] => 1.ub[0x14]
andb r8.ub[0x34] m8.ub[0x56] => 1.ub[0x14]
andb m8.ub[0x34] r8.ub[0x56] => 1.ub[0x14]
andw imm8[0x31] r16.uw[0x1234] => 1.uw[0x0030]
andw imm16[0x4231] ax.uw[0x1234] => 1.uw[0x0230]
-andw imm16[0x4231] si.uw[0x1234] => 1.uw[0x0230]
+andw imm16[0x4231] bx.uw[0x1234] => 1.uw[0x0230]
andw imm16[0x4231] m16.uw[0x1234] => 1.uw[0x0230]
andw r16.uw[0x4231] r16.uw[0x1234] => 1.uw[0x0230]
andw r16.uw[0x4231] m16.uw[0x1234] => 1.uw[0x0230]
andw m16.uw[0x4231] r16.uw[0x1234] => 1.uw[0x0230]
andl imm8[0x31] r32.ud[0x12345678] => 1.ud[0x00000030]
andl imm32[0x86427531] eax.ud[0x12345678] => 1.ud[0x02005430]
-andl imm32[0x86427531] esi.ud[0x12345678] => 1.ud[0x02005430]
+andl imm32[0x86427531] ebx.ud[0x12345678] => 1.ud[0x02005430]
andl imm32[0x86427531] m32.ud[0x12345678] => 1.ud[0x02005430]
andl r32.ud[0x86427531] r32.ud[0x12345678] => 1.ud[0x02005430]
andl r32.ud[0x86427531] m32.ud[0x12345678] => 1.ud[0x02005430]
@@ -514,21 +514,21 @@
notl r32.ud[0xff00f0ca] => 0.ud[0x00ff0f35]
notl m32.ud[0xff00f0ca] => 0.ud[0x00ff0f35]
orb imm8[0x34] al.ub[0x56] => 1.ub[0x76]
-orb imm8[0x34] cl.ub[0x56] => 1.ub[0x76]
+orb imm8[0x34] bl.ub[0x56] => 1.ub[0x76]
orb imm8[0x34] m8.ub[0x56] => 1.ub[0x76]
orb r8.ub[0x34] r8.ub[0x56] => 1.ub[0x76]
orb r8.ub[0x34] m8.ub[0x56] => 1.ub[0x76]
orb m8.ub[0x34] r8.ub[0x56] => 1.ub[0x76]
orw imm8[0x31] r16.uw[0x1234] => 1.uw[0x1235]
orw imm16[0x4231] ax.uw[0x1234] => 1.uw[0x5235]
-orw imm16[0x4231] si.uw[0x1234] => 1.uw[0x5235]
+orw imm16[0x4231] bx.uw[0x1234] => 1.uw[0x5235]
orw imm16[0x4231] m16.uw[0x1234] => 1.uw[0x5235]
orw r16.uw[0x4231] r16.uw[0x1234] => 1.uw[0x5235]
orw r16.uw[0x4231] m16.uw[0x1234] => 1.uw[0x5235]
orw m16.uw[0x4231] r16.uw[0x1234] => 1.uw[0x5235]
orl imm8[0x31] r32.ud[0x12345678] => 1.ud[0x12345679]
orl imm32[0x86427531] eax.ud[0x12345678] => 1.ud[0x96767779]
-orl imm32[0x86427531] esi.ud[0x12345678] => 1.ud[0x96767779]
+orl imm32[0x86427531] ebx.ud[0x12345678] => 1.ud[0x96767779]
orl imm32[0x86427531] m32.ud[0x12345678] => 1.ud[0x96767779]
orl r32.ud[0x86427531] r32.ud[0x12345678] => 1.ud[0x96767779]
orl r32.ud[0x86427531] m32.ud[0x12345678] => 1.ud[0x96767779]
@@ -645,8 +645,8 @@
sarl cl.ub[8] m32.ud[0xff00f0ca] => 1.ud[0xffff00f0]
sbbb eflags[0x1,0x0] : imm8[12] al.ub[34] => 1.ub[22]
sbbb eflags[0x1,0x1] : imm8[12] al.ub[34] => 1.ub[21]
-sbbb eflags[0x1,0x0] : imm8[12] cl.ub[34] => 1.ub[22]
-sbbb eflags[0x1,0x1] : imm8[12] cl.ub[34] => 1.ub[21]
+sbbb eflags[0x1,0x0] : imm8[12] bl.ub[34] => 1.ub[22]
+sbbb eflags[0x1,0x1] : imm8[12] bl.ub[34] => 1.ub[21]
sbbb eflags[0x1,0x0] : imm8[12] m8.ub[34] => 1.ub[22]
sbbb eflags[0x1,0x1] : imm8[12] m8.ub[34] => 1.ub[21]
sbbb eflags[0x1,0x0] : r8.ub[12] r8.ub[34] => 1.ub[22]
@@ -659,8 +659,8 @@
sbbw eflags[0x1,0x1] : imm8[12] r16.uw[3456] => 1.uw[3443]
sbbw eflags[0x1,0x0] : imm16[1234] ax.uw[5678] => 1.uw[4444]
sbbw eflags[0x1,0x1] : imm16[1234] ax.uw[5678] => 1.uw[4443]
-sbbw eflags[0x1,0x0] : imm16[1234] si.uw[5678] => 1.uw[4444]
-sbbw eflags[0x1,0x1] : imm16[1234] si.uw[5678] => 1.uw[4443]
+sbbw eflags[0x1,0x0] : imm16[1234] bx.uw[5678] => 1.uw[4444]
+sbbw eflags[0x1,0x1] : imm16[1234] bx.uw[5678] => 1.uw[4443]
sbbw eflags[0x1,0x0] : imm16[1234] m16.uw[5678] => 1.uw[4444]
sbbw eflags[0x1,0x1] : imm16[1234] m16.uw[5678] => 1.uw[4443]
sbbw eflags[0x1,0x0] : r16.uw[1234] r16.uw[5678] => 1.uw[4444]
@@ -673,8 +673,8 @@
sbbl eflags[0x1,0x1] : imm8[12] r32.ud[87654321] => 1.ud[87654308]
sbbl eflags[0x1,0x0] : imm32[12345678] eax.ud[87654321] => 1.ud[75308643]
sbbl eflags[0x1,0x1] : imm32[12345678] eax.ud[87654321] => 1.ud[75308642]
-sbbl eflags[0x1,0x0] : imm32[12345678] esi.ud[87654321] => 1.ud[75308643]
-sbbl eflags[0x1,0x1] : imm32[12345678] esi.ud[87654321] => 1.ud[75308642]
+sbbl eflags[0x1,0x0] : imm32[12345678] ebx.ud[87654321] => 1.ud[75308643]
+sbbl eflags[0x1,0x1] : imm32[12345678] ebx.ud[87654321] => 1.ud[75308642]
sbbl eflags[0x1,0x0] : imm32[12345678] m32.ud[87654321] => 1.ud[75308643]
sbbl eflags[0x1,0x1] : imm32[12345678] m32.ud[87654321] => 1.ud[75308642]
sbbl eflags[0x1,0x0] : r32.ud[12345678] r32.ud[87654321] => 1.ud[75308643]
@@ -948,14 +948,14 @@
std eflags[0x400,0x000] : => eflags[0x400,0x400]
std eflags[0x400,0x400] : => eflags[0x400,0x400]
subb imm8[12] al.ub[34] => 1.ub[22]
-subb imm8[12] cl.ub[34] => 1.ub[22]
+subb imm8[12] bl.ub[34] => 1.ub[22]
subb imm8[12] m8.ub[34] => 1.ub[22]
subb r8.ub[12] r8.ub[34] => 1.ub[22]
subb r8.ub[12] m8.ub[34] => 1.ub[22]
subb m8.ub[12] r8.ub[34] => 1.ub[22]
subw imm8[12] r16.uw[3456] => 1.uw[3444]
subw imm16[1234] ax.uw[5678] => 1.uw[4444]
-subw imm16[1234] si.uw[5678] => 1.uw[4444]
+subw imm16[1234] bx.uw[5678] => 1.uw[4444]
subw imm16[1234] m16.uw[5678] => 1.uw[4444]
subw r16.uw[1234] r16.uw[5678] => 1.uw[4444]
subw r16.uw[1234] m16.uw[5678] => 1.uw[4444]
@@ -963,7 +963,7 @@
subl imm8[12] r32.ud[87654321] => 1.ud[87654309]
subl imm32[12345678] r32.ud[87654321] => 1.ud[75308643]
subl imm32[12345678] eax.ud[87654321] => 1.ud[75308643]
-subl imm32[12345678] esi.ud[87654321] => 1.ud[75308643]
+subl imm32[12345678] ebx.ud[87654321] => 1.ud[75308643]
subl r32.ud[12345678] r32.ud[87654321] => 1.ud[75308643]
subl r32.ud[12345678] m32.ud[87654321] => 1.ud[75308643]
subl m32.ud[12345678] r32.ud[87654321] => 1.ud[75308643]
@@ -972,11 +972,11 @@
testb imm8[0x1a] al.ub[0xa1] => eflags[0x8c5,0x044]
testb imm8[0xa1] al.ub[0xa1] => eflags[0x8c5,0x080]
testb imm8[0xa5] al.ub[0xa5] => eflags[0x8c5,0x084]
-testb imm8[0x1a] cl.ub[0x1a] => eflags[0x8c5,0x000]
-testb imm8[0x5a] cl.ub[0x5a] => eflags[0x8c5,0x004]
-testb imm8[0x1a] cl.ub[0xa1] => eflags[0x8c5,0x044]
-testb imm8[0xa1] cl.ub[0xa1] => eflags[0x8c5,0x080]
-testb imm8[0xa5] cl.ub[0xa5] => eflags[0x8c5,0x084]
+testb imm8[0x1a] bl.ub[0x1a] => eflags[0x8c5,0x000]
+testb imm8[0x5a] bl.ub[0x5a] => eflags[0x8c5,0x004]
+testb imm8[0x1a] bl.ub[0xa1] => eflags[0x8c5,0x044]
+testb imm8[0xa1] bl.ub[0xa1] => eflags[0x8c5,0x080]
+testb imm8[0xa5] bl.ub[0xa5] => eflags[0x8c5,0x084]
testb imm8[0x1a] m8.ub[0x1a] => eflags[0x8c5,0x000]
testb imm8[0x5a] m8.ub[0x5a] => eflags[0x8c5,0x004]
testb imm8[0x1a] m8.ub[0xa1] => eflags[0x8c5,0x044]
@@ -997,11 +997,11 @@
testw imm16[0x1a1a] ax.uw[0xa1a1] => eflags[0x8c5,0x044]
testw imm16[0xa1a1] ax.uw[0xa1a1] => eflags[0x8c5,0x080]
testw imm16[0xa5a5] ax.uw[0xa5a5] => eflags[0x8c5,0x084]
-testw imm16[0x1a1a] si.uw[0x1a1a] => eflags[0x8c5,0x000]
-testw imm16[0x5a5a] si.uw[0x5a5a] => eflags[0x8c5,0x004]
-testw imm16[0x1a1a] si.uw[0xa1a1] => eflags[0x8c5,0x044]
-testw imm16[0xa1a1] si.uw[0xa1a1] => eflags[0x8c5,0x080]
-testw imm16[0xa5a5] si.uw[0xa5a5] => eflags[0x8c5,0x084]
+testw imm16[0x1a1a] bx.uw[0x1a1a] => eflags[0x8c5,0x000]
+testw imm16[0x5a5a] bx.uw[0x5a5a] => eflags[0x8c5,0x004]
+testw imm16[0x1a1a] bx.uw[0xa1a1] => eflags[0x8c5,0x044]
+testw imm16[0xa1a1] bx.uw[0xa1a1] => eflags[0x8c5,0x080]
+testw imm16[0xa5a5] bx.uw[0xa5a5] => eflags[0x8c5,0x084]
testw imm16[0x1a1a] m16.uw[0x1a1a] => eflags[0x8c5,0x000]
testw imm16[0x5a5a] m16.uw[0x5a5a] => eflags[0x8c5,0x004]
testw imm16[0x1a1a] m16.uw[0xa1a1] => eflags[0x8c5,0x044]
@@ -1022,11 +1022,11 @@
testl imm32[0x1a1a1a1a] eax.ud[0xa1a1a1a1] => eflags[0x8c5,0x044]
testl imm32[0xa1a1a1a1] eax.ud[0xa1a1a1a1] => eflags[0x8c5,0x080]
testl imm32[0xa5a5a5a5] eax.ud[0xa5a5a5a5] => eflags[0x8c5,0x084]
-testl imm32[0x1a1a1a1a] esi.ud[0x1a1a1a1a] => eflags[0x8c5,0x000]
-testl imm32[0x5a5a5a5a] esi.ud[0x5a5a5a5a] => eflags[0x8c5,0x004]
-testl imm32[0x1a1a1a1a] esi.ud[0xa1a1a1a1] => eflags[0x8c5,0x044]
-testl imm32[0xa1a1a1a1] esi.ud[0xa1a1a1a1] => eflags[0x8c5,0x080]
-testl imm32[0xa5a5a5a5] esi.ud[0xa5a5a5a5] => eflags[0x8c5,0x084]
+testl imm32[0x1a1a1a1a] ebx.ud[0x1a1a1a1a] => eflags[0x8c5,0x000]
+testl imm32[0x5a5a5a5a] ebx.ud[0x5a5a5a5a] => eflags[0x8c5,0x004]
+testl imm32[0x1a1a1a1a] ebx.ud[0xa1a1a1a1] => eflags[0x8c5,0x044]
+testl imm32[0xa1a1a1a1] ebx.ud[0xa1a1a1a1] => eflags[0x8c5,0x080]
+testl imm32[0xa5a5a5a5] ebx.ud[0xa5a5a5a5] => eflags[0x8c5,0x084]
testl imm32[0x1a1a1a1a] m32.ud[0x1a1a1a1a] => eflags[0x8c5,0x000]
testl imm32[0x5a5a5a5a] m32.ud[0x5a5a5a5a] => eflags[0x8c5,0x004]
testl imm32[0x1a1a1a1a] m32.ud[0xa1a1a1a1] => eflags[0x8c5,0x044]
@@ -1051,32 +1051,32 @@
xchgb r8.ub[12] r8.ub[34] => 0.ub[34] 1.ub[12]
xchgb r8.ub[12] m8.ub[34] => 0.ub[34] 1.ub[12]
xchgb m8.ub[12] r8.ub[34] => 0.ub[34] 1.ub[12]
-xchgw ax.uw[1234] si.uw[5678] => 0.uw[5678] 1.uw[1234]
-xchgw si.uw[1234] ax.uw[5678] => 0.uw[5678] 1.uw[1234]
+xchgw ax.uw[1234] bx.uw[5678] => 0.uw[5678] 1.uw[1234]
+xchgw bx.uw[1234] ax.uw[5678] => 0.uw[5678] 1.uw[1234]
xchgw ax.uw[1234] cx.uw[5678] => 0.uw[5678] 1.uw[1234]
xchgw r16.uw[1234] m16.uw[5678] => 0.uw[5678] 1.uw[1234]
xchgw m16.uw[1234] r16.uw[5678] => 0.uw[5678] 1.uw[1234]
-xchgl eax.ud[12345678] esi.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
-xchgl esi.ud[12345678] eax.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
-xchgl esi.ud[12345678] ecx.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
+xchgl eax.ud[12345678] ebx.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
+xchgl ebx.ud[12345678] eax.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
+xchgl ebx.ud[12345678] ecx.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
xchgl r32.ud[12345678] m32.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
xchgl m32.ud[12345678] r32.ud[87654321] => 0.ud[87654321] 1.ud[12345678]
xorb imm8[0x34] al.ub[0x56] => 1.ub[0x62]
-xorb imm8[0x34] cl.ub[0x56] => 1.ub[0x62]
+xorb imm8[0x34] bl.ub[0x56] => 1.ub[0x62]
xorb imm8[0x34] m8.ub[0x56] => 1.ub[0x62]
xorb r8.ub[0x34] r8.ub[0x56] => 1.ub[0x62]
xorb r8.ub[0x34] m8.ub[0x56] => 1.ub[0x62]
xorb m8.ub[0x34] r8.ub[0x56] => 1.ub[0x62]
xorw imm8[0x31] r16.uw[0x1234] => 1.uw[0x1205]
xorw imm16[0x4231] ax.uw[0x1234] => 1.uw[0x5005]
-xorw imm16[0x4231] si.uw[0x1234] => 1.uw[0x5005]
+xorw imm16[0x4231] bx.uw[0x1234] => 1.uw[0x5005]
xorw imm16[0x4231] m16.uw[0x1234] => 1.uw[0x5005]
xorw r16.uw[0x4231] r16.uw[0x1234] => 1.uw[0x5005]
xorw r16.uw[0x4231] m16.uw[0x1234] => 1.uw[0x5005]
xorw m16.uw[0x4231] r16.uw[0x1234] => 1.uw[0x5005]
xorl imm8[0x31] r32.ud[0x12345678] => 1.ud[0x12345649]
xorl imm32[0x86427531] eax.ud[0x12345678] => 1.ud[0x94762349]
-xorl imm32[0x86427531] esi.ud[0x12345678] => 1.ud[0x94762349]
+xorl imm32[0x86427531] ebx.ud[0x12345678] => 1.ud[0x94762349]
xorl imm32[0x86427531] m32.ud[0x12345678] => 1.ud[0x94762349]
xorl r32.ud[0x86427531] r32.ud[0x12345678] => 1.ud[0x94762349]
xorl r32.ud[0x86427531] m32.ud[0x12345678] => 1.ud[0x94762349]
|
|
From: Vince W. <vi...@cs...> - 2009-04-15 04:53:45
|
Hello current valgrind SVN fails with the following error for me: gcc -m64 -g -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -c -o libcoregrind_amd64_linux_a-m_cpuid.o test -f 'm_cpuid.S' || echo './'m_cpuid.S In file included from m_cpuid.S:31: pub_core_basics_asm.h:42:33: error: pub_tool_basics_asm.h: No such file or directory pub_core_basics_asm.h:45:20: error: config.h: No such file or directory make[3]: *** [libcoregrind_amd64_linux_a-m_cpuid.o] Error 1 make[3]: Leaving directory /fusion/research4/vince/valgrind/svn/valgrind/coregrind' I've bisected this down, the error was introduced at revision 9108 which re-organized how the includes are set up. I'm not sure what the best way to fix this is; a straight revert would probably fix it, but the proper fix is probably fixing Makefile.core.am to handle the includes properly. Vince |
|
From: <sv...@va...> - 2009-04-15 03:57:28
|
Author: njn
Date: 2009-04-15 04:57:25 +0100 (Wed, 15 Apr 2009)
New Revision: 9541
Log:
Merge r9539 (fix for #189054) from the trunk.
Modified:
branches/DARWIN/coregrind/m_libcassert.c
Modified: branches/DARWIN/coregrind/m_libcassert.c
===================================================================
--- branches/DARWIN/coregrind/m_libcassert.c 2009-04-15 03:56:49 UTC (rev 9540)
+++ branches/DARWIN/coregrind/m_libcassert.c 2009-04-15 03:57:25 UTC (rev 9541)
@@ -47,8 +47,8 @@
#if defined(VGP_x86_linux) || defined(VGP_x86_darwin)
# define GET_REAL_PC_SP_AND_FP(pc, sp, fp) \
- asm("call m_libcassert_get_ip;" \
- "m_libcassert_get_ip: popl %0;" \
+ asm("call 0f;" \
+ "0: popl %0;" \
"movl %%esp, %1;" \
"movl %%ebp, %2;" \
: "=r" (pc),\
|
|
From: <sv...@va...> - 2009-04-15 03:56:53
|
Author: njn
Date: 2009-04-15 04:56:49 +0100 (Wed, 15 Apr 2009)
New Revision: 9540
Log:
Merge r9539 (fix for #189054) from the trunk.
Modified:
branches/VALGRIND_3_4_BRANCH/coregrind/m_libcassert.c
Modified: branches/VALGRIND_3_4_BRANCH/coregrind/m_libcassert.c
===================================================================
--- branches/VALGRIND_3_4_BRANCH/coregrind/m_libcassert.c 2009-04-15 03:55:41 UTC (rev 9539)
+++ branches/VALGRIND_3_4_BRANCH/coregrind/m_libcassert.c 2009-04-15 03:56:49 UTC (rev 9540)
@@ -47,8 +47,8 @@
#if defined(VGP_x86_linux)
# define GET_REAL_PC_SP_AND_FP(pc, sp, fp) \
- asm("call m_libcassert_get_ip;" \
- "m_libcassert_get_ip: popl %0;" \
+ asm("call 0f;" \
+ "0: popl %0;" \
"movl %%esp, %1;" \
"movl %%ebp, %2;" \
: "=r" (pc),\
|
|
From: <sv...@va...> - 2009-04-15 03:55:46
|
Author: njn
Date: 2009-04-15 04:55:41 +0100 (Wed, 15 Apr 2009)
New Revision: 9539
Log:
Avoid non-local asm labels. Fixes bug #189054.
Modified:
trunk/coregrind/m_libcassert.c
Modified: trunk/coregrind/m_libcassert.c
===================================================================
--- trunk/coregrind/m_libcassert.c 2009-04-15 03:49:44 UTC (rev 9538)
+++ trunk/coregrind/m_libcassert.c 2009-04-15 03:55:41 UTC (rev 9539)
@@ -47,8 +47,8 @@
#if defined(VGP_x86_linux)
# define GET_REAL_PC_SP_AND_FP(pc, sp, fp) \
- asm("call m_libcassert_get_ip;" \
- "m_libcassert_get_ip: popl %0;" \
+ asm("call 0f;" \
+ "0: popl %0;" \
"movl %%esp, %1;" \
"movl %%ebp, %2;" \
: "=r" (pc),\
|
|
From: <sv...@va...> - 2009-04-15 03:49:50
|
Author: njn
Date: 2009-04-15 04:49:44 +0100 (Wed, 15 Apr 2009)
New Revision: 9538
Log:
Merge a small part of r9357 from the trunk, to fix bug #179731.
Modified:
branches/VALGRIND_3_4_BRANCH/none/tests/x86/jcxz.c
Modified: branches/VALGRIND_3_4_BRANCH/none/tests/x86/jcxz.c
===================================================================
--- branches/VALGRIND_3_4_BRANCH/none/tests/x86/jcxz.c 2009-04-15 03:12:43 UTC (rev 9537)
+++ branches/VALGRIND_3_4_BRANCH/none/tests/x86/jcxz.c 2009-04-15 03:49:44 UTC (rev 9538)
@@ -11,12 +11,12 @@
__asm__ __volatile__(
"movl %0,%%ecx\n\t"
"movl $0,%%eax\n"
- ".Lxyzzy1:\n\t"
- "jcxz .Lfoobar1\n\t"
+ "0:\n\t"
+ "jcxz 1f\n\t"
"addl $1, %%eax\n\t"
"subl $1, %%ecx\n\t"
- "jmp .Lxyzzy1\n"
- ".Lfoobar1:\n\t"
+ "jmp 0b\n"
+ "1:\n\t"
"movl %%eax, %1"
: /*out*/ : /*in*/ "m"(block[0]),
"m"(block[1]) : /*trash*/ "eax","ecx","cc","memory"
@@ -32,12 +32,12 @@
__asm__ __volatile__(
"movl %0,%%ecx\n\t"
"movl $0,%%eax\n"
- ".Lxyzzy2:\n\t"
- "jecxz .Lfoobar2\n\t"
+ "0:\n\t"
+ "jecxz 1f\n\t"
"addl $1, %%eax\n\t"
"subl $1, %%ecx\n\t"
- "jmp .Lxyzzy2\n"
- ".Lfoobar2:\n\t"
+ "jmp 0b\n"
+ "1:\n\t"
"movl %%eax, %1"
: /*out*/ : /*in*/ "m"(block[0]),
"m"(block[1]) : /*trash*/ "eax","ecx","cc","memory"
|