|
From: <sv...@va...> - 2009-02-25 04:34:57
|
Author: njn
Date: 2009-02-25 04:34:44 +0000 (Wed, 25 Feb 2009)
New Revision: 9261
Log:
Remove toobig-allocs.c -- it was unreliable and didn't test any
functionality of note.
Removed:
trunk/massif/tests/toobig-allocs.stderr.exp
trunk/massif/tests/toobig-allocs.vgtest
trunk/memcheck/tests/toobig-allocs.stderr.exp
trunk/memcheck/tests/toobig-allocs.vgtest
trunk/tests/toobig-allocs.c
Modified:
trunk/massif/tests/Makefile.am
trunk/memcheck/tests/Makefile.am
trunk/tests/Makefile.am
Modified: trunk/massif/tests/Makefile.am
===================================================================
--- trunk/massif/tests/Makefile.am 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/massif/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
@@ -36,7 +36,6 @@
thresholds_5_0.post.exp thresholds_5_0.stderr.exp thresholds_5_0.vgtest \
thresholds_5_10.post.exp thresholds_5_10.stderr.exp thresholds_5_10.vgtest \
thresholds_10_10.post.exp thresholds_10_10.stderr.exp thresholds_10_10.vgtest \
- toobig-allocs.stderr.exp toobig-allocs.vgtest \
zero1.post.exp zero1.stderr.exp zero1.vgtest \
zero2.post.exp zero2.stderr.exp zero2.vgtest
Deleted: trunk/massif/tests/toobig-allocs.stderr.exp
===================================================================
--- trunk/massif/tests/toobig-allocs.stderr.exp 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/massif/tests/toobig-allocs.stderr.exp 2009-02-25 04:34:44 UTC (rev 9261)
@@ -1,4 +0,0 @@
-
-Attempting too-big malloc()...
-Attempting too-big mmap()...
-
Deleted: trunk/massif/tests/toobig-allocs.vgtest
===================================================================
--- trunk/massif/tests/toobig-allocs.vgtest 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/massif/tests/toobig-allocs.vgtest 2009-02-25 04:34:44 UTC (rev 9261)
@@ -1,3 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: --massif-out-file=massif.out
-cleanup: rm massif.out
Modified: trunk/memcheck/tests/Makefile.am
===================================================================
--- trunk/memcheck/tests/Makefile.am 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/memcheck/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
@@ -149,7 +149,6 @@
supp2.stderr.exp supp2.vgtest \
supp.supp \
suppfree.stderr.exp suppfree.vgtest \
- toobig-allocs.stderr.exp toobig-allocs.vgtest \
trivialleak.stderr.exp trivialleak.vgtest \
unit_libcbase.stderr.exp unit_libcbase.stdout.exp unit_libcbase.vgtest \
unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
Deleted: trunk/memcheck/tests/toobig-allocs.stderr.exp
===================================================================
--- trunk/memcheck/tests/toobig-allocs.stderr.exp 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/memcheck/tests/toobig-allocs.stderr.exp 2009-02-25 04:34:44 UTC (rev 9261)
@@ -1,2 +0,0 @@
-Attempting too-big malloc()...
-Attempting too-big mmap()...
Deleted: trunk/memcheck/tests/toobig-allocs.vgtest
===================================================================
--- trunk/memcheck/tests/toobig-allocs.vgtest 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/memcheck/tests/toobig-allocs.vgtest 2009-02-25 04:34:44 UTC (rev 9261)
@@ -1,2 +0,0 @@
-prog: ../../tests/toobig-allocs
-vgopts: -q
Modified: trunk/tests/Makefile.am
===================================================================
--- trunk/tests/Makefile.am 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
@@ -16,7 +16,6 @@
check_PROGRAMS = \
arch_test \
- toobig-allocs \
true
AM_CFLAGS += $(AM_FLAG_M3264_PRI)
Deleted: trunk/tests/toobig-allocs.c
===================================================================
--- trunk/tests/toobig-allocs.c 2009-02-25 04:27:25 UTC (rev 9260)
+++ trunk/tests/toobig-allocs.c 2009-02-25 04:34:44 UTC (rev 9261)
@@ -1,27 +0,0 @@
-#include <stdlib.h>
-#include <sys/mman.h>
-#include <stdio.h>
-
-int main(void)
-{
- void *p;
-
- // This is the biggest word-sized signed number. We use a signed number,
- // even though malloc takes an unsigned SizeT, because the "silly malloc
- // arg" checking done by memcheck treats the arg like a signed int in
- // order to detect the passing of a silly size arg like -1.
- unsigned long size = (~(0UL)) >> 1;
-
- fprintf(stderr, "Attempting too-big malloc()...\n");
- p = malloc(size); // way too big!
- if (p)
- fprintf(stderr, "huge malloc() succeeded??\n");
-
- fprintf(stderr, "Attempting too-big mmap()...\n");
- p = mmap( 0, size, PROT_READ|PROT_WRITE|PROT_EXEC,
- MAP_PRIVATE|MAP_ANON, -1, 0 );
- if (-1 != (long)p)
- fprintf(stderr, "huge mmap() succeeded??\n");
-
- return 0;
-}
|
|
From: Johan B. <jb...@gm...> - 2009-02-25 04:47:19
|
This one is actually failing on ARM, due to 64bit intermediate loads
or something like that.
Anyway, guess not it's a big deal, I'll fix the issue before merging
this from trunk
/Johan
On Tue, Feb 24, 2009 at 8:34 PM, <sv...@va...> wrote:
> Author: njn
> Date: 2009-02-25 04:34:44 +0000 (Wed, 25 Feb 2009)
> New Revision: 9261
>
> Log:
> Remove toobig-allocs.c -- it was unreliable and didn't test any
> functionality of note.
>
>
>
> Removed:
> trunk/massif/tests/toobig-allocs.stderr.exp
> trunk/massif/tests/toobig-allocs.vgtest
> trunk/memcheck/tests/toobig-allocs.stderr.exp
> trunk/memcheck/tests/toobig-allocs.vgtest
> trunk/tests/toobig-allocs.c
> Modified:
> trunk/massif/tests/Makefile.am
> trunk/memcheck/tests/Makefile.am
> trunk/tests/Makefile.am
>
>
> Modified: trunk/massif/tests/Makefile.am
> ===================================================================
> --- trunk/massif/tests/Makefile.am 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/massif/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -36,7 +36,6 @@
> thresholds_5_0.post.exp thresholds_5_0.stderr.exp thresholds_5_0.vgtest \
> thresholds_5_10.post.exp thresholds_5_10.stderr.exp thresholds_5_10.vgtest \
> thresholds_10_10.post.exp thresholds_10_10.stderr.exp thresholds_10_10.vgtest \
> - toobig-allocs.stderr.exp toobig-allocs.vgtest \
> zero1.post.exp zero1.stderr.exp zero1.vgtest \
> zero2.post.exp zero2.stderr.exp zero2.vgtest
>
>
> Deleted: trunk/massif/tests/toobig-allocs.stderr.exp
> ===================================================================
> --- trunk/massif/tests/toobig-allocs.stderr.exp 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/massif/tests/toobig-allocs.stderr.exp 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -1,4 +0,0 @@
> -
> -Attempting too-big malloc()...
> -Attempting too-big mmap()...
> -
>
> Deleted: trunk/massif/tests/toobig-allocs.vgtest
> ===================================================================
> --- trunk/massif/tests/toobig-allocs.vgtest 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/massif/tests/toobig-allocs.vgtest 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -1,3 +0,0 @@
> -prog: ../../tests/toobig-allocs
> -vgopts: --massif-out-file=massif.out
> -cleanup: rm massif.out
>
> Modified: trunk/memcheck/tests/Makefile.am
> ===================================================================
> --- trunk/memcheck/tests/Makefile.am 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/memcheck/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -149,7 +149,6 @@
> supp2.stderr.exp supp2.vgtest \
> supp.supp \
> suppfree.stderr.exp suppfree.vgtest \
> - toobig-allocs.stderr.exp toobig-allocs.vgtest \
> trivialleak.stderr.exp trivialleak.vgtest \
> unit_libcbase.stderr.exp unit_libcbase.stdout.exp unit_libcbase.vgtest \
> unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
>
> Deleted: trunk/memcheck/tests/toobig-allocs.stderr.exp
> ===================================================================
> --- trunk/memcheck/tests/toobig-allocs.stderr.exp 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/memcheck/tests/toobig-allocs.stderr.exp 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -1,2 +0,0 @@
> -Attempting too-big malloc()...
> -Attempting too-big mmap()...
>
> Deleted: trunk/memcheck/tests/toobig-allocs.vgtest
> ===================================================================
> --- trunk/memcheck/tests/toobig-allocs.vgtest 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/memcheck/tests/toobig-allocs.vgtest 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -1,2 +0,0 @@
> -prog: ../../tests/toobig-allocs
> -vgopts: -q
>
> Modified: trunk/tests/Makefile.am
> ===================================================================
> --- trunk/tests/Makefile.am 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/tests/Makefile.am 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -16,7 +16,6 @@
>
> check_PROGRAMS = \
> arch_test \
> - toobig-allocs \
> true
>
> AM_CFLAGS += $(AM_FLAG_M3264_PRI)
>
> Deleted: trunk/tests/toobig-allocs.c
> ===================================================================
> --- trunk/tests/toobig-allocs.c 2009-02-25 04:27:25 UTC (rev 9260)
> +++ trunk/tests/toobig-allocs.c 2009-02-25 04:34:44 UTC (rev 9261)
> @@ -1,27 +0,0 @@
> -#include <stdlib.h>
> -#include <sys/mman.h>
> -#include <stdio.h>
> -
> -int main(void)
> -{
> - void *p;
> -
> - // This is the biggest word-sized signed number. We use a signed number,
> - // even though malloc takes an unsigned SizeT, because the "silly malloc
> - // arg" checking done by memcheck treats the arg like a signed int in
> - // order to detect the passing of a silly size arg like -1.
> - unsigned long size = (~(0UL)) >> 1;
> -
> - fprintf(stderr, "Attempting too-big malloc()...\n");
> - p = malloc(size); // way too big!
> - if (p)
> - fprintf(stderr, "huge malloc() succeeded??\n");
> -
> - fprintf(stderr, "Attempting too-big mmap()...\n");
> - p = mmap( 0, size, PROT_READ|PROT_WRITE|PROT_EXEC,
> - MAP_PRIVATE|MAP_ANON, -1, 0 );
> - if (-1 != (long)p)
> - fprintf(stderr, "huge mmap() succeeded??\n");
> -
> - return 0;
> -}
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Valgrind-developers mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-developers
>
|