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
(25) |
2
(25) |
3
(5) |
4
(13) |
|
5
(4) |
6
(8) |
7
(6) |
8
|
9
(10) |
10
(15) |
11
(9) |
|
12
(14) |
13
(10) |
14
(24) |
15
(41) |
16
(13) |
17
(9) |
18
(3) |
|
19
(10) |
20
(11) |
21
(28) |
22
(36) |
23
(52) |
24
(36) |
25
(12) |
|
26
(31) |
27
(27) |
28
(20) |
29
(15) |
30
(22) |
31
(17) |
|
|
From: <sv...@va...> - 2009-07-23 21:13:26
|
Author: vince Date: 2009-07-23 22:13:14 +0100 (Thu, 23 Jul 2009) New Revision: 10571 Log: The pc-file output from the exp-bbv tool is mildly implementation dependent. This causes the regression test to fail with the "million" benchmark on a Fedora 9 system. For now, remove the pc-file part of the test, and later I'll come up with a better way of testing this feature. Modified: trunk/exp-bbv/tests/amd64-linux/million.post.exp trunk/exp-bbv/tests/amd64-linux/million.vgtest Modified: trunk/exp-bbv/tests/amd64-linux/million.post.exp =================================================================== --- trunk/exp-bbv/tests/amd64-linux/million.post.exp 2009-07-23 19:07:37 UTC (rev 10570) +++ trunk/exp-bbv/tests/amd64-linux/million.post.exp 2009-07-23 21:13:14 UTC (rev 10571) @@ -16,6 +16,3 @@ # Unique reps: 0 # Total fldcw instructions: 0 -F:1:400078: -F:2:400085: -F:3:40008a: Modified: trunk/exp-bbv/tests/amd64-linux/million.vgtest =================================================================== --- trunk/exp-bbv/tests/amd64-linux/million.vgtest 2009-07-23 19:07:37 UTC (rev 10570) +++ trunk/exp-bbv/tests/amd64-linux/million.vgtest 2009-07-23 21:13:14 UTC (rev 10571) @@ -1,5 +1,5 @@ prog: million -vgopts: --interval-size=100000 --bb-out-file=million.out.bb --pc-out-file=million.out.pc -post: cat million.out.bb million.out.pc -cleanup: rm million.out.bb million.out.pc +vgopts: --interval-size=100000 --bb-out-file=million.out.bb +post: cat million.out.bb +cleanup: rm million.out.bb |
|
From: Greg P. <gp...@ap...> - 2009-07-23 20:31:40
|
On Jul 23, 2009, at 12:28 PM, Bart Van Assche wrote: > Thanks for the help. After having replaced sem_init() by sem_open() in > the pth_inconsistent_cond_wait test program, I still see the same > puzzling error message: > $ drd/tests/pth_inconsistent_cond_wait > pth_inconsistent_cond_wait.c:77 pthread_cond_timedwait(&s_cond, mutex, > &deadline) returned error code 22 (Invalid argument) The test is using a single cond with two different mutexes at the same time. POSIX says that's undefined; Darwin detects it and returns EINVAL. http://www.opengroup.org/onlinepubs/000095399/functions/pthread_cond_wait.html "When a thread waits on a condition variable, having specified a particular mutex to either the pthread_cond_timedwait() or thepthread_cond_wait() operation, a dynamic binding is formed between that mutex and condition variable that remains in effect as long as at least one thread is blocked on the condition variable. During this time, the effect of an attempt by any thread to wait on that condition variable using a different mutex is undefined." Libc/pthreads/pthread_cond.c: else if ((busy = cond->busy) != mutex) { /* Must always specify the same mutex! */ cond->waiters--; UNLOCK(cond->lock); return (EINVAL); } The comment at the top of the test suggests the test does this on purpose, and that drd is supposed to catch it first. Perhaps you're not intercepting all variants of pthread_cond_timedwait? UNIX conformance means some Libc functions have multiple versions. 0007da80 (__TEXT,__text) external _pthread_cond_timedwait 000e1787 (__TEXT,__text) external _pthread_cond_timedwait$NOCANCEL $UNIX2003 000589a8 (__TEXT,__text) external _pthread_cond_timedwait$UNIX2003 -- Greg Parker gp...@ap... Runtime Wrangler |
|
From: Bart V. A. <bar...@gm...> - 2009-07-23 19:28:59
|
On Thu, Jul 23, 2009 at 1:12 PM, Alexander Potapenko<gl...@go...> wrote: > I've tried the tests on Mac OS 10.5 (Darwin Kernel Version 9.7.0: Tue > Mar 31 22:52:17 PDT 2009) > Here are the results > > glider$ ./pth_inconsistent_cond_wait > pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, > &deadline) returned error code 22 (Invalid argument) > > this is a bit confusing. > > glider$ ./tc17_sembar > starting > done, result is 99, should be 88 > > this is expected, because sem_init is not implemented on Darwin, only > named semaphores are supported. Thanks for the help. After having replaced sem_init() by sem_open() in the pth_inconsistent_cond_wait test program, I still see the same puzzling error message: $ drd/tests/pth_inconsistent_cond_wait pth_inconsistent_cond_wait.c:77 pthread_cond_timedwait(&s_cond, mutex, &deadline) returned error code 22 (Invalid argument) Bart. |
|
From: <sv...@va...> - 2009-07-23 19:07:47
|
Author: bart
Date: 2009-07-23 20:07:37 +0100 (Thu, 23 Jul 2009)
New Revision: 10570
Log:
Labels printed with semaphore tracing enabled do now match the function names assigned by POSIX.
Modified:
trunk/drd/drd_semaphore.c
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8
Modified: trunk/drd/drd_semaphore.c
===================================================================
--- trunk/drd/drd_semaphore.c 2009-07-23 19:01:35 UTC (rev 10569)
+++ trunk/drd/drd_semaphore.c 2009-07-23 19:07:37 UTC (rev 10570)
@@ -177,7 +177,7 @@
if (s_trace_semaphore)
{
VG_(message)(Vg_UserMsg,
- "[%d] semaphore_init 0x%lx value %u\n",
+ "[%d] sem_init 0x%lx value %u\n",
DRD_(thread_get_running_tid)(),
semaphore,
value);
@@ -229,7 +229,7 @@
if (s_trace_semaphore)
{
VG_(message)(Vg_UserMsg,
- "[%d] semaphore_destroy 0x%lx value %u\n",
+ "[%d] sem_destroy 0x%lx value %u\n",
DRD_(thread_get_running_tid)(),
semaphore,
p ? p->value : 0);
@@ -260,8 +260,8 @@
if (s_trace_semaphore)
{
VG_(message)(Vg_UserMsg,
- "[%d] semaphore_open 0x%lx name %s"
- " oflag %ld mode 0%lo value %u\n",
+ "[%d] sem_open 0x%lx name %s"
+ " oflag %ld mode 0x%lx value %u\n",
DRD_(thread_get_running_tid)(),
semaphore, name, oflag, mode, value);
}
@@ -306,7 +306,7 @@
if (s_trace_semaphore)
{
VG_(message)(Vg_UserMsg,
- "[%d] semaphore_close 0x%lx value %u\n",
+ "[%d] sem_close 0x%lx value %u\n",
DRD_(thread_get_running_tid)(),
semaphore,
p ? p->value : 0);
@@ -361,7 +361,7 @@
if (s_trace_semaphore)
{
VG_(message)(Vg_UserMsg,
- "[%d] semaphore_wait 0x%lx value %u -> %u\n",
+ "[%d] sem_wait 0x%lx value %u -> %u\n",
DRD_(thread_get_running_tid)(),
semaphore,
p ? p->value : 0,
@@ -425,7 +425,7 @@
if (s_trace_semaphore)
{
VG_(message)(Vg_UserMsg,
- "[%d] semaphore_post 0x%lx value %u -> %u\n",
+ "[%d] sem_post 0x%lx value %u -> %u\n",
DRD_(thread_get_running_tid)(),
semaphore,
p->value - 1, p->value);
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3 2009-07-23 19:01:35 UTC (rev 10569)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3 2009-07-23 19:07:37 UTC (rev 10570)
@@ -117,8 +117,8 @@
---------------- sem_* ----------------
-[1] semaphore_init 0x........ value 4294967295
-[1] semaphore_init 0x........ value 0
+[1] sem_init 0x........ value 4294967295
+[1] sem_init 0x........ value 0
Semaphore reinitialization: semaphore 0x........
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
@@ -129,7 +129,7 @@
FIXME: can't figure out how to verify wrap of sem_destroy
-[1] semaphore_wait 0x........ value 0 -> 4294967295
+[1] sem_wait 0x........ value 0 -> 4294967295
Invalid semaphore: semaphore 0x........
at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
@@ -137,11 +137,11 @@
semaphore 0x........ was first observed at:
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:228)
-[1] semaphore_post 0x........ value 4294967295 -> 0
+[1] sem_post 0x........ value 4294967295 -> 0
FIXME: can't figure out how to verify wrap of sem_post
-[1] semaphore_destroy 0x........ value 0
+[1] sem_destroy 0x........ value 0
------------ dealloc of mem holding locks ------------
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b 2009-07-23 19:01:35 UTC (rev 10569)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b 2009-07-23 19:07:37 UTC (rev 10570)
@@ -128,8 +128,8 @@
---------------- sem_* ----------------
-[1] semaphore_init 0x........ value 4294967295
-[1] semaphore_init 0x........ value 0
+[1] sem_init 0x........ value 4294967295
+[1] sem_init 0x........ value 0
Semaphore reinitialization: semaphore 0x........
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
@@ -140,7 +140,7 @@
FIXME: can't figure out how to verify wrap of sem_destroy
-[1] semaphore_wait 0x........ value 0 -> 4294967295
+[1] sem_wait 0x........ value 0 -> 4294967295
Invalid semaphore: semaphore 0x........
at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
@@ -148,11 +148,11 @@
semaphore 0x........ was first observed at:
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:228)
-[1] semaphore_post 0x........ value 4294967295 -> 0
+[1] sem_post 0x........ value 4294967295 -> 0
FIXME: can't figure out how to verify wrap of sem_post
-[1] semaphore_destroy 0x........ value 0
+[1] sem_destroy 0x........ value 0
------------ dealloc of mem holding locks ------------
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5 2009-07-23 19:01:35 UTC (rev 10569)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5 2009-07-23 19:07:37 UTC (rev 10570)
@@ -116,8 +116,8 @@
---------------- sem_* ----------------
-[1] semaphore_init 0x........ value 4294967295
-[1] semaphore_init 0x........ value 0
+[1] sem_init 0x........ value 4294967295
+[1] sem_init 0x........ value 0
Semaphore reinitialization: semaphore 0x........
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
@@ -128,7 +128,7 @@
FIXME: can't figure out how to verify wrap of sem_destroy
-[1] semaphore_wait 0x........ value 0 -> 4294967295
+[1] sem_wait 0x........ value 0 -> 4294967295
Invalid semaphore: semaphore 0x........
at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
@@ -136,11 +136,11 @@
semaphore 0x........ was first observed at:
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:228)
-[1] semaphore_post 0x........ value 4294967295 -> 0
+[1] sem_post 0x........ value 4294967295 -> 0
FIXME: can't figure out how to verify wrap of sem_post
-[1] semaphore_destroy 0x........ value 0
+[1] sem_destroy 0x........ value 0
------------ dealloc of mem holding locks ------------
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc 2009-07-23 19:01:35 UTC (rev 10569)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc 2009-07-23 19:07:37 UTC (rev 10570)
@@ -116,8 +116,8 @@
---------------- sem_* ----------------
-[1] semaphore_init 0x........ value 4294967295
-[1] semaphore_init 0x........ value 0
+[1] sem_init 0x........ value 4294967295
+[1] sem_init 0x........ value 0
Semaphore reinitialization: semaphore 0x........
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
@@ -128,7 +128,7 @@
FIXME: can't figure out how to verify wrap of sem_destroy
-[1] semaphore_wait 0x........ value 0 -> 4294967295
+[1] sem_wait 0x........ value 0 -> 4294967295
Invalid semaphore: semaphore 0x........
at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
@@ -136,11 +136,11 @@
semaphore 0x........ was first observed at:
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:228)
-[1] semaphore_post 0x........ value 4294967295 -> 0
+[1] sem_post 0x........ value 4294967295 -> 0
FIXME: can't figure out how to verify wrap of sem_post
-[1] semaphore_destroy 0x........ value 0
+[1] sem_destroy 0x........ value 0
------------ dealloc of mem holding locks ------------
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8 2009-07-23 19:01:35 UTC (rev 10569)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8 2009-07-23 19:07:37 UTC (rev 10570)
@@ -116,8 +116,8 @@
---------------- sem_* ----------------
-[1] semaphore_init 0x........ value 4294967295
-[1] semaphore_init 0x........ value 0
+[1] sem_init 0x........ value 4294967295
+[1] sem_init 0x........ value 0
Semaphore reinitialization: semaphore 0x........
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
@@ -128,7 +128,7 @@
FIXME: can't figure out how to verify wrap of sem_destroy
-[1] semaphore_wait 0x........ value 0 -> 4294967295
+[1] sem_wait 0x........ value 0 -> 4294967295
Invalid semaphore: semaphore 0x........
at 0x........: sem_wait* (drd_pthread_intercepts.c:?)
@@ -136,11 +136,11 @@
semaphore 0x........ was first observed at:
at 0x........: sem_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:228)
-[1] semaphore_post 0x........ value 4294967295 -> 0
+[1] sem_post 0x........ value 4294967295 -> 0
FIXME: can't figure out how to verify wrap of sem_post
-[1] semaphore_destroy 0x........ value 0
+[1] sem_destroy 0x........ value 0
------------ dealloc of mem holding locks ------------
|
|
From: <sv...@va...> - 2009-07-23 19:01:47
|
Author: bart
Date: 2009-07-23 20:01:35 +0100 (Thu, 23 Jul 2009)
New Revision: 10569
Log:
Fixed two typo's.
Modified:
trunk/drd/drd.h
Modified: trunk/drd/drd.h
===================================================================
--- trunk/drd/drd.h 2009-07-23 18:22:00 UTC (rev 10568)
+++ trunk/drd/drd.h 2009-07-23 19:01:35 UTC (rev 10569)
@@ -244,14 +244,14 @@
/** Tell DRD to ignore all memory accesses performed by the current thread. */
#define ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() \
- do { DRDCL_(set_record_loads)(0); DRD_(set_record_stores)(0); } while(0)
+ do { DRDCL_(set_record_loads)(0); DRDCL_(set_record_stores)(0); } while(0)
/**
* Tell DRD to no longer ignore the memory accesses performed by the current
* thread.
*/
#define ANNOTATE_IGNORE_READS_AND_WRITES_END() \
- do { DRDCL_(set_record_loads)(1); DRD_(set_record_stores)(1); } while(0)
+ do { DRDCL_(set_record_loads)(1); DRDCL_(set_record_stores)(1); } while(0)
/**
* Tell DRD that size bytes starting at addr has been allocated by a custom
|
|
From: <sv...@va...> - 2009-07-23 18:22:11
|
Author: bart
Date: 2009-07-23 19:22:00 +0100 (Thu, 23 Jul 2009)
New Revision: 10568
Log:
Ported circular_buffer test to Darwin.
Modified:
trunk/drd/tests/circular_buffer.c
Modified: trunk/drd/tests/circular_buffer.c
===================================================================
--- trunk/drd/tests/circular_buffer.c 2009-07-23 18:10:55 UTC (rev 10567)
+++ trunk/drd/tests/circular_buffer.c 2009-07-23 18:22:00 UTC (rev 10568)
@@ -24,15 +24,17 @@
#define BUFFER_MAX (2)
+#define DATA_SEMAPHORE_NAME "cb-data-semaphore"
+#define FREE_SEMAPHORE_NAME "cb-free-semaphore"
typedef int data_t;
typedef struct {
/* Counting semaphore representing the number of data items in the buffer. */
- sem_t data;
+ sem_t* data;
/* Counting semaphore representing the number of free elements. */
- sem_t free;
+ sem_t* free;
/* Position where a new elements should be written. */
int in;
/* Position from where an element can be removed. */
@@ -54,11 +56,35 @@
return __sync_fetch_and_add(p, i);
}
-void buffer_init(buffer_t * b)
+static sem_t* create_semaphore(const char* const name, const int value)
{
- sem_init(&b->data, 0, 0);
- sem_init(&b->free, 0, BUFFER_MAX);
+#ifdef __APPLE__
+ sem_t* p = sem_open(name, O_CREAT, 0600, value);
+ return p;
+#else
+ sem_t* p = malloc(sizeof(*p));
+ if (p)
+ sem_init(p, 0, value);
+ return p;
+#endif
+}
+static void destroy_semaphore(const char* const name, sem_t* p)
+{
+#ifdef __APPLE__
+ sem_close(p);
+ sem_unlink(name);
+#else
+ sem_destroy(p);
+ free(p);
+#endif
+}
+
+static void buffer_init(buffer_t * b)
+{
+ b->data = create_semaphore(DATA_SEMAPHORE_NAME, 0);
+ b->free = create_semaphore(FREE_SEMAPHORE_NAME, BUFFER_MAX);
+
pthread_mutex_init(&b->mutex_in, NULL);
pthread_mutex_init(&b->mutex_out, NULL);
@@ -66,10 +92,10 @@
b->out = 0;
}
-void buffer_recv(buffer_t* b, data_t* d)
+static void buffer_recv(buffer_t* b, data_t* d)
{
int out;
- sem_wait(&b->data);
+ sem_wait(b->data);
if (use_locking)
pthread_mutex_lock(&b->mutex_out);
out = fetch_and_add(&b->out, 1);
@@ -86,13 +112,13 @@
printf("received %d from buffer[%d]\n", *d, out);
fflush(stdout);
}
- sem_post(&b->free);
+ sem_post(b->free);
}
-void buffer_send(buffer_t* b, data_t* d)
+static void buffer_send(buffer_t* b, data_t* d)
{
int in;
- sem_wait(&b->free);
+ sem_wait(b->free);
if (use_locking)
pthread_mutex_lock(&b->mutex_in);
in = fetch_and_add(&b->in, 1);
@@ -109,21 +135,21 @@
printf("sent %d to buffer[%d]\n", *d, in);
fflush(stdout);
}
- sem_post(&b->data);
+ sem_post(b->data);
}
-void buffer_destroy(buffer_t* b)
+static void buffer_destroy(buffer_t* b)
{
- sem_destroy(&b->data);
- sem_destroy(&b->free);
+ destroy_semaphore(DATA_SEMAPHORE_NAME, b->data);
+ destroy_semaphore(FREE_SEMAPHORE_NAME, b->free);
pthread_mutex_destroy(&b->mutex_in);
pthread_mutex_destroy(&b->mutex_out);
}
-buffer_t b;
+static buffer_t b;
-void producer(int* id)
+static void producer(int* id)
{
buffer_send(&b, id);
pthread_exit(NULL);
@@ -131,7 +157,7 @@
#define MAXSLEEP (100 * 1000)
-void consumer(int* id)
+static void consumer(int* id)
{
int d;
usleep(rand() % MAXSLEEP);
|
|
From: <sv...@va...> - 2009-07-23 18:11:08
|
Author: bart
Date: 2009-07-23 19:10:55 +0100 (Thu, 23 Jul 2009)
New Revision: 10567
Log:
Modified filter_stderr to filter out even more platform differences.
Modified:
trunk/drd/tests/filter_stderr
trunk/drd/tests/pth_cond_race.stderr.exp
trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp1
trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp2
trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.3
trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5
trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5-ppc
trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.8
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc
trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8
trunk/drd/tests/tc23_bogus_condwait.stderr.exp-darwin
trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86
Modified: trunk/drd/tests/filter_stderr
===================================================================
--- trunk/drd/tests/filter_stderr 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/filter_stderr 2009-07-23 18:10:55 UTC (rev 10567)
@@ -25,6 +25,8 @@
-e "s/was held during [0-9][0-9]*/was held during .../" \
-e "s: BSS section of .*/: BSS section of :g" \
-e "s: vc \[[ ,:0-9]*\]: vc ...:g" \
+-e "s/: pthread_cond_wait\* /: pthread_cond_wait /" \
+-e "s/: pthread_cond_signal@\* /: pthread_cond_signal /" \
-e "s/ (\([a-zA-Z_]*\.c\):[0-9]*)/ (\1:?)/" \
-e "s/ (\([a-zA-Z_]*\.h\):[0-9]*)/ (\1:?)/" \
-e "s/ (\([a-zA-Z_]*\.cpp\):[0-9]*)/ (\1:?)/" |
Modified: trunk/drd/tests/pth_cond_race.stderr.exp
===================================================================
--- trunk/drd/tests/pth_cond_race.stderr.exp 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/pth_cond_race.stderr.exp 2009-07-23 18:10:55 UTC (rev 10567)
@@ -1,7 +1,7 @@
Thread 2:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: thread_func (pth_cond_race.c:?)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
Modified: trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp1
===================================================================
--- trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp1 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp1 2009-07-23 18:10:55 UTC (rev 10567)
@@ -16,7 +16,7 @@
Thread 1:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: main (pth_inconsistent_cond_wait.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
@@ -26,7 +26,7 @@
by 0x........: main (pth_inconsistent_cond_wait.c:?)
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: main (pth_inconsistent_cond_wait.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp2
===================================================================
--- trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp2 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/pth_inconsistent_cond_wait.stderr.exp2 2009-07-23 18:10:55 UTC (rev 10567)
@@ -16,7 +16,7 @@
Thread 1:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: main (pth_inconsistent_cond_wait.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
@@ -26,7 +26,7 @@
by 0x........: main (pth_inconsistent_cond_wait.c:?)
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: main (pth_inconsistent_cond_wait.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.3
===================================================================
--- trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.3 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.3 2009-07-23 18:10:55 UTC (rev 10567)
@@ -42,7 +42,7 @@
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5
===================================================================
--- trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5 2009-07-23 18:10:55 UTC (rev 10567)
@@ -39,7 +39,7 @@
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5-ppc
===================================================================
--- trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5-ppc 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.5-ppc 2009-07-23 18:10:55 UTC (rev 10567)
@@ -39,7 +39,7 @@
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.8
===================================================================
--- trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.8 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap.stderr.exp-glibc2.8 2009-07-23 18:10:55 UTC (rev 10567)
@@ -39,7 +39,7 @@
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3 2009-07-23 18:10:55 UTC (rev 10567)
@@ -55,7 +55,7 @@
[1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.3-b 2009-07-23 18:10:55 UTC (rev 10567)
@@ -66,7 +66,7 @@
[1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5 2009-07-23 18:10:55 UTC (rev 10567)
@@ -54,7 +54,7 @@
[1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.5-ppc 2009-07-23 18:10:55 UTC (rev 10567)
@@ -54,7 +54,7 @@
[1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8
===================================================================
--- trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc20_verifywrap2.stderr.exp-glibc2.8 2009-07-23 18:10:55 UTC (rev 10567)
@@ -54,7 +54,7 @@
[1] mutex_unlock error checking mutex 0x........ rc 0
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc20_verifywrap.c:147)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc23_bogus_condwait.stderr.exp-darwin
===================================================================
--- trunk/drd/tests/tc23_bogus_condwait.stderr.exp-darwin 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc23_bogus_condwait.stderr.exp-darwin 2009-07-23 18:10:55 UTC (rev 10567)
@@ -10,15 +10,15 @@
Thread 1:
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:75)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:75)
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:78)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
@@ -38,21 +38,21 @@
Thread 1:
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:81)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:63)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:81)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:63)
Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 2.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:84)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
Modified: trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
===================================================================
--- trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc 2009-07-23 18:10:55 UTC (rev 10567)
@@ -1,10 +1,10 @@
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:69)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:69)
Process terminating with default action of signal 7 (SIGBUS)
Modified: trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86
===================================================================
--- trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86 2009-07-23 18:02:52 UTC (rev 10566)
+++ trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86 2009-07-23 18:10:55 UTC (rev 10567)
@@ -1,15 +1,15 @@
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:69)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:69)
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:20)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
@@ -18,7 +18,7 @@
Thread 1:
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:72)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
@@ -26,7 +26,7 @@
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:24)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
@@ -38,14 +38,14 @@
Thread 1:
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:75)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:57)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:75)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
@@ -53,7 +53,7 @@
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:28)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
@@ -65,7 +65,7 @@
Thread 1:
Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 2.
- at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_wait (drd_pthread_intercepts.c:?)
by 0x........: main (tc23_bogus_condwait.c:78)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
@@ -73,7 +73,7 @@
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
- at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
+ at 0x........: pthread_cond_signal (drd_pthread_intercepts.c:?)
by 0x........: rescue_me (tc23_bogus_condwait.c:32)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
|
|
From: <sv...@va...> - 2009-07-23 18:03:03
|
Author: bart
Date: 2009-07-23 19:02:52 +0100 (Thu, 23 Jul 2009)
New Revision: 10566
Log:
Ported the pth_inconsistent_cond_wait test program to Darwin.
Modified:
trunk/drd/tests/pth_inconsistent_cond_wait.c
Modified: trunk/drd/tests/pth_inconsistent_cond_wait.c
===================================================================
--- trunk/drd/tests/pth_inconsistent_cond_wait.c 2009-07-23 17:52:51 UTC (rev 10565)
+++ trunk/drd/tests/pth_inconsistent_cond_wait.c 2009-07-23 18:02:52 UTC (rev 10566)
@@ -39,18 +39,28 @@
sem_t* s_sem;
-static sem_t* create_semaphore()
+static sem_t* create_semaphore(const char* const name)
{
+#ifdef __APPLE__
+ sem_t* p = sem_open(name, O_CREAT, 0600, 0);
+ return p;
+#else
sem_t* p = malloc(sizeof(*p));
if (p)
sem_init(p, 0, 0);
return p;
+#endif
}
-static void destroy_semaphore(sem_t* p)
+static void destroy_semaphore(const char* const name, sem_t* p)
{
+#ifdef __APPLE__
+ sem_close(p);
+ sem_unlink(name);
+#else
sem_destroy(p);
free(p);
+#endif
}
static void* thread_func(void* mutex)
@@ -75,7 +85,9 @@
pthread_t tid2;
/* Initialize synchronization objects. */
- s_sem = create_semaphore();
+ char semaphore_name[32];
+ snprintf(semaphore_name, sizeof(semaphore_name), "semaphore-%d", getpid());
+ s_sem = create_semaphore(semaphore_name);
PTH_CALL(pthread_cond_init(&s_cond, 0));
PTH_CALL(pthread_mutex_init(&s_mutex1, 0));
PTH_CALL(pthread_mutex_init(&s_mutex2, 0));
@@ -87,7 +99,7 @@
/* Wait until both threads have called sem_post(). */
sem_wait(s_sem);
sem_wait(s_sem);
- destroy_semaphore(s_sem);
+ destroy_semaphore(semaphore_name, s_sem);
s_sem = 0;
/* Wait until both threads are waiting inside pthread_cond_wait(). */
|
|
From: <sv...@va...> - 2009-07-23 17:53:02
|
Author: bart
Date: 2009-07-23 18:52:51 +0100 (Thu, 23 Jul 2009)
New Revision: 10565
Log:
Print an error message if sem_init() is called by a client program on Darwin.
Modified:
trunk/drd/drd_semaphore.c
Modified: trunk/drd/drd_semaphore.c
===================================================================
--- trunk/drd/drd_semaphore.c 2009-07-23 17:51:58 UTC (rev 10564)
+++ trunk/drd/drd_semaphore.c 2009-07-23 17:52:51 UTC (rev 10565)
@@ -200,7 +200,18 @@
}
else
{
+#if defined(VGO_darwin)
+ const ThreadId vg_tid = VG_(get_running_tid)();
+ GenericErrInfo GEI = { DRD_(thread_get_running_tid)() };
+ VG_(maybe_record_error)(vg_tid,
+ GenericErr,
+ VG_(get_IP)(vg_tid),
+ "sem_init() is not yet supported on Darwin",
+ &GEI);
+ return NULL;
+#else
p = drd_semaphore_get_or_allocate(semaphore);
+#endif
}
tl_assert(p);
p->waits_to_skip = value;
|
|
From: <sv...@va...> - 2009-07-23 17:52:08
|
Author: bart Date: 2009-07-23 18:51:58 +0100 (Thu, 23 Jul 2009) New Revision: 10564 Log: Only run the test programs that call sem_init() on operating systems that have implemented this function. Added: trunk/drd/tests/supported_sem_init Modified: trunk/drd/tests/pth_detached_sem.vgtest trunk/drd/tests/sem_as_mutex.vgtest trunk/drd/tests/sem_as_mutex2.vgtest trunk/drd/tests/sem_as_mutex3.vgtest trunk/drd/tests/tc17_sembar.vgtest trunk/drd/tests/tc18_semabuse.vgtest trunk/drd/tests/tc23_bogus_condwait.vgtest trunk/drd/tests/tc24_nonzero_sem.vgtest Modified: trunk/drd/tests/pth_detached_sem.vgtest =================================================================== --- trunk/drd/tests/pth_detached_sem.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/pth_detached_sem.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,4 +1,4 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init prog: pth_detached_sem args: 10 10 stderr_filter: filter_error_summary Modified: trunk/drd/tests/sem_as_mutex.vgtest =================================================================== --- trunk/drd/tests/sem_as_mutex.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/sem_as_mutex.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,3 +1,3 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init vgopts: --check-stack-var=yes --read-var-info=yes prog: sem_as_mutex Modified: trunk/drd/tests/sem_as_mutex2.vgtest =================================================================== --- trunk/drd/tests/sem_as_mutex2.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/sem_as_mutex2.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,4 +1,4 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init vgopts: --check-stack-var=yes --read-var-info=yes prog: sem_as_mutex args: -m Modified: trunk/drd/tests/sem_as_mutex3.vgtest =================================================================== --- trunk/drd/tests/sem_as_mutex3.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/sem_as_mutex3.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,3 +1,3 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init vgopts: --check-stack-var=yes --first-race-only=yes --read-var-info=yes prog: sem_as_mutex Added: trunk/drd/tests/supported_sem_init =================================================================== --- trunk/drd/tests/supported_sem_init (rev 0) +++ trunk/drd/tests/supported_sem_init 2009-07-23 17:51:58 UTC (rev 10564) @@ -0,0 +1,6 @@ +#!/bin/sh + +# Exit with status 0 if the system this script runs on supports sem_init() +# (Linux) and exit with status 1 if not (Darwin). + +[ "$(uname)" != "Darwin" ] Property changes on: trunk/drd/tests/supported_sem_init ___________________________________________________________________ Name: svn:executable + * Modified: trunk/drd/tests/tc17_sembar.vgtest =================================================================== --- trunk/drd/tests/tc17_sembar.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/tc17_sembar.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,2 +1,2 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init prog: ../../helgrind/tests/tc17_sembar Modified: trunk/drd/tests/tc18_semabuse.vgtest =================================================================== --- trunk/drd/tests/tc18_semabuse.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/tc18_semabuse.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,2 +1,2 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init prog: ../../helgrind/tests/tc18_semabuse Modified: trunk/drd/tests/tc23_bogus_condwait.vgtest =================================================================== --- trunk/drd/tests/tc23_bogus_condwait.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/tc23_bogus_condwait.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,3 +1,3 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init vgopts: --num-callers=3 prog: ../../helgrind/tests/tc23_bogus_condwait Modified: trunk/drd/tests/tc24_nonzero_sem.vgtest =================================================================== --- trunk/drd/tests/tc24_nonzero_sem.vgtest 2009-07-23 17:50:02 UTC (rev 10563) +++ trunk/drd/tests/tc24_nonzero_sem.vgtest 2009-07-23 17:51:58 UTC (rev 10564) @@ -1,3 +1,3 @@ -prereq: ./supported_libpthread +prereq: ./supported_libpthread && ./supported_sem_init prog: ../../helgrind/tests/tc24_nonzero_sem vgopts: --read-var-info=yes |
|
From: <sv...@va...> - 2009-07-23 17:50:12
|
Author: bart
Date: 2009-07-23 18:50:02 +0100 (Thu, 23 Jul 2009)
New Revision: 10563
Log:
Refactoring: moved semaphore initialization and cleanup code to two new functions.
Modified:
trunk/drd/tests/pth_inconsistent_cond_wait.c
Modified: trunk/drd/tests/pth_inconsistent_cond_wait.c
===================================================================
--- trunk/drd/tests/pth_inconsistent_cond_wait.c 2009-07-23 17:34:26 UTC (rev 10562)
+++ trunk/drd/tests/pth_inconsistent_cond_wait.c 2009-07-23 17:50:02 UTC (rev 10563)
@@ -9,6 +9,7 @@
#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
+#include <stdlib.h> // malloc()
#include <string.h> // memset()
#include <sys/time.h> // gettimeofday()
#include <time.h> // struct timespec
@@ -35,16 +36,30 @@
pthread_cond_t s_cond;
pthread_mutex_t s_mutex1;
pthread_mutex_t s_mutex2;
-sem_t s_sem;
+sem_t* s_sem;
+static sem_t* create_semaphore()
+{
+ sem_t* p = malloc(sizeof(*p));
+ if (p)
+ sem_init(p, 0, 0);
+ return p;
+}
+
+static void destroy_semaphore(sem_t* p)
+{
+ sem_destroy(p);
+ free(p);
+}
+
static void* thread_func(void* mutex)
{
struct timeval now;
struct timespec deadline;
PTH_CALL(pthread_mutex_lock(mutex));
- sem_post(&s_sem);
+ sem_post(s_sem);
gettimeofday(&now, 0);
memset(&deadline, 0, sizeof(deadline));
deadline.tv_sec = now.tv_sec + 2;
@@ -60,7 +75,7 @@
pthread_t tid2;
/* Initialize synchronization objects. */
- sem_init(&s_sem, 0, 0);
+ s_sem = create_semaphore();
PTH_CALL(pthread_cond_init(&s_cond, 0));
PTH_CALL(pthread_mutex_init(&s_mutex1, 0));
PTH_CALL(pthread_mutex_init(&s_mutex2, 0));
@@ -70,8 +85,10 @@
PTH_CALL(pthread_create(&tid2, 0, &thread_func, &s_mutex2));
/* Wait until both threads have called sem_post(). */
- sem_wait(&s_sem);
- sem_wait(&s_sem);
+ sem_wait(s_sem);
+ sem_wait(s_sem);
+ destroy_semaphore(s_sem);
+ s_sem = 0;
/* Wait until both threads are waiting inside pthread_cond_wait(). */
PTH_CALL(pthread_mutex_lock(&s_mutex1));
|
|
From: <sv...@va...> - 2009-07-23 17:34:33
|
Author: bart
Date: 2009-07-23 18:34:26 +0100 (Thu, 23 Jul 2009)
New Revision: 10562
Log:
Should have been included in the previous commit.
Modified:
trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
Modified: trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
===================================================================
--- trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc 2009-07-23 17:22:11 UTC (rev 10561)
+++ trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc 2009-07-23 17:34:26 UTC (rev 10562)
@@ -10,7 +10,7 @@
Process terminating with default action of signal 7 (SIGBUS)
Invalid address alignment at address 0x........
at 0x........: (within libpthread-?.?.so)
- by 0x........: pthread_cond_wait@@@GLIBC_2.3.2(within libpthread-?.?.so)
+ by 0x........: pthread_cond_wait@@GLIBC_2.3.2(within libpthread-?.?.so)
by 0x........: main (tc23_bogus_condwait.c:69)
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
|
|
From: Nicholas N. <n.n...@gm...> - 2009-07-23 17:22:36
|
Nightly build on ocean32 ( Ubuntu 9.04, x86_64 (32-bit only) )
Started at 2009-07-24 03:00:01 EST
Ended at 2009-07-24 03:22:11 EST
Results differ from 24 hours ago
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 475 tests, 10 stderr failures, 2 stdout failures, 0 post failures ==
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
none/tests/empty-exe (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)
none/tests/shell_zerolength (stderr)
helgrind/tests/tc06_two_races_xml (stderr)
exp-ptrcheck/tests/supp (stderr)
=================================================
== Results from 24 hours ago ==
=================================================
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 472 tests, 11 stderr failures, 4 stdout failures, 0 post failures ==
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
none/tests/cmdline1 (stdout)
none/tests/cmdline2 (stdout)
none/tests/empty-exe (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)
none/tests/shell_zerolength (stderr)
helgrind/tests/rwlock_test (stderr)
helgrind/tests/tc06_two_races_xml (stderr)
exp-ptrcheck/tests/supp (stderr)
=================================================
== Difference between 24 hours ago and now ==
=================================================
*** old.short Fri Jul 24 03:11:38 2009
--- new.short Fri Jul 24 03:22:11 2009
***************
*** 8,14 ****
! == 472 tests, 11 stderr failures, 4 stdout failures, 0 post failures ==
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
- none/tests/cmdline1 (stdout)
- none/tests/cmdline2 (stdout)
none/tests/empty-exe (stderr)
--- 8,12 ----
! == 475 tests, 10 stderr failures, 2 stdout failures, 0 post failures ==
memcheck/tests/origin1-yes (stderr)
memcheck/tests/origin5-bz2 (stderr)
none/tests/empty-exe (stderr)
***************
*** 21,23 ****
none/tests/shell_zerolength (stderr)
- helgrind/tests/rwlock_test (stderr)
helgrind/tests/tc06_two_races_xml (stderr)
--- 19,20 ----
=================================================
./valgrind-new/exp-ptrcheck/tests/supp.stderr.diff
=================================================
--- supp.stderr.exp 2009-07-24 03:12:03.000000000 +1000
+++ supp.stderr.out 2009-07-24 03:22:09.000000000 +1000
@@ -1,7 +1,7 @@
Syscall param write(buf) is non-contiguous
- at 0x........: write (in /...libc...)
- by 0x........: main (supp.c:16)
+ at 0x........: ??? (in /lib32/ld-2.9.so)
+ by 0x........: (below main)
First byte (0x........) is 3 bytes inside a 6-byte block alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (supp.c:12)
=================================================
./valgrind-new/helgrind/tests/tc06_two_races_xml.stderr.diff
=================================================
--- tc06_two_races_xml.stderr.exp 2009-07-24 03:11:59.000000000 +1000
+++ tc06_two_races_xml.stderr.out 2009-07-24 03:19:57.000000000 +1000
@@ -43,12 +43,10 @@
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>do_clone</fn>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>pthread_create@@GLIBC_2.2.5</fn>
+ <fn>pthread_create_WRK</fn>
+ <dir>...</dir>
+ <file>hg_intercepts.c</file>
+ <line>...</line>
</frame>
<frame>
<ip>0x........</ip>
=================================================
./valgrind-new/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-07-24 03:12:24.000000000 +1000
+++ origin1-yes.stderr.out 2009-07-24 03:17:38.000000000 +1000
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:101)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: ??? (in /lib32/ld-2.9.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:98)
=================================================
./valgrind-new/memcheck/tests/origin1-yes.stderr.diff-darwin
=================================================
--- origin1-yes.stderr.exp-darwin 2009-07-24 03:12:24.000000000 +1000
+++ origin1-yes.stderr.out 2009-07-24 03:17:38.000000000 +1000
@@ -44,7 +44,12 @@
Undef 7 of 8 (brk)
-(no complaint; sbrk initialises memory on Darwin)
+Conditional jump or move depends on uninitialised value(s)
+ at 0x........: main (origin1-yes.c:101)
+ Uninitialised value was created
+ at 0x........: ??? (in /lib32/ld-2.9.so)
+ by 0x........: sbrk (in /...libc...)
+ by 0x........: main (origin1-yes.c:98)
Undef 8 of 8 (MAKE_MEM_UNDEFINED)
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-07-24 03:12:24.000000000 +1000
+++ origin5-bz2.stderr.out 2009-07-24 03:17:43.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-new/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-07-24 03:12:24.000000000 +1000
+++ origin5-bz2.stderr.out 2009-07-24 03:17:43.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-new/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-07-24 03:12:24.000000000 +1000
+++ origin5-bz2.stderr.out 2009-07-24 03:17:43.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-new/none/tests/empty-exe.stderr.diff
=================================================
--- empty-exe.stderr.exp 2009-07-24 03:13:05.000000000 +1000
+++ empty-exe.stderr.out 2009-07-24 03:18:56.000000000 +1000
@@ -1,2 +1,2 @@
-
-
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./empty-exe: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-new/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-07-24 03:13:02.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 03:19:01.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
..................................................
..................................................
-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
..................................................
..................................................
-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-new/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-07-24 03:13:02.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 03:19:01.000000000 +1000
@@ -188,37 +188,37 @@
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-new/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-07-24 03:13:02.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 03:19:01.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
..................................................
..................................................
-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
..................................................
..................................................
-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-new/none/tests/shell.stderr.diff
=================================================
--- shell.stderr.exp 2009-07-24 03:13:05.000000000 +1000
+++ shell.stderr.out 2009-07-24 03:19:16.000000000 +1000
@@ -1,8 +1,3 @@
-./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: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-new/none/tests/shell.stderr.diff-dash
=================================================
--- shell.stderr.exp-dash 2009-07-24 03:13:05.000000000 +1000
+++ shell.stderr.out 2009-07-24 03:19:16.000000000 +1000
@@ -1,8 +1,3 @@
-./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: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-new/none/tests/shell.stdout.diff
=================================================
--- shell.stdout.exp 2009-07-24 03:13:05.000000000 +1000
+++ shell.stdout.out 2009-07-24 03:19:16.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-new/none/tests/shell_valid1.stderr.diff
=================================================
--- shell_valid1.stderr.exp 2009-07-24 03:13:05.000000000 +1000
+++ shell_valid1.stderr.out 2009-07-24 03:19:16.000000000 +1000
@@ -0,0 +1,3 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_valid1: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-new/none/tests/shell_valid2.stderr.diff
=================================================
--- shell_valid2.stderr.exp 2009-07-24 03:13:05.000000000 +1000
+++ shell_valid2.stderr.out 2009-07-24 03:19:16.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-new/none/tests/shell_valid3.stderr.diff
=================================================
--- shell_valid3.stderr.exp 2009-07-24 03:13:05.000000000 +1000
+++ shell_valid3.stderr.out 2009-07-24 03:19:16.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
=================================================
./valgrind-new/none/tests/shell_zerolength.stderr.diff
=================================================
--- shell_zerolength.stderr.exp 2009-07-24 03:13:05.000000000 +1000
+++ shell_zerolength.stderr.out 2009-07-24 03:19:16.000000000 +1000
@@ -0,0 +1,2 @@
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_zerolength: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-new/none/tests/shell_zerolength.stderr.diff-dash
=================================================
--- shell_zerolength.stderr.exp-dash 2009-07-24 03:13:05.000000000 +1000
+++ shell_zerolength.stderr.out 2009-07-24 03:19:16.000000000 +1000
@@ -1 +1,2 @@
-Bus error
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./shell_zerolength: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-old/exp-ptrcheck/tests/supp.stderr.diff
=================================================
--- supp.stderr.exp 2009-07-24 03:00:49.000000000 +1000
+++ supp.stderr.out 2009-07-24 03:11:35.000000000 +1000
@@ -1,7 +1,7 @@
Syscall param write(buf) is non-contiguous
- at 0x........: write (in /...libc...)
- by 0x........: main (supp.c:16)
+ at 0x........: ??? (in /lib32/ld-2.9.so)
+ by 0x........: (below main)
First byte (0x........) is 3 bytes inside a 6-byte block alloc'd
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: main (supp.c:12)
=================================================
./valgrind-old/helgrind/tests/rwlock_test.stderr.diff
=================================================
--- rwlock_test.stderr.exp 2009-07-24 03:00:34.000000000 +1000
+++ rwlock_test.stderr.out 2009-07-24 03:09:26.000000000 +1000
@@ -1,4 +1,5 @@
+s_counter - thread_count * iterations = 0
Finished.
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/helgrind/tests/tc06_two_races_xml.stderr.diff
=================================================
--- tc06_two_races_xml.stderr.exp 2009-07-24 03:00:34.000000000 +1000
+++ tc06_two_races_xml.stderr.out 2009-07-24 03:09:29.000000000 +1000
@@ -43,12 +43,10 @@
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>do_clone</fn>
- </frame>
- <frame>
- <ip>0x........</ip>
- <obj>...</obj>
- <fn>pthread_create@@GLIBC_2.2.5</fn>
+ <fn>pthread_create_WRK</fn>
+ <dir>...</dir>
+ <file>hg_intercepts.c</file>
+ <line>...</line>
</frame>
<frame>
<ip>0x........</ip>
=================================================
./valgrind-old/memcheck/tests/origin1-yes.stderr.diff
=================================================
--- origin1-yes.stderr.exp 2009-07-24 03:01:27.000000000 +1000
+++ origin1-yes.stderr.out 2009-07-24 03:07:11.000000000 +1000
@@ -47,7 +47,7 @@
Conditional jump or move depends on uninitialised value(s)
at 0x........: main (origin1-yes.c:101)
Uninitialised value was created
- at 0x........: brk (in /...libc...)
+ at 0x........: ??? (in /lib32/ld-2.9.so)
by 0x........: sbrk (in /...libc...)
by 0x........: main (origin1-yes.c:98)
=================================================
./valgrind-old/memcheck/tests/origin1-yes.stderr.diff-darwin
=================================================
--- origin1-yes.stderr.exp-darwin 2009-07-24 03:01:27.000000000 +1000
+++ origin1-yes.stderr.out 2009-07-24 03:07:11.000000000 +1000
@@ -44,7 +44,12 @@
Undef 7 of 8 (brk)
-(no complaint; sbrk initialises memory on Darwin)
+Conditional jump or move depends on uninitialised value(s)
+ at 0x........: main (origin1-yes.c:101)
+ Uninitialised value was created
+ at 0x........: ??? (in /lib32/ld-2.9.so)
+ by 0x........: sbrk (in /...libc...)
+ by 0x........: main (origin1-yes.c:98)
Undef 8 of 8 (MAKE_MEM_UNDEFINED)
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-07-24 03:01:27.000000000 +1000
+++ origin5-bz2.stderr.out 2009-07-24 03:07:15.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-old/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-07-24 03:01:27.000000000 +1000
+++ origin5-bz2.stderr.out 2009-07-24 03:07:15.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-old/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-07-24 03:01:27.000000000 +1000
+++ origin5-bz2.stderr.out 2009-07-24 03:07:15.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-old/none/tests/cmdline1.stdout.diff
=================================================
--- cmdline1.stdout.exp 2009-07-24 03:02:23.000000000 +1000
+++ cmdline1.stdout.out 2009-07-24 03:08:28.000000000 +1000
@@ -26,7 +26,8 @@
handle non-standard kernel variants
--read-var-info=yes|no read debug info on stack and global variables
and use it to print better error messages in
- tools that make use of it (Memcheck, Helgrind)
+ tools that make use of it (Memcheck, Helgrind,
+ DRD)
user options for Valgrind tools that report errors:
--xml=yes emit error output in XML (some tools only)
=================================================
./valgrind-old/none/tests/cmdline2.stdout.diff
=================================================
--- cmdline2.stdout.exp 2009-07-24 03:02:23.000000000 +1000
+++ cmdline2.stdout.out 2009-07-24 03:08:28.000000000 +1000
@@ -26,7 +26,8 @@
handle non-standard kernel variants
--read-var-info=yes|no read debug info on stack and global variables
and use it to print better error messages in
- tools that make use of it (Memcheck, Helgrind)
+ tools that make use of it (Memcheck, Helgrind,
+ DRD)
user options for Valgrind tools that report errors:
--xml=yes emit error output in XML (some tools only)
=================================================
./valgrind-old/none/tests/empty-exe.stderr.diff
=================================================
--- empty-exe.stderr.exp 2009-07-24 03:02:23.000000000 +1000
+++ empty-exe.stderr.out 2009-07-24 03:08:28.000000000 +1000
@@ -1,2 +1,2 @@
-
-
+valgrind: wrong ELF executable class (eg. 32-bit instead of 64-bit)
+valgrind: ./empty-exe: bad interpreter (/bin/sh): VG_(strerror): unknown error
=================================================
./valgrind-old/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-07-24 03:02:17.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 03:08:33.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
..................................................
..................................................
-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
..................................................
..................................................
-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-old/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-07-24 03:02:17.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 03:08:33.000000000 +1000
@@ -188,37 +188,37 @@
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-old/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-07-24 03:02:17.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 03:08:33.000000000 +1000
@@ -27,38 +27,38 @@
..................................................
..................................................
-maymv 0 fixed 0 newsz 21 dstpo 0 dst 0x........ -> 0x........ (== src)
-XXXXXXXXX.XXXXXXXX...
[truncated message content] |
|
From: <sv...@va...> - 2009-07-23 17:22:22
|
Author: bart
Date: 2009-07-23 18:22:11 +0100 (Thu, 23 Jul 2009)
New Revision: 10561
Log:
Reverted r10523 and r10540: since sem_init() is not yet supported on Darwin, revert the attempts to compensate for the different return values on Darwin.
Modified:
trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86
trunk/helgrind/tests/tc23_bogus_condwait.c
trunk/helgrind/tests/tc23_bogus_condwait.stderr.exp
trunk/helgrind/tests/tc24_nonzero_sem.c
Modified: trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc
===================================================================
--- trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc 2009-07-23 16:31:39 UTC (rev 10560)
+++ trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-ppc 2009-07-23 17:22:11 UTC (rev 10561)
@@ -1,16 +1,16 @@
The object at address 0x........ is not a mutex.
at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:75)
+ by 0x........: main (tc23_bogus_condwait.c:69)
The object at address 0x........ is not a mutex.
at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:75)
+ by 0x........: main (tc23_bogus_condwait.c:69)
Process terminating with default action of signal 7 (SIGBUS)
Invalid address alignment at address 0x........
at 0x........: (within libpthread-?.?.so)
- by 0x........: pthread_cond_wait@@GLIBC_2.3.2(within libpthread-?.?.so)
- by 0x........: main (tc23_bogus_condwait.c:75)
+ by 0x........: pthread_cond_wait@@@GLIBC_2.3.2(within libpthread-?.?.so)
+ by 0x........: main (tc23_bogus_condwait.c:69)
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Modified: trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86
===================================================================
--- trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86 2009-07-23 16:31:39 UTC (rev 10560)
+++ trunk/drd/tests/tc23_bogus_condwait.stderr.exp-linux-x86 2009-07-23 17:22:11 UTC (rev 10561)
@@ -1,96 +1,96 @@
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:75)
+ at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ by 0x........: main (tc23_bogus_condwait.c:69)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:75)
+ at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ by 0x........: main (tc23_bogus_condwait.c:69)
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
- by 0x........: rescue_me (tc23_bogus_condwait.c:26)
+ by 0x........: rescue_me (tc23_bogus_condwait.c:20)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:62)
+ by 0x........: main (tc23_bogus_condwait.c:56)
Thread 1:
Mutex not locked: mutex 0x........, recursion count 0, owner 0.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:78)
+ at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ by 0x........: main (tc23_bogus_condwait.c:72)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:57)
+ by 0x........: main (tc23_bogus_condwait.c:51)
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
- by 0x........: rescue_me (tc23_bogus_condwait.c:30)
+ by 0x........: rescue_me (tc23_bogus_condwait.c:24)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:62)
+ by 0x........: main (tc23_bogus_condwait.c:56)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:57)
+ by 0x........: main (tc23_bogus_condwait.c:51)
Thread 1:
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:81)
+ at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ by 0x........: main (tc23_bogus_condwait.c:75)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:63)
+ by 0x........: main (tc23_bogus_condwait.c:57)
The object at address 0x........ is not a mutex.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:81)
+ at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ by 0x........: main (tc23_bogus_condwait.c:75)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:63)
+ by 0x........: main (tc23_bogus_condwait.c:57)
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
- by 0x........: rescue_me (tc23_bogus_condwait.c:34)
+ by 0x........: rescue_me (tc23_bogus_condwait.c:28)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:62)
+ by 0x........: main (tc23_bogus_condwait.c:56)
rwlock 0x........ was first observed at:
at 0x........: pthread_rwlock_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:63)
+ by 0x........: main (tc23_bogus_condwait.c:57)
Thread 1:
Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 2.
- at 0x........: pthread_cond_wait* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:84)
+ at 0x........: pthread_cond_wait@* (drd_pthread_intercepts.c:?)
+ by 0x........: main (tc23_bogus_condwait.c:78)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:59)
+ by 0x........: main (tc23_bogus_condwait.c:53)
Thread 3:
Probably a race condition: condition variable 0x........ has been signaled but the associated mutex 0x........ is not locked by the signalling thread.
at 0x........: pthread_cond_signal@* (drd_pthread_intercepts.c:?)
- by 0x........: rescue_me (tc23_bogus_condwait.c:38)
+ by 0x........: rescue_me (tc23_bogus_condwait.c:32)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
cond 0x........ was first observed at:
at 0x........: pthread_cond_init* (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:62)
+ by 0x........: main (tc23_bogus_condwait.c:56)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:59)
+ by 0x........: main (tc23_bogus_condwait.c:53)
The impossible happened: mutex 0x........ is locked simultaneously by two threads (recursion count 1, owners 2 and 1) !
Thread 2:
Mutex not locked by calling thread: mutex 0x........, recursion count 2, owner 1.
at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?)
- by 0x........: grab_the_lock (tc23_bogus_condwait.c:48)
+ by 0x........: grab_the_lock (tc23_bogus_condwait.c:42)
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
mutex 0x........ was first observed at:
at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?)
- by 0x........: main (tc23_bogus_condwait.c:59)
+ by 0x........: main (tc23_bogus_condwait.c:53)
ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 0 from 0)
Modified: trunk/helgrind/tests/tc23_bogus_condwait.c
===================================================================
--- trunk/helgrind/tests/tc23_bogus_condwait.c 2009-07-23 16:31:39 UTC (rev 10560)
+++ trunk/helgrind/tests/tc23_bogus_condwait.c 2009-07-23 17:22:11 UTC (rev 10561)
@@ -7,12 +7,6 @@
#include <unistd.h>
#include <semaphore.h>
-#ifdef __APPLE__
-#define OS_IS_DARWIN 1
-#else
-#define OS_IS_DARWIN 0
-#endif
-
pthread_mutex_t mx[4];
pthread_cond_t cv;
pthread_rwlock_t rwl;
@@ -62,7 +56,7 @@
r= pthread_cond_init(&cv, NULL); assert(!r);
r= pthread_rwlock_init(&rwl, NULL); assert(!r);
- r= sem_init( &quit_now, 0,0 ); assert(OS_IS_DARWIN || !r);
+ r= sem_init( &quit_now, 0,0 ); assert(!r);
r= pthread_create( &grabber, NULL, grab_the_lock, NULL ); assert(!r);
sleep(1); /* let the grabber get there first */
@@ -83,8 +77,8 @@
/* mx is held by someone else. */
r= pthread_cond_wait(&cv, &mx[2] );
- r= sem_post( &quit_now ); assert(OS_IS_DARWIN || !r);
- r= sem_post( &quit_now ); assert(OS_IS_DARWIN || !r);
+ r= sem_post( &quit_now ); assert(!r);
+ r= sem_post( &quit_now ); assert(!r);
r= pthread_join( my_rescuer, NULL ); assert(!r);
r= pthread_join( grabber, NULL ); assert(!r);
Modified: trunk/helgrind/tests/tc23_bogus_condwait.stderr.exp
===================================================================
--- trunk/helgrind/tests/tc23_bogus_condwait.stderr.exp 2009-07-23 16:31:39 UTC (rev 10560)
+++ trunk/helgrind/tests/tc23_bogus_condwait.stderr.exp 2009-07-23 17:22:11 UTC (rev 10561)
@@ -3,18 +3,18 @@
Thread #x: pthread_cond_{timed}wait called with invalid mutex
at 0x........: pthread_cond_wait@* (hg_intercepts.c:...)
- by 0x........: main (tc23_bogus_condwait.c:75)
+ by 0x........: main (tc23_bogus_condwait.c:69)
Thread #x: pthread_cond_{timed}wait called with un-held mutex
at 0x........: pthread_cond_wait@* (hg_intercepts.c:...)
- by 0x........: main (tc23_bogus_condwait.c:78)
+ by 0x........: main (tc23_bogus_condwait.c:72)
Thread #x: pthread_cond_{timed}wait called with mutex of type pthread_rwlock_t*
at 0x........: pthread_cond_wait@* (hg_intercepts.c:...)
- by 0x........: main (tc23_bogus_condwait.c:81)
+ by 0x........: main (tc23_bogus_condwait.c:75)
Thread #x: pthread_cond_{timed}wait called with mutex held by a different thread
at 0x........: pthread_cond_wait@* (hg_intercepts.c:...)
- by 0x........: main (tc23_bogus_condwait.c:84)
+ by 0x........: main (tc23_bogus_condwait.c:78)
ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
Modified: trunk/helgrind/tests/tc24_nonzero_sem.c
===================================================================
--- trunk/helgrind/tests/tc24_nonzero_sem.c 2009-07-23 16:31:39 UTC (rev 10560)
+++ trunk/helgrind/tests/tc24_nonzero_sem.c 2009-07-23 17:22:11 UTC (rev 10561)
@@ -8,19 +8,13 @@
#include <semaphore.h>
#include <assert.h>
-#ifdef __APPLE__
-#define OS_IS_DARWIN 1
-#else
-#define OS_IS_DARWIN 0
-#endif
-
#define N_THREADS 3
void* child_fn ( void* semV )
{
int r;
sem_t* sem = (sem_t*)semV;
- r= sem_wait(sem); assert(OS_IS_DARWIN || !r);
+ r= sem_wait(sem); assert(!r);
return NULL;
}
@@ -30,7 +24,7 @@
sem_t sem;
pthread_t child[N_THREADS];
- r= sem_init(&sem, 0, N_THREADS); assert(OS_IS_DARWIN || !r);
+ r= sem_init(&sem, 0, N_THREADS); assert(!r);
for (i = 0; i < N_THREADS; i++) {
r= pthread_create( &child[i], NULL, child_fn, (void*)&sem );
|
|
From: <sv...@va...> - 2009-07-23 16:31:42
|
Author: bart
Date: 2009-07-23 17:31:39 +0100 (Thu, 23 Jul 2009)
New Revision: 10560
Log:
Added support for sem_open() and sem_close().
Added:
trunk/drd/tests/sem_open.c
trunk/drd/tests/sem_open.stderr.exp
trunk/drd/tests/sem_open.vgtest
trunk/drd/tests/sem_open2.stderr.exp
trunk/drd/tests/sem_open2.vgtest
trunk/drd/tests/sem_open3.stderr.exp
trunk/drd/tests/sem_open3.vgtest
Modified:
trunk/drd/drd_clientreq.c
trunk/drd/drd_clientreq.h
trunk/drd/drd_pthread_intercepts.c
trunk/drd/drd_semaphore.c
trunk/drd/drd_semaphore.h
trunk/drd/tests/
trunk/drd/tests/Makefile.am
Modified: trunk/drd/drd_clientreq.c
===================================================================
--- trunk/drd/drd_clientreq.c 2009-07-23 16:24:45 UTC (rev 10559)
+++ trunk/drd/drd_clientreq.c 2009-07-23 16:31:39 UTC (rev 10560)
@@ -371,6 +371,24 @@
DRD_(semaphore_destroy)(arg[1]);
break;
+ case VG_USERREQ__PRE_SEM_OPEN:
+ DRD_(thread_enter_synchr)(drd_tid);
+ break;
+
+ case VG_USERREQ__POST_SEM_OPEN:
+ if (DRD_(thread_leave_synchr)(drd_tid) == 0)
+ DRD_(semaphore_open)(arg[1], (Char*)arg[2], arg[3], arg[4], arg[5]);
+ break;
+
+ case VG_USERREQ__PRE_SEM_CLOSE:
+ if (DRD_(thread_enter_synchr)(drd_tid) == 0)
+ DRD_(semaphore_close)(arg[1]);
+ break;
+
+ case VG_USERREQ__POST_SEM_CLOSE:
+ DRD_(thread_leave_synchr)(drd_tid);
+ break;
+
case VG_USERREQ__PRE_SEM_WAIT:
if (DRD_(thread_enter_synchr)(drd_tid) == 0)
DRD_(semaphore_pre_wait)(arg[1]);
Modified: trunk/drd/drd_clientreq.h
===================================================================
--- trunk/drd/drd_clientreq.h 2009-07-23 16:24:45 UTC (rev 10559)
+++ trunk/drd/drd_clientreq.h 2009-07-23 16:31:39 UTC (rev 10560)
@@ -143,6 +143,18 @@
/* To notify the drd tool of a sem_destroy call. */
VG_USERREQ__POST_SEM_DESTROY,
/* args: Addr sem */
+ /* To notify the drd tool of a sem_open call. */
+ VG_USERREQ__PRE_SEM_OPEN,
+ /* args: Addr name, Word oflag, Word mode, Word value */
+ /* To notify the drd tool of a sem_open call. */
+ VG_USERREQ__POST_SEM_OPEN,
+ /* args: Addr sem, Word oflag, Word mode, Word value */
+ /* To notify the drd tool of a sem_close call. */
+ VG_USERREQ__PRE_SEM_CLOSE,
+ /* args: Addr sem */
+ /* To notify the drd tool of a sem_close call. */
+ VG_USERREQ__POST_SEM_CLOSE,
+ /* args: Addr sem */
/* To notify the drd tool of a sem_wait call. */
VG_USERREQ__PRE_SEM_WAIT,
/* args: Addr sem */
Modified: trunk/drd/drd_pthread_intercepts.c
===================================================================
--- trunk/drd/drd_pthread_intercepts.c 2009-07-23 16:24:45 UTC (rev 10559)
+++ trunk/drd/drd_pthread_intercepts.c 2009-07-23 16:31:39 UTC (rev 10560)
@@ -838,6 +838,39 @@
return ret;
}
+// sem_open
+PTH_FUNC(sem_t *, semZuopen, // sem_open
+ const char *name, int oflag, mode_t mode, unsigned int value)
+{
+ sem_t *ret;
+ int res;
+ OrigFn fn;
+ VALGRIND_GET_ORIG_FN(fn);
+ VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__PRE_SEM_OPEN,
+ name, oflag, mode, value, 0);
+ CALL_FN_W_WWWW(ret, fn, name, oflag, mode, value);
+ VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_SEM_OPEN,
+ ret != SEM_FAILED ? ret : 0,
+ name, oflag, mode, value);
+ return ret;
+}
+
+// sem_close
+PTH_FUNC(int, semZuclose, // sem_close
+ sem_t *sem)
+{
+ int ret;
+ int res;
+ OrigFn fn;
+ VALGRIND_GET_ORIG_FN(fn);
+ VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__PRE_SEM_CLOSE,
+ sem, 0, 0, 0, 0);
+ CALL_FN_W_W(ret, fn, sem);
+ VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_SEM_CLOSE,
+ sem, 0, 0, 0, 0);
+ return ret;
+}
+
// sem_wait
PTH_FUNC(int, semZuwaitZa, // sem_wait*
sem_t *sem)
Modified: trunk/drd/drd_semaphore.c
===================================================================
--- trunk/drd/drd_semaphore.c 2009-07-23 16:24:45 UTC (rev 10559)
+++ trunk/drd/drd_semaphore.c 2009-07-23 16:31:39 UTC (rev 10560)
@@ -49,7 +49,7 @@
/* Function definitions. */
/** Push a segment at the end of the queue 'p->last_sem_post_seg'. */
-static void DRD_(segment_push)(struct semaphore_info* p, Segment* sg)
+static void drd_segment_push(struct semaphore_info* p, Segment* sg)
{
Word n;
@@ -63,7 +63,7 @@
}
/** Pop a segment from the beginning of the queue 'p->last_sem_post_seg'. */
-static Segment* DRD_(segment_pop)(struct semaphore_info* p)
+static Segment* drd_segment_pop(struct semaphore_info* p)
{
Word sz;
Segment* sg;
@@ -94,8 +94,8 @@
* client semaphore at client addres 'semaphore'.
*/
static
-void DRD_(semaphore_initialize)(struct semaphore_info* const p,
- const Addr semaphore)
+void drd_semaphore_initialize(struct semaphore_info* const p,
+ const Addr semaphore)
{
tl_assert(semaphore != 0);
tl_assert(p->a1 == semaphore);
@@ -129,7 +129,7 @@
" upon",
&sei);
}
- while ((sg = DRD_(segment_pop)(p)))
+ while ((sg = drd_segment_pop(p)))
DRD_(sg_put)(sg);
VG_(deleteXA)(p->last_sem_post_seg);
}
@@ -141,7 +141,7 @@
*/
static
struct semaphore_info*
-DRD_(semaphore_get_or_allocate)(const Addr semaphore)
+drd_semaphore_get_or_allocate(const Addr semaphore)
{
struct semaphore_info *p;
@@ -151,7 +151,7 @@
{
tl_assert(offsetof(DrdClientobj, semaphore) == 0);
p = &(DRD_(clientobj_add)(semaphore, ClientSemaphore)->semaphore);
- DRD_(semaphore_initialize)(p, semaphore);
+ drd_semaphore_initialize(p, semaphore);
}
return p;
}
@@ -193,14 +193,14 @@
"Semaphore reinitialization",
&SEI);
// Remove all segments from the segment stack.
- while ((sg = DRD_(segment_pop)(p)))
+ while ((sg = drd_segment_pop(p)))
{
DRD_(sg_put)(sg);
}
}
else
{
- p = DRD_(semaphore_get_or_allocate)(semaphore);
+ p = drd_semaphore_get_or_allocate(semaphore);
}
tl_assert(p);
p->waits_to_skip = value;
@@ -238,12 +238,89 @@
DRD_(clientobj_remove)(semaphore, ClientSemaphore);
}
+/** Called after sem_open(). */
+struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore,
+ const Char* name, const Word oflag,
+ const Word mode, const UInt value)
+{
+ struct semaphore_info* p;
+ Segment* sg;
+
+ if (s_trace_semaphore)
+ {
+ VG_(message)(Vg_UserMsg,
+ "[%d] semaphore_open 0x%lx name %s"
+ " oflag %ld mode 0%lo value %u\n",
+ DRD_(thread_get_running_tid)(),
+ semaphore, name, oflag, mode, value);
+ }
+
+ /* Return if the sem_open() call failed. */
+ if (! semaphore)
+ return NULL;
+
+ p = semaphore_get(semaphore);
+ if (p)
+ {
+ const ThreadId vg_tid = VG_(get_running_tid)();
+ SemaphoreErrInfo SEI = { DRD_(thread_get_running_tid)(), semaphore };
+ VG_(maybe_record_error)(vg_tid,
+ SemaphoreErr,
+ VG_(get_IP)(vg_tid),
+ "Semaphore reinitialization",
+ &SEI);
+ // Remove all segments from the segment stack.
+ while ((sg = drd_segment_pop(p)))
+ {
+ DRD_(sg_put)(sg);
+ }
+ }
+ else
+ {
+ p = drd_semaphore_get_or_allocate(semaphore);
+ }
+ tl_assert(p);
+ p->waits_to_skip = value;
+ p->value = value;
+ return p;
+}
+
+/** Called before sem_close(). */
+void DRD_(semaphore_close)(const Addr semaphore)
+{
+ struct semaphore_info* p;
+
+ p = semaphore_get(semaphore);
+
+ if (s_trace_semaphore)
+ {
+ VG_(message)(Vg_UserMsg,
+ "[%d] semaphore_close 0x%lx value %u\n",
+ DRD_(thread_get_running_tid)(),
+ semaphore,
+ p ? p->value : 0);
+ }
+
+ if (p == 0)
+ {
+ GenericErrInfo GEI = { DRD_(thread_get_running_tid)() };
+ VG_(maybe_record_error)(VG_(get_running_tid)(),
+ GenericErr,
+ VG_(get_IP)(VG_(get_running_tid)()),
+ "Not a semaphore",
+ &GEI);
+ return;
+ }
+
+ DRD_(clientobj_remove)(semaphore, ClientSemaphore);
+}
+
/** Called before sem_wait(). */
void DRD_(semaphore_pre_wait)(const Addr semaphore)
{
struct semaphore_info* p;
- p = DRD_(semaphore_get_or_allocate)(semaphore);
+ p = drd_semaphore_get_or_allocate(semaphore);
tl_assert(p);
p->waiters++;
@@ -289,7 +366,7 @@
/*
* Note: if another thread destroyed and reinitialized a semaphore while
* the current thread was waiting in sem_wait, p->waiters may have been
- * set to zero by DRD_(semaphore_initialize)() after
+ * set to zero by drd_semaphore_initialize() after
* DRD_(semaphore_pre_wait)() has finished before
* DRD_(semaphore_post_wait)() has been called.
*/
@@ -308,7 +385,7 @@
p->waits_to_skip--;
else
{
- sg = DRD_(segment_pop)(p);
+ sg = drd_segment_pop(p);
tl_assert(sg);
if (sg)
{
@@ -331,7 +408,7 @@
struct semaphore_info* p;
Segment* sg;
- p = DRD_(semaphore_get_or_allocate)(semaphore);
+ p = drd_semaphore_get_or_allocate(semaphore);
p->value++;
if (s_trace_semaphore)
@@ -347,7 +424,7 @@
sg = 0;
DRD_(thread_get_latest_segment)(&sg, tid);
tl_assert(sg);
- DRD_(segment_push)(p, sg);
+ drd_segment_push(p, sg);
DRD_(thread_new_segment)(tid);
s_semaphore_segment_creation_count++;
}
Modified: trunk/drd/drd_semaphore.h
===================================================================
--- trunk/drd/drd_semaphore.h 2009-07-23 16:24:45 UTC (rev 10559)
+++ trunk/drd/drd_semaphore.h 2009-07-23 16:31:39 UTC (rev 10560)
@@ -42,6 +42,10 @@
const Word pshared,
const UInt value);
void DRD_(semaphore_destroy)(const Addr semaphore);
+struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore,
+ const Char* name, const Word oflag,
+ const Word mode, const UInt value);
+void DRD_(semaphore_close)(const Addr semaphore);
void DRD_(semaphore_pre_wait)(const Addr semaphore);
void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore,
const Bool waited);
Property changes on: trunk/drd/tests
___________________________________________________________________
Name: svn:ignore
- *.dSYM
*.stderr.diff*
*.stderr.out
*.stdout.diff*
*.stdout.out
.deps
annotate_rwlock
atomic_var
bar_bad
bar_trivial
boost_thread
circular_buffer
custom_alloc
drd_bitmap_test
fp_race
hg01_all_ok
hg02_deadlock
hg03_inherit
hg04_race
hg05_race2
hg06_readshared
hold_lock
linuxthreads_det
Makefile
Makefile.in
matinv
memory_allocation
monitor_example
new_delete
omp_matinv
omp_prime
omp_printf
pth_barrier
pth_barrier_race
pth_barrier_reinit
pth_broadcast
pth_cancel_locked
pth_cleanup_handler
pth_cond_race
pth_create_chain
pth_create_glibc_2_0
pth_detached
pth_detached_sem
pth_inconsistent_cond_wait
pth_mutex_reinit
pth_process_shared_mutex
pth_spinlock
qt4_mutex
qt4_rwlock
qt4_semaphore
recursive_mutex
rwlock_race
rwlock_test
sem_as_mutex
sigalrm
tc01_simple_race
tc02_simple_tls
tc03_re_excl
tc04_free_lock
tc05_simple_race
tc06_two_races
tc07_hbl1
tc08_hbl2
tc09_bad_unlock
tc10_rec_lock
tc11_XCHG
tc12_rwl_trivial
tc13_laog1
tc15_laog_lockdel
tc16_byterace
tc17_sembar
tc18_semabuse
tc19_shadowmem
tc20_verifywrap
tc21_pthonce
tc22_exit_w_lock
tc23_bogus_condwait
tc24_nonzero_sem
thread_name
trylock
tsan_unittest
unit_bitmap
unit_vc
vg_regtest.tmp*
+ *.dSYM
*.stderr.diff*
*.stderr.out
*.stdout.diff*
*.stdout.out
.deps
annotate_rwlock
atomic_var
bar_bad
bar_trivial
boost_thread
circular_buffer
custom_alloc
drd_bitmap_test
fp_race
hg01_all_ok
hg02_deadlock
hg03_inherit
hg04_race
hg05_race2
hg06_readshared
hold_lock
linuxthreads_det
Makefile
Makefile.in
matinv
memory_allocation
monitor_example
new_delete
omp_matinv
omp_prime
omp_printf
pth_barrier
pth_barrier_race
pth_barrier_reinit
pth_broadcast
pth_cancel_locked
pth_cleanup_handler
pth_cond_race
pth_create_chain
pth_create_glibc_2_0
pth_detached
pth_detached_sem
pth_inconsistent_cond_wait
pth_mutex_reinit
pth_process_shared_mutex
pth_spinlock
qt4_mutex
qt4_rwlock
qt4_semaphore
recursive_mutex
rwlock_race
rwlock_test
sem_as_mutex
sem_open
sigalrm
tc01_simple_race
tc02_simple_tls
tc03_re_excl
tc04_free_lock
tc05_simple_race
tc06_two_races
tc07_hbl1
tc08_hbl2
tc09_bad_unlock
tc10_rec_lock
tc11_XCHG
tc12_rwl_trivial
tc13_laog1
tc15_laog_lockdel
tc16_byterace
tc17_sembar
tc18_semabuse
tc19_shadowmem
tc20_verifywrap
tc21_pthonce
tc22_exit_w_lock
tc23_bogus_condwait
tc24_nonzero_sem
thread_name
trylock
tsan_unittest
unit_bitmap
unit_vc
vg_regtest.tmp*
Modified: trunk/drd/tests/Makefile.am
===================================================================
--- trunk/drd/tests/Makefile.am 2009-07-23 16:24:45 UTC (rev 10559)
+++ trunk/drd/tests/Makefile.am 2009-07-23 16:31:39 UTC (rev 10560)
@@ -148,6 +148,12 @@
sem_as_mutex2.vgtest \
sem_as_mutex3.stderr.exp \
sem_as_mutex3.vgtest \
+ sem_open.stderr.exp \
+ sem_open.vgtest \
+ sem_open2.stderr.exp \
+ sem_open2.vgtest \
+ sem_open3.stderr.exp \
+ sem_open3.vgtest \
sigalrm.stderr.exp \
sigalrm.vgtest \
tc01_simple_race.stderr.exp \
@@ -245,6 +251,7 @@
rwlock_race \
rwlock_test \
sem_as_mutex \
+ sem_open \
sigalrm \
thread_name \
trylock \
Added: trunk/drd/tests/sem_open.c
===================================================================
--- trunk/drd/tests/sem_open.c (rev 0)
+++ trunk/drd/tests/sem_open.c 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,118 @@
+/* Use a semaphore to implement mutual exclusion. */
+
+#include <assert.h>
+#include <fcntl.h> /* O_CREAT */
+#include <pthread.h>
+#include <semaphore.h>
+#include <stdio.h> /* printf() */
+#include <stdlib.h> /* exit() */
+#include <unistd.h> /* sleep() */
+
+/* Local functions declarations. */
+
+static void* thread_func(void*);
+
+
+/* Local variables. */
+
+/* s_sem protects s_d3. */
+static sem_t* s_sem;
+
+static double s_d1; /* accessed before thread creation and in the created */
+ /* thread (not a race). */
+static double s_d2; /* accessed in the created thread and after the join */
+ /* (not a race). */
+static double s_d3; /* accessed simultaneously from both threads (race). */
+static int s_debug = 0;
+static int s_do_printf = 0;
+static int s_do_mutual_exclusion = 0;
+
+
+/* Function definitions. */
+
+int main(int argc, char** argv)
+{
+ int optchar;
+ pthread_t threadid;
+ char semaphore_name[32];
+
+ while ((optchar = getopt(argc, argv, "dmp")) != EOF)
+ {
+ switch (optchar)
+ {
+ case 'd':
+ s_debug = 1;
+ break;
+ case 'm':
+ s_do_mutual_exclusion = 1;
+ break;
+ case 'p':
+ s_do_printf = 1;
+ break;
+ default:
+ assert(0);
+ }
+ }
+
+ /*
+ * Use the ipcs and ipcrm commands to clean up named semaphores left by
+ * aborted instances of this process.
+ */
+ snprintf(semaphore_name, sizeof(semaphore_name), "sem_open-%d", getpid());
+ s_sem = sem_open(semaphore_name, O_CREAT, 0600, 1);
+ if (s_sem == SEM_FAILED)
+ {
+ fprintf(stderr, "Failed to create a semaphore with name %s\n",
+ semaphore_name);
+ exit(1);
+ }
+
+ /*
+ * Switch to line-buffered mode, such that timing information can be
+ * obtained for each printf() call with strace.
+ */
+ setlinebuf(stdout);
+
+ if (s_debug)
+ {
+ printf("&s_d1 = %p; &s_d2 = %p; &s_d3 = %p\n", &s_d1, &s_d2, &s_d3);
+ }
+
+ s_d1 = 1;
+ s_d3 = 3;
+
+ pthread_create(&threadid, 0, thread_func, 0);
+
+ sleep(1); /* Wait until thread_func() finished. */
+
+ {
+ if (s_do_mutual_exclusion) sem_wait(s_sem);
+ s_d3++;
+ if (s_do_mutual_exclusion) sem_post(s_sem);
+ }
+
+ /* Wait until the thread finished. */
+ pthread_join(threadid, 0);
+ if (s_do_printf) printf("s_d2 = %g (should be 2)\n", s_d2);
+ if (s_do_printf) printf("s_d3 = %g (should be 5)\n", s_d3);
+
+ sem_close(s_sem);
+ sem_unlink(semaphore_name);
+
+ return 0;
+}
+
+static void* thread_func(void* thread_arg)
+{
+ if (s_do_printf)
+ {
+ printf("s_d1 = %g (should be 1)\n", s_d1);
+ }
+ s_d2 = 2;
+ {
+ if (s_do_mutual_exclusion) sem_wait(s_sem);
+ s_d3++;
+ if (s_do_mutual_exclusion) sem_post(s_sem);
+ }
+ return 0;
+}
Added: trunk/drd/tests/sem_open.stderr.exp
===================================================================
--- trunk/drd/tests/sem_open.stderr.exp (rev 0)
+++ trunk/drd/tests/sem_open.stderr.exp 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,20 @@
+
+Conflicting load by thread 1 at 0x........ size 8
+ at 0x........: main (sem_open.c:?)
+Location 0x........ is 0 bytes inside local var "s_d3"
+declared at sem_open.c:25, in frame #? of thread 1
+Other segment start (thread 2)
+ (thread finished, call stack no longer available)
+Other segment end (thread 2)
+ (thread finished, call stack no longer available)
+
+Conflicting store by thread 1 at 0x........ size 8
+ at 0x........: main (sem_open.c:?)
+Location 0x........ is 0 bytes inside local var "s_d3"
+declared at sem_open.c:25, in frame #? of thread 1
+Other segment start (thread 2)
+ (thread finished, call stack no longer available)
+Other segment end (thread 2)
+ (thread finished, call stack no longer available)
+
+ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Added: trunk/drd/tests/sem_open.vgtest
===================================================================
--- trunk/drd/tests/sem_open.vgtest (rev 0)
+++ trunk/drd/tests/sem_open.vgtest 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,3 @@
+prereq: ./supported_libpthread
+vgopts: --check-stack-var=yes --read-var-info=yes
+prog: sem_open
Added: trunk/drd/tests/sem_open2.stderr.exp
===================================================================
--- trunk/drd/tests/sem_open2.stderr.exp (rev 0)
+++ trunk/drd/tests/sem_open2.stderr.exp 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,3 @@
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Added: trunk/drd/tests/sem_open2.vgtest
===================================================================
--- trunk/drd/tests/sem_open2.vgtest (rev 0)
+++ trunk/drd/tests/sem_open2.vgtest 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,4 @@
+prereq: ./supported_libpthread
+vgopts: --check-stack-var=yes --read-var-info=yes
+prog: sem_open
+args: -m
Added: trunk/drd/tests/sem_open3.stderr.exp
===================================================================
--- trunk/drd/tests/sem_open3.stderr.exp (rev 0)
+++ trunk/drd/tests/sem_open3.stderr.exp 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,11 @@
+
+Conflicting load by thread 1 at 0x........ size 8
+ at 0x........: main (sem_open.c:?)
+Location 0x........ is 0 bytes inside local var "s_d3"
+declared at sem_open.c:25, in frame #? of thread 1
+Other segment start (thread 2)
+ (thread finished, call stack no longer available)
+Other segment end (thread 2)
+ (thread finished, call stack no longer available)
+
+ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Added: trunk/drd/tests/sem_open3.vgtest
===================================================================
--- trunk/drd/tests/sem_open3.vgtest (rev 0)
+++ trunk/drd/tests/sem_open3.vgtest 2009-07-23 16:31:39 UTC (rev 10560)
@@ -0,0 +1,3 @@
+prereq: ./supported_libpthread
+vgopts: --check-stack-var=yes --first-race-only=yes --read-var-info=yes
+prog: sem_open
|
|
From: Nicholas N. <n.n...@gm...> - 2009-07-23 16:25:50
|
Nightly build on ocean ( Ubuntu 9.04, x86_64 )
Started at 2009-07-24 02:00:01 EST
Ended at 2009-07-24 02:25:55 EST
Results differ from 24 hours ago
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 516 tests, 1 stderr failure, 1 stdout failure, 0 post failures ==
none/tests/linux/mremap2 (stdout)
helgrind/tests/tc06_two_races_xml (stderr)
=================================================
== Results from 24 hours ago ==
=================================================
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 516 tests, 2 stderr failures, 3 stdout failures, 0 post failures ==
none/tests/cmdline1 (stdout)
none/tests/cmdline2 (stdout)
none/tests/linux/mremap2 (stdout)
helgrind/tests/rwlock_test (stderr)
helgrind/tests/tc06_two_races_xml (stderr)
=================================================
== Difference between 24 hours ago and now ==
=================================================
*** old.short Fri Jul 24 02:11:20 2009
--- new.short Fri Jul 24 02:25:55 2009
***************
*** 8,14 ****
! == 516 tests, 2 stderr failures, 3 stdout failures, 0 post failures ==
! none/tests/cmdline1 (stdout)
! none/tests/cmdline2 (stdout)
none/tests/linux/mremap2 (stdout)
- helgrind/tests/rwlock_test (stderr)
helgrind/tests/tc06_two_races_xml (stderr)
--- 8,11 ----
! == 516 tests, 1 stderr failure, 1 stdout failure, 0 post failures ==
none/tests/linux/mremap2 (stdout)
helgrind/tests/tc06_two_races_xml (stderr)
=================================================
./valgrind-new/helgrind/tests/tc06_two_races_xml.stderr.diff
=================================================
--- tc06_two_races_xml.stderr.exp 2009-07-24 02:11:41.000000000 +1000
+++ tc06_two_races_xml.stderr.out 2009-07-24 02:23:58.000000000 +1000
@@ -43,12 +43,15 @@
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>do_clone</fn>
+ <fn>pthread_create@@GLIBC_2.2.5</fn>
</frame>
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>pthread_create@@GLIBC_2.2.5</fn>
+ <fn>pthread_create_WRK</fn>
+ <dir>...</dir>
+ <file>hg_intercepts.c</file>
+ <line>...</line>
</frame>
<frame>
<ip>0x........</ip>
=================================================
./valgrind-new/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-07-24 02:13:56.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 02:23:03.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
..................................................
..................................................
-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
..................................................
..................................................
-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-new/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-07-24 02:13:56.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 02:23:03.000000000 +1000
@@ -188,37 +188,37 @@
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-new/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-07-24 02:13:56.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 02:23:03.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
..................................................
..................................................
-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
..................................................
..................................................
-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-old/helgrind/tests/rwlock_test.stderr.diff
=================================================
--- rwlock_test.stderr.exp 2009-07-24 02:00:25.000000000 +1000
+++ rwlock_test.stderr.out 2009-07-24 02:09:20.000000000 +1000
@@ -1,4 +1,5 @@
+s_counter - thread_count * iterations = 0
Finished.
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/helgrind/tests/tc06_two_races_xml.stderr.diff
=================================================
--- tc06_two_races_xml.stderr.exp 2009-07-24 02:00:25.000000000 +1000
+++ tc06_two_races_xml.stderr.out 2009-07-24 02:09:23.000000000 +1000
@@ -43,12 +43,15 @@
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>do_clone</fn>
+ <fn>pthread_create@@GLIBC_2.2.5</fn>
</frame>
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>pthread_create@@GLIBC_2.2.5</fn>
+ <fn>pthread_create_WRK</fn>
+ <dir>...</dir>
+ <file>hg_intercepts.c</file>
+ <line>...</line>
</frame>
<frame>
<ip>0x........</ip>
=================================================
./valgrind-old/none/tests/cmdline1.stdout.diff
=================================================
--- cmdline1.stdout.exp 2009-07-24 02:01:24.000000000 +1000
+++ cmdline1.stdout.out 2009-07-24 02:08:23.000000000 +1000
@@ -26,7 +26,8 @@
handle non-standard kernel variants
--read-var-info=yes|no read debug info on stack and global variables
and use it to print better error messages in
- tools that make use of it (Memcheck, Helgrind)
+ tools that make use of it (Memcheck, Helgrind,
+ DRD)
user options for Valgrind tools that report errors:
--xml=yes emit error output in XML (some tools only)
=================================================
./valgrind-old/none/tests/cmdline2.stdout.diff
=================================================
--- cmdline2.stdout.exp 2009-07-24 02:01:24.000000000 +1000
+++ cmdline2.stdout.out 2009-07-24 02:08:23.000000000 +1000
@@ -26,7 +26,8 @@
handle non-standard kernel variants
--read-var-info=yes|no read debug info on stack and global variables
and use it to print better error messages in
- tools that make use of it (Memcheck, Helgrind)
+ tools that make use of it (Memcheck, Helgrind,
+ DRD)
user options for Valgrind tools that report errors:
--xml=yes emit error output in XML (some tools only)
=================================================
./valgrind-old/none/tests/linux/mremap2.stdout.diff
=================================================
--- mremap2.stdout.exp 2009-07-24 02:01:20.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 02:08:28.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
..................................................
..................................................
-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
..................................................
..................................................
-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-old/none/tests/linux/mremap2.stdout.diff-glibc28-amd64
=================================================
--- mremap2.stdout.exp-glibc28-amd64 2009-07-24 02:01:20.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 02:08:28.000000000 +1000
@@ -188,37 +188,37 @@
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-old/none/tests/linux/mremap2.stdout.diff2
=================================================
--- mremap2.stdout.exp2 2009-07-24 02:01:20.000000000 +1000
+++ mremap2.stdout.out 2009-07-24 02:08:28.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
..................................................
..................................................
-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
..................................................
..................................................
-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: <sv...@va...> - 2009-07-23 16:24:53
|
Author: bart
Date: 2009-07-23 17:24:45 +0100 (Thu, 23 Jul 2009)
New Revision: 10559
Log:
Another update of the testing instructions.
Modified:
trunk/drd/Testing.txt
Modified: trunk/drd/Testing.txt
===================================================================
--- trunk/drd/Testing.txt 2009-07-23 16:24:02 UTC (rev 10558)
+++ trunk/drd/Testing.txt 2009-07-23 16:24:45 UTC (rev 10559)
@@ -33,11 +33,11 @@
perl tests/vg_regtest drd
7. Run the regression tests that were developed for Thread Sanitizer:
- ./vg-in-place --tool=drd --check-stack-var=yes drt/test/tsan_unittest 2>&1|less
+ ./vg-in-place --tool=drd --check-stack-var=yes drd/tests/tsan_unittest 2>&1|less
8. Test the slowdown for matinv for various matrix sizes via the script
- drd/scripts/run-matinv (must be about 24 for i == 1 and about
- 31 for i == 10 with n == 200).
+ drd/scripts/run-matinv (must be about 25 for i == 1 and about
+ 50 for i == 10 with n == 200).
9. Test whether DRD works with standard KDE applications and whether it does
not print any false positives. Test this both with KDE3 and KDE4.
|
|
From: <sv...@va...> - 2009-07-23 16:24:07
|
Author: bart
Date: 2009-07-23 17:24:02 +0100 (Thu, 23 Jul 2009)
New Revision: 10558
Log:
Added (and commented out) more debugging code.
Modified:
trunk/drd/drd_clientobj.c
Modified: trunk/drd/drd_clientobj.c
===================================================================
--- trunk/drd/drd_clientobj.c 2009-07-23 10:52:32 UTC (rev 10557)
+++ trunk/drd/drd_clientobj.c 2009-07-23 16:24:02 UTC (rev 10558)
@@ -181,6 +181,10 @@
{
VG_(message)(Vg_UserMsg, "Removing client object 0x%lx of type %d\n",
p->any.a1, p->any.type);
+#if 0
+ VG_(get_and_pp_StackTrace)(VG_(get_running_tid)(),
+ VG_(clo_backtrace_size));
+#endif
}
tl_assert(p->any.cleanup);
|
|
From: Rich C. <Ric...@me...> - 2009-07-23 14:47:10
|
Nightly build on macbook ( Darwin 9.6.0 i386 )
Started at 2009-07-22 22:45:27 CDT
Ended at 2009-07-22 23:04:44 CDT
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
== 319 tests, 9 stderr failures, 2 stdout failures, 0 post failures ==
memcheck/tests/lsframe1 (stderr)
memcheck/tests/lsframe2 (stderr)
memcheck/tests/origin5-bz2 (stderr)
memcheck/tests/stack_changes (stdout)
memcheck/tests/stack_changes (stderr)
memcheck/tests/varinfo3 (stderr)
memcheck/tests/varinfo5 (stderr)
memcheck/tests/vcpu_fnfns (stdout)
none/tests/async-sigs (stderr)
none/tests/faultstatus (stderr)
none/tests/pth_blockedsig (stderr)
=================================================
./valgrind-new/memcheck/tests/lsframe1.stderr.diff
=================================================
--- lsframe1.stderr.exp 2009-07-22 22:55:49.000000000 -0500
+++ lsframe1.stderr.out 2009-07-22 23:00:29.000000000 -0500
@@ -1,6 +1,13 @@
-lsframe1: start
-lsframe1: done, result is -8388608
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Access not within mapped region at address 0x........
+ at 0x........: main (lsframe1.c:18)
+ 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 ....
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: ... bytes in ... blocks.
=================================================
./valgrind-new/memcheck/tests/lsframe2.stderr.diff
=================================================
--- lsframe2.stderr.exp 2009-07-22 22:55:52.000000000 -0500
+++ lsframe2.stderr.out 2009-07-22 23:00:31.000000000 -0500
@@ -1,6 +1,14 @@
lsframe2: start
-lsframe2: done, result is -272629760
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Access not within mapped region at address 0x........
+ at 0x........: rec (lsframe2.c:19)
+ 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 ....
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: ... bytes in ... blocks.
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-07-22 22:55:49.000000000 -0500
+++ origin5-bz2.stderr.out 2009-07-22 23:00:56.000000000 -0500
@@ -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,8 +49,8 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: mainSort (origin5-bz2.c:2854)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2855)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
@@ -60,8 +60,8 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: mainSort (origin5-bz2.c:2858)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2859)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
@@ -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,18 @@
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)
+ 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:6479)
+
+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 +115,7 @@
Uninitialised value was created by a client request
<truncated beyond 100 lines>
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-07-22 22:55:52.000000000 -0500
+++ origin5-bz2.stderr.out 2009-07-22 23:00:56.000000000 -0500
@@ -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:2855)
+ 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:2859)
+ 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,19 @@
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)
+ 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:6479)
+
+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)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
=================================================
./valgrind-new/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-07-22 22:55:49.000000000 -0500
+++ origin5-bz2.stderr.out 2009-07-22 23:00:56.000000000 -0500
@@ -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,102 @@
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:2855)
+ 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:2859)
+ 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-new/memcheck/tests/stack_changes.stderr.diff
=================================================
--- stack_changes.stderr.exp 2009-07-22 22:55:51.000000000 -0500
+++ stack_changes.stderr.out 2009-07-22 23:01:27.000000000 -0500
@@ -0,0 +1,7 @@
+Jump to the invalid address stated on the next line
+ at 0x........: ???
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Bad permissions for mapped region at address 0x........
+ at 0x........: ???
=================================================
./valgrind-new/memcheck/tests/stack_changes.stdout.diff
=================================================
--- stack_changes.stdout.exp 2009-07-22 22:55:51.000000000 -0500
+++ stack_changes.stdout.out 2009-07-22 23:01:26.000000000 -0500
@@ -1,3 +0,0 @@
-hello, world: 0
-hello, world: 1
-hello, world: 2
=================================================
./valgrind-new/memcheck/tests/stack_changes.stdout.diff2
=================================================
--- stack_changes.stdout.exp2 2009-07-22 22:55:50.000000000 -0500
+++ stack_changes.stdout.out 2009-07-22 23:01:26.000000000 -0500
@@ -1 +0,0 @@
-getcontext() doesn't seem to work
=================================================
./valgrind-new/memcheck/tests/varinfo3.stderr.diff
=================================================
--- varinfo3.stderr.exp 2009-07-22 22:55:50.000000000 -0500
+++ varinfo3.stderr.out 2009-07-22 23:01:39.000000000 -0500
@@ -31,7 +31,7 @@
by 0x........: bar (varinfo3.c:42)
by 0x........: foo (varinfo3.c:58)
by 0x........: main (varinfo3.c:66)
- Address 0x........ is 5 bytes inside data symbol "static_local_def.XXXX"
+ Address 0x........ is in the Data segment of ./varinfo3
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo3.c:28)
@@ -46,7 +46,7 @@
by 0x........: bar (varinfo3.c:44)
by 0x........: foo (varinfo3.c:58)
by 0x........: main (varinfo3.c:66)
- Address 0x........ is 7 bytes inside data symbol "static_local_undef.XXXX"
+ Address 0x........ is in the Data segment of ./varinfo3
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo3.c:28)
=================================================
./valgrind-new/memcheck/tests/varinfo5.stderr.diff
=================================================
--- varinfo5.stderr.exp 2009-07-22 22:55:52.000000000 -0500
+++ varinfo5.stderr.out 2009-07-22 23:01:40.000000000 -0500
@@ -119,7 +119,7 @@
by 0x........: varinfo3_main (varinfo5so.c:118)
by 0x........: varinfo5_main (varinfo5so.c:156)
by 0x........: main (varinfo5.c:5)
- Address 0x........ is 5 bytes inside data symbol "static_local_def.XXXX"
+ Address 0x........ is in the Data segment of /Users/coe/src/vg/nightly/valgrind-new/memcheck/tests/varinfo5so.so
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo5so.c:29)
@@ -138,7 +138,7 @@
by 0x........: varinfo3_main (varinfo5so.c:118)
by 0x........: varinfo5_main (varinfo5so.c:156)
by 0x........: main (varinfo5.c:5)
- Address 0x........ is 7 bytes inside data symbol "static_local_undef.XXXX"
+ Address 0x........ is in the Data segment of /Users/coe/src/vg/nightly/valgrind-new/memcheck/tests/varinfo5so.so
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo5so.c:29)
=================================================
./valgrind-new/memcheck/tests/vcpu_fnfns.stdout.diff
=================================================
--- vcpu_fnfns.stdout.exp 2009-07-22 22:55:49.000000000 -0500
+++ vcpu_fnfns.stdout.out 2009-07-22 23:01:46.000000000 -0500
@@ -91,16 +91,16 @@
ceilD(-1.2000000008000e+00) = -1.0000000000000e+00
ceilD(-1.1000000009000e+00) = -1.0000000000000e+00
ceilD(-1.0000000010000e+00) = -1.0000000000000e+00
- ceilD(-9.0000000110000e-01) = -0.0000000000000e+00
- ceilD(-8.0000000120000e-01) = -0.0000000000000e+00
- ceilD(-7.0000000130000e-01) = -0.0000000000000e+00
- ceilD(-6.0000000140000e-01) = -0.0000000000000e+00
- ceilD(-5.0000000150000e-01) = -0.0000000000000e+00
- ceilD(-4.0000000160000e-01) = -0.0000000000000e+00
- ceilD(-3.0000000170000e-01) = -0.0000000000000e+00
- ceilD(-2.0000000180000e-01) = -0.0000000000000e+00
- ceilD(-1.0000000190000e-01) = -0.0000000000000e+00
- ceilD(-1.9999992495467e-09) = -0.0000000000000e+00
+ ceilD(-9.0000000110000e-01) = +0.0000000000000e+00
+ ceilD(-8.0000000120000e-01) = +0.0000000000000e+00
+ ceilD(-7.0000000130000e-01) = +0.0000000000000e+00
+ ceilD(-6.0000000140000e-01) = +0.0000000000000e+00
+ ceilD(-5.0000000150000e-01) = +0.0000000000000e+00
+ ceilD(-4.0000000160000e-01) = +0.0000000000000e+00
+ ceilD(-3.0000000170000e-01) = +0.0000000000000e+00
+ ceilD(-2.0000000180000e-01) = +0.0000000000000e+00
+ ceilD(-1.0000000190000e-01) = +0.0000000000000e+00
+ ceilD(-1.9999992495467e-09) = +0.0000000000000e+00
ceilD(+9.9999997900001e-02) = +1.0000000000000e+00
ceilD(+1.9999999780000e-01) = +1.0000000000000e+00
ceilD(+2.9999999770000e-01) = +1.0000000000000e+00
@@ -132,16 +132,16 @@
ceilF( -1.2008e+00) = -1.0000e+00
ceilF( -1.1009e+00) = -1.0000e+00
ceilF( -1.0010e+00) = -1.0000e+00
- ceilF( -9.0110e-01) = -0.0000e+00
- ceilF( -8.0120e-01) = -0.0000e+00
- ceilF( -7.0130e-01) = -0.0000e+00
- ceilF( -6.0140e-01) = -0.0000e+00
- ceilF( -5.0150e-01) = -0.0000e+00
- ceilF( -4.0160e-01) = -0.0000e+00
- ceilF( -3.0170e-01) = -0.0000e+00
- ceilF( -2.0180e-01) = -0.0000e+00
- ceilF( -1.0190e-01) = -0.0000e+00
- ceilF( -1.9999e-03) = -0.0000e+00
+ ceilF( -9.0110e-01) = +0.0000e+00
+ ceilF( -8.0120e-01) = +0.0000e+00
+ ceilF( -7.0130e-01) = +0.0000e+00
+ ceilF( -6.0140e-01) = +0.0000e+00
+ ceilF( -5.0150e-01) = +0.0000e+00
+ ceilF( -4.0160e-01) = +0.0000e+00
+ ceilF( -3.0170e-01) = +0.0000e+00
+ ceilF( -2.0180e-01) = +0.0000e+00
+ ceilF( -1.0190e-01) = +0.0000e+00
+ ceilF( -1.9999e-03) = +0.0000e+00
ceilF( +9.7900e-02) = +1.0000e+00
ceilF( +1.9780e-01) = +1.0000e+00
ceilF( +2.9770e-01) = +1.0000e+00
@@ -305,7 +305,7 @@
cosF( -3.0170e-01) = +9.5483e-01
cosF( -2.0180e-01) = +9.7971e-01
cosF( -1.0190e-01) = +9.9481e-01
- cosF( -1.9999e-03) = +1.0000e-00
+ cosF( -1.9999e-03) = +1.0000e+00
cosF( +9.7900e-02) = +9.9521e-01
cosF( +1.9780e-01) = +9.8050e-01
cosF( +2.9770e-01) = +9.5601e-01
@@ -536,7 +536,7 @@
logD(+9.9999999900000e-02) = -2.3025850939940e+00
logD(+1.9999999980000e-01) = -1.6094379134341e+00
logD(+2.9999999970000e-01) = -1.2039728053259e+00
- logD(+3.9999999960000e-01) = -9.1629073287415e-01
+ logD(+3.9999999960000e-01) = -9.1629073287416e-01
logD(+4.9999999950000e-01) = -6.9314718155995e-01
logD(+5.9999999940000e-01) = -5.1082562476599e-01
logD(+6.9999999930000e-01) = -3.5667494493873e-01
@@ -617,7 +617,7 @@
log10F( +1.8981e+00) = +2.7832e-01
log10F( +1.9980e+00) = +3.0060e-01
asinD(-1.0000000000000e+00) = -1.5707963267949e+00
- asinD(-9.0000000010000e-01) = -1.1197695152281e+00
+ asinD(-9.0000000010000e-01) = -1.1197695152280e+00
asinD(-8.0000000020000e-01) = -9.2729521833495e-01
asinD(-7.0000000030000e-01) = -7.7539749703084e-01
asinD(-6.0000000040000e-01) = -6.4350110929328e-01
=================================================
./valgrind-new/memcheck/tests/vcpu_fnfns.stdout.diff-glibc28-amd64
=================================================
--- vcpu_fnfns.stdout.exp-glibc28-amd64 2009-07-22 22:55:51.000000000 -0500
+++ vcpu_fnfns.stdout.out 2009-07-22 23:01:46.000000000 -0500
@@ -91,16 +91,16 @@
ceilD(-1.2000000008000e+00) = -1.0000000000000e+00
ceilD(-1.1000000009000e+00) = -1.0000000000000e+00
ceilD(-1.0000000010000e+00) = -1.0000000000000e+00
- ceilD(-9.0000000110000e-01) = -0.0000000000000e+00
- ceilD(-8.0000000120000e-01) = -0.0000000000000e+00
- ceilD(-7.0000000130000e-01) = -0.0000000000000e+00
- ceilD(-6.0000000140000e-01) = -0.0000000000000e+00
- ceilD(-5.0000000150000e-01) = -0.0000000000000e+00
- ceilD(-4.0000000160000e-01) = -0.0000000000000e+00
- ceilD(-3.0000000170000e-01) = -0.0000000000000e+00
- ceilD(-2.0000000180000e-01) = -0.0000000000000e+00
- ceilD(-1.0000000190000e-01) = -0.0000000000000e+00
- ceilD(-1.9999992495467e-09) = -0.0000000000000e+00
+ ceilD(-9.0000000110000e-01) = +0.0000000000000e+00
+ ceilD(-8.0000000120000e-01) = +0.0000000000000e+00
+ ceilD(-7.0000000130000e-01) = +0.0000000000000e+00
+ ceilD(-6.0000000140000e-01) = +0.0000000000000e+00
+ ceilD(-5.0000000150000e-01) = +0.0000000000000e+00
+ ceilD(-4.0000000160000e-01) = +0.0000000000000e+00
+ ceilD(-3.0000000170000e-01) = +0.0000000000000e+00
+ ceilD(-2.0000000180000e-01) = +0.0000000000000e+00
+ ceilD(-1.0000000190000e-01) = +0.0000000000000e+00
+ ceilD(-1.9999992495467e-09) = +0.0000000000000e+00
ceilD(+9.9999997900001e-02) = +1.0000000000000e+00
ceilD(+1.9999999780000e-01) = +1.0000000000000e+00
ceilD(+2.9999999770000e-01) = +1.0000000000000e+00
@@ -132,16 +132,16 @@
ceilF( -1.2008e+00) = -1.0000e+00
ceilF( -1.1009e+00) = -1.0000e+00
ceilF( -1.0010e+00) = -1.0000e+00
- ceilF( -9.0110e-01) = -0.0000e+00
- ceilF( -8.0120e-01) = -0.0000e+00
- ceilF( -7.0130e-01) = -0.0000e+00
- ceilF( -6.0140e-01) = -0.0000e+00
- ceilF( -5.0150e-01) = -0.0000e+00
- ceilF( -4.0160e-01) = -0.0000e+00
- ceilF( -3.0170e-01) = -0.0000e+00
- ceilF( -2.0180e-01) = -0.0000e+00
- ceilF( -1.0190e-01) = -0.0000e+00
- ceilF( -1.9999e-03) = -0.0000e+00
+ ceilF( -9.0110e-01) = +0.0000e+00
+ ceilF( -8.0120e-01) = +0.0000e+00
+ ceilF( -7.0130e-01) = +0.0000e+00
+ ceilF( -6.0140e-01) = +0.0000e+00
+ ceilF( -5.0150e-01) = +0.0000e+00
+ ceilF( -4.0160e-01) = +0.0000e+00
+ ceilF( -3.0170e-01) = +0.0000e+00
+ ceilF( -2.0180e-01) = +0.0000e+00
+ ceilF( -1.0190e-01) = +0.0000e+00
+ ceilF( -1.9999e-03) = +0.0000e+00
ceilF( +9.7900e-02) = +1.0000e+00
ceilF( +1.9780e-01) = +1.0000e+00
ceilF( +2.9770e-01) = +1.0000e+00
@@ -536,7 +536,7 @@
logD(+9.9999999900000e-02) = -2.3025850939940e+00
logD(+1.9999999980000e-01) = -1.6094379134341e+00
logD(+2.9999999970000e-01) = -1.2039728053259e+00
- logD(+3.9999999960000e-01) = -9.1629073287415e-01
+ logD(+3.9999999960000e-01) = -9.1629073287416e-01
logD(+4.9999999950000e-01) = -6.9314718155995e-01
logD(+5.9999999940000e-01) = -5.1082562476599e-01
logD(+6.9999999930000e-01) = -3.5667494493873e-01
@@ -617,7 +617,7 @@
log10F( +1.8981e+00) = +2.7832e-01
log10F( +1.9980e+00) = +3.0060e-01
asinD(-1.0000000000000e+00) = -1.5707963267949e+00
- asinD(-9.0000000010000e-01) = -1.1197695152281e+00
+ asinD(-9.0000000010000e-01) = -1.1197695152280e+00
asinD(-8.0000000020000e-01) = -9.2729521833495e-01
asinD(-7.0000000030000e-01) = -7.7539749703084e-01
asinD(-6.0000000040000e-01) = -6.4350110929328e-01
=================================================
./valgrind-new/none/tests/async-sigs.stderr.diff
=================================================
--- async-sigs.stderr.exp 2009-07-22 22:56:00.000000000 -0500
+++ async-sigs.stderr.out 2009-07-22 23:02:52.000000000 -0500
@@ -1,8 +1,30 @@
-testing: blocking=0 caught=11 fatal=7... PASSED
+testing: blocking=0 caught=11 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: test (async-sigs.c:94)
+ by 0x........: main (async-sigs.c:129)
+PASSED
testing: blocking=0 caught=11 fatal=1... PASSED
-testing: blocking=0 caught=10 fatal=7... PASSED
-testing: blocking=0 caught=10 fatal=1... PASSED
-testing: blocking=1 caught=11 fatal=7... PASSED
+testing: blocking=0 caught=30 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: test (async-sigs.c:94)
+ by 0x........: main (async-sigs.c:131)
+PASSED
+testing: blocking=0 caught=30 fatal=1... PASSED
+testing: blocking=1 caught=11 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: __sigsuspend (in /...libc...)
+ by 0x........: test (async-sigs.c:95)
+ by 0x........: main (async-sigs.c:133)
+PASSED
testing: blocking=1 caught=11 fatal=1... PASSED
-testing: blocking=1 caught=10 fatal=7... PASSED
-testing: blocking=1 caught=10 fatal=1... PASSED
+testing: blocking=1 caught=30 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: __sigsuspend (in /...libc...)
+ by 0x........: test (async-sigs.c:95)
+ by 0x........: main (async-sigs.c:135)
+PASSED
+testing: blocking=1 caught=30 fatal=1... PASSED
=================================================
./valgrind-new/none/tests/faultstatus.stderr.diff
=================================================
--- faultstatus.stderr.exp 2009-07-22 22:56:02.000000000 -0500
+++ faultstatus.stderr.out 2009-07-22 23:02:57.000000000 -0500
@@ -1,6 +1,6 @@
-Test 1: PASS
-Test 2: PASS
-Test 3: PASS
-Test 4: PASS
+Test 1: FAIL: expected signal 11, not 10
+Test 2: FAIL: expected signal 11, not 10
+Test 3: FAIL: no fault, or handler returned
+Test 4: FAIL: expected si_code==7, not 0
=================================================
./valgrind-new/none/tests/pth_blockedsig.stderr.diff
=================================================
--- pth_blockedsig.stderr.exp 2009-07-22 22:56:00.000000000 -0500
+++ pth_blockedsig.stderr.out 2009-07-22 23:03:51.000000000 -0500
@@ -1,2 +1,4 @@
+UNKNOWN __pthread_sigmask is unsupported. This warning will not be repeated.
+SHOULD NOT BE HERE (SIGUSR1)!!!!
=================================================
./valgrind-old/memcheck/tests/lsframe1.stderr.diff
=================================================
--- lsframe1.stderr.exp 2009-07-22 22:46:09.000000000 -0500
+++ lsframe1.stderr.out 2009-07-22 22:51:17.000000000 -0500
@@ -1,6 +1,13 @@
-lsframe1: start
-lsframe1: done, result is -8388608
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Access not within mapped region at address 0x........
+ at 0x........: main (lsframe1.c:18)
+ 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 ....
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: ... bytes in ... blocks.
=================================================
./valgrind-old/memcheck/tests/lsframe2.stderr.diff
=================================================
--- lsframe2.stderr.exp 2009-07-22 22:46:10.000000000 -0500
+++ lsframe2.stderr.out 2009-07-22 22:51:18.000000000 -0500
@@ -1,6 +1,14 @@
lsframe2: start
-lsframe2: done, result is -272629760
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Access not within mapped region at address 0x........
+ at 0x........: rec (lsframe2.c:19)
+ 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 ....
ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
malloc/free: in use at exit: ... bytes in ... blocks.
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc25-amd64
=================================================
--- origin5-bz2.stderr.exp-glibc25-amd64 2009-07-22 22:46:09.000000000 -0500
+++ origin5-bz2.stderr.out 2009-07-22 22:51:44.000000000 -0500
@@ -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,8 +49,8 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: mainSort (origin5-bz2.c:2854)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2855)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
@@ -60,8 +60,8 @@
Uninitialised value was created by a client request
at 0x........: main (origin5-bz2.c:6479)
-Use of uninitialised value of size 8
- at 0x........: mainSort (origin5-bz2.c:2858)
+Use of uninitialised value of size 4
+ at 0x........: mainSort (origin5-bz2.c:2859)
by 0x........: BZ2_blockSort (origin5-bz2.c:3105)
by 0x........: BZ2_compressBlock (origin5-bz2.c:4034)
by 0x........: handle_compress (origin5-bz2.c:4753)
@@ -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,18 @@
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)
+ 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:6479)
+
+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 +115,7 @@
Uninitialised value was created by a client request
<truncated beyond 100 lines>
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc25-x86
=================================================
--- origin5-bz2.stderr.exp-glibc25-x86 2009-07-22 22:46:11.000000000 -0500
+++ origin5-bz2.stderr.out 2009-07-22 22:51:44.000000000 -0500
@@ -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:2855)
+ 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:2859)
+ 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,19 @@
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)
+ 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:6479)
+
+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)
by 0x........: handle_compress (origin5-bz2.c:4753)
by 0x........: BZ2_bzCompress (origin5-bz2.c:4822)
=================================================
./valgrind-old/memcheck/tests/origin5-bz2.stderr.diff-glibc27-ppc64
=================================================
--- origin5-bz2.stderr.exp-glibc27-ppc64 2009-07-22 22:46:09.000000000 -0500
+++ origin5-bz2.stderr.out 2009-07-22 22:51:44.000000000 -0500
@@ -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,102 @@
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:2855)
+ 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:2859)
+ 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-old/memcheck/tests/stack_changes.stderr.diff
=================================================
--- stack_changes.stderr.exp 2009-07-22 22:46:09.000000000 -0500
+++ stack_changes.stderr.out 2009-07-22 22:52:16.000000000 -0500
@@ -0,0 +1,7 @@
+Jump to the invalid address stated on the next line
+ at 0x........: ???
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+Process terminating with default action of signal 11 (SIGSEGV)
+ Bad permissions for mapped region at address 0x........
+ at 0x........: ???
=================================================
./valgrind-old/memcheck/tests/stack_changes.stdout.diff
=================================================
--- stack_changes.stdout.exp 2009-07-22 22:46:10.000000000 -0500
+++ stack_changes.stdout.out 2009-07-22 22:52:15.000000000 -0500
@@ -1,3 +0,0 @@
-hello, world: 0
-hello, world: 1
-hello, world: 2
=================================================
./valgrind-old/memcheck/tests/stack_changes.stdout.diff2
=================================================
--- stack_changes.stdout.exp2 2009-07-22 22:46:09.000000000 -0500
+++ stack_changes.stdout.out 2009-07-22 22:52:15.000000000 -0500
@@ -1 +0,0 @@
-getcontext() doesn't seem to work
=================================================
./valgrind-old/memcheck/tests/varinfo3.stderr.diff
=================================================
--- varinfo3.stderr.exp 2009-07-22 22:46:09.000000000 -0500
+++ varinfo3.stderr.out 2009-07-22 22:52:29.000000000 -0500
@@ -31,7 +31,7 @@
by 0x........: bar (varinfo3.c:42)
by 0x........: foo (varinfo3.c:58)
by 0x........: main (varinfo3.c:66)
- Address 0x........ is 5 bytes inside data symbol "static_local_def.XXXX"
+ Address 0x........ is in the Data segment of ./varinfo3
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo3.c:28)
@@ -46,7 +46,7 @@
by 0x........: bar (varinfo3.c:44)
by 0x........: foo (varinfo3.c:58)
by 0x........: main (varinfo3.c:66)
- Address 0x........ is 7 bytes inside data symbol "static_local_undef.XXXX"
+ Address 0x........ is in the Data segment of ./varinfo3
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo3.c:28)
=================================================
./valgrind-old/memcheck/tests/varinfo5.stderr.diff
=================================================
--- varinfo5.stderr.exp 2009-07-22 22:46:10.000000000 -0500
+++ varinfo5.stderr.out 2009-07-22 22:52:30.000000000 -0500
@@ -119,7 +119,7 @@
by 0x........: varinfo3_main (varinfo5so.c:118)
by 0x........: varinfo5_main (varinfo5so.c:156)
by 0x........: main (varinfo5.c:5)
- Address 0x........ is 5 bytes inside data symbol "static_local_def.XXXX"
+ Address 0x........ is in the Data segment of /Users/coe/src/vg/nightly/valgrind-old/memcheck/tests/varinfo5so.so
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo5so.c:29)
@@ -138,7 +138,7 @@
by 0x........: varinfo3_main (varinfo5so.c:118)
by 0x........: varinfo5_main (varinfo5so.c:156)
by 0x........: main (varinfo5.c:5)
- Address 0x........ is 7 bytes inside data symbol "static_local_undef.XXXX"
+ Address 0x........ is in the Data segment of /Users/coe/src/vg/nightly/valgrind-old/memcheck/tests/varinfo5so.so
Uninitialised byte(s) found during client check request
at 0x........: croak (varinfo5so.c:29)
=================================================
./valgrind-old/memcheck/tests/vcpu_fnfns.stdout.diff
=================================================
--- vcpu_fnfns.stdout.exp 2009-07-22 22:46:09.000000000 -0500
+++ vcpu_fnfns.stdout.out 2009-07-22 22:52:36.000000000 -0500
@@ -91,16 +91,16 @@
ceilD(-1.2000000008000e+00) = -1.0000000000000e+00
ceilD(-1.1000000009000e+00) = -1.0000000000000e+00
ceilD(-1.0000000010000e+00) = -1.0000000000000e+00
- ceilD(-9.0000000110000e-01) = -0.0000000000000e+00
- ceilD(-8.0000000120000e-01) = -0.0000000000000e+00
- ceilD(-7.0000000130000e-01) = -0.0000000000000e+00
- ceilD(-6.0000000140000e-01) = -0.0000000000000e+00
- ceilD(-5.0000000150000e-01) = -0.0000000000000e+00
- ceilD(-4.0000000160000e-01) = -0.0000000000000e+00
- ceilD(-3.0000000170000e-01) = -0.0000000000000e+00
- ceilD(-2.0000000180000e-01) = -0.0000000000000e+00
- ceilD(-1.0000000190000e-01) = -0.0000000000000e+00
- ceilD(-1.9999992495467e-09) = -0.0000000000000e+00
+ ceilD(-9.0000000110000e-01) = +0.0000000000000e+00
+ ceilD(-8.0000000120000e-01) = +0.0000000000000e+00
+ ceilD(-7.0000000130000e-01) = +0.0000000000000e+00
+ ceilD(-6.0000000140000e-01) = +0.0000000000000e+00
+ ceilD(-5.0000000150000e-01) = +0.0000000000000e+00
+ ceilD(-4.0000000160000e-01) = +0.0000000000000e+00
+ ceilD(-3.0000000170000e-01) = +0.0000000000000e+00
+ ceilD(-2.0000000180000e-01) = +0.0000000000000e+00
+ ceilD(-1.0000000190000e-01) = +0.0000000000000e+00
+ ceilD(-1.9999992495467e-09) = +0.0000000000000e+00
ceilD(+9.9999997900001e-02) = +1.0000000000000e+00
ceilD(+1.9999999780000e-01) = +1.0000000000000e+00
ceilD(+2.9999999770000e-01) = +1.0000000000000e+00
@@ -132,16 +132,16 @@
ceilF( -1.2008e+00) = -1.0000e+00
ceilF( -1.1009e+00) = -1.0000e+00
ceilF( -1.0010e+00) = -1.0000e+00
- ceilF( -9.0110e-01) = -0.0000e+00
- ceilF( -8.0120e-01) = -0.0000e+00
- ceilF( -7.0130e-01) = -0.0000e+00
- ceilF( -6.0140e-01) = -0.0000e+00
- ceilF( -5.0150e-01) = -0.0000e+00
- ceilF( -4.0160e-01) = -0.0000e+00
- ceilF( -3.0170e-01) = -0.0000e+00
- ceilF( -2.0180e-01) = -0.0000e+00
- ceilF( -1.0190e-01) = -0.0000e+00
- ceilF( -1.9999e-03) = -0.0000e+00
+ ceilF( -9.0110e-01) = +0.0000e+00
+ ceilF( -8.0120e-01) = +0.0000e+00
+ ceilF( -7.0130e-01) = +0.0000e+00
+ ceilF( -6.0140e-01) = +0.0000e+00
+ ceilF( -5.0150e-01) = +0.0000e+00
+ ceilF( -4.0160e-01) = +0.0000e+00
+ ceilF( -3.0170e-01) = +0.0000e+00
+ ceilF( -2.0180e-01) = +0.0000e+00
+ ceilF( -1.0190e-01) = +0.0000e+00
+ ceilF( -1.9999e-03) = +0.0000e+00
ceilF( +9.7900e-02) = +1.0000e+00
ceilF( +1.9780e-01) = +1.0000e+00
ceilF( +2.9770e-01) = +1.0000e+00
@@ -305,7 +305,7 @@
cosF( -3.0170e-01) = +9.5483e-01
cosF( -2.0180e-01) = +9.7971e-01
cosF( -1.0190e-01) = +9.9481e-01
- cosF( -1.9999e-03) = +1.0000e-00
+ cosF( -1.9999e-03) = +1.0000e+00
cosF( +9.7900e-02) = +9.9521e-01
cosF( +1.9780e-01) = +9.8050e-01
cosF( +2.9770e-01) = +9.5601e-01
@@ -536,7 +536,7 @@
logD(+9.9999999900000e-02) = -2.3025850939940e+00
logD(+1.9999999980000e-01) = -1.6094379134341e+00
logD(+2.9999999970000e-01) = -1.2039728053259e+00
- logD(+3.9999999960000e-01) = -9.1629073287415e-01
+ logD(+3.9999999960000e-01) = -9.1629073287416e-01
logD(+4.9999999950000e-01) = -6.9314718155995e-01
logD(+5.9999999940000e-01) = -5.1082562476599e-01
logD(+6.9999999930000e-01) = -3.5667494493873e-01
@@ -617,7 +617,7 @@
log10F( +1.8981e+00) = +2.7832e-01
log10F( +1.9980e+00) = +3.0060e-01
asinD(-1.0000000000000e+00) = -1.5707963267949e+00
- asinD(-9.0000000010000e-01) = -1.1197695152281e+00
+ asinD(-9.0000000010000e-01) = -1.1197695152280e+00
asinD(-8.0000000020000e-01) = -9.2729521833495e-01
asinD(-7.0000000030000e-01) = -7.7539749703084e-01
asinD(-6.0000000040000e-01) = -6.4350110929328e-01
=================================================
./valgrind-old/memcheck/tests/vcpu_fnfns.stdout.diff-glibc28-amd64
=================================================
--- vcpu_fnfns.stdout.exp-glibc28-amd64 2009-07-22 22:46:10.000000000 -0500
+++ vcpu_fnfns.stdout.out 2009-07-22 22:52:36.000000000 -0500
@@ -91,16 +91,16 @@
ceilD(-1.2000000008000e+00) = -1.0000000000000e+00
ceilD(-1.1000000009000e+00) = -1.0000000000000e+00
ceilD(-1.0000000010000e+00) = -1.0000000000000e+00
- ceilD(-9.0000000110000e-01) = -0.0000000000000e+00
- ceilD(-8.0000000120000e-01) = -0.0000000000000e+00
- ceilD(-7.0000000130000e-01) = -0.0000000000000e+00
- ceilD(-6.0000000140000e-01) = -0.0000000000000e+00
- ceilD(-5.0000000150000e-01) = -0.0000000000000e+00
- ceilD(-4.0000000160000e-01) = -0.0000000000000e+00
- ceilD(-3.0000000170000e-01) = -0.0000000000000e+00
- ceilD(-2.0000000180000e-01) = -0.0000000000000e+00
- ceilD(-1.0000000190000e-01) = -0.0000000000000e+00
- ceilD(-1.9999992495467e-09) = -0.0000000000000e+00
+ ceilD(-9.0000000110000e-01) = +0.0000000000000e+00
+ ceilD(-8.0000000120000e-01) = +0.0000000000000e+00
+ ceilD(-7.0000000130000e-01) = +0.0000000000000e+00
+ ceilD(-6.0000000140000e-01) = +0.0000000000000e+00
+ ceilD(-5.0000000150000e-01) = +0.0000000000000e+00
+ ceilD(-4.0000000160000e-01) = +0.0000000000000e+00
+ ceilD(-3.0000000170000e-01) = +0.0000000000000e+00
+ ceilD(-2.0000000180000e-01) = +0.0000000000000e+00
+ ceilD(-1.0000000190000e-01) = +0.0000000000000e+00
+ ceilD(-1.9999992495467e-09) = +0.0000000000000e+00
ceilD(+9.9999997900001e-02) = +1.0000000000000e+00
ceilD(+1.9999999780000e-01) = +1.0000000000000e+00
ceilD(+2.9999999770000e-01) = +1.0000000000000e+00
@@ -132,16 +132,16 @@
ceilF( -1.2008e+00) = -1.0000e+00
ceilF( -1.1009e+00) = -1.0000e+00
ceilF( -1.0010e+00) = -1.0000e+00
- ceilF( -9.0110e-01) = -0.0000e+00
- ceilF( -8.0120e-01) = -0.0000e+00
- ceilF( -7.0130e-01) = -0.0000e+00
- ceilF( -6.0140e-01) = -0.0000e+00
- ceilF( -5.0150e-01) = -0.0000e+00
- ceilF( -4.0160e-01) = -0.0000e+00
- ceilF( -3.0170e-01) = -0.0000e+00
- ceilF( -2.0180e-01) = -0.0000e+00
- ceilF( -1.0190e-01) = -0.0000e+00
- ceilF( -1.9999e-03) = -0.0000e+00
+ ceilF( -9.0110e-01) = +0.0000e+00
+ ceilF( -8.0120e-01) = +0.0000e+00
+ ceilF( -7.0130e-01) = +0.0000e+00
+ ceilF( -6.0140e-01) = +0.0000e+00
+ ceilF( -5.0150e-01) = +0.0000e+00
+ ceilF( -4.0160e-01) = +0.0000e+00
+ ceilF( -3.0170e-01) = +0.0000e+00
+ ceilF( -2.0180e-01) = +0.0000e+00
+ ceilF( -1.0190e-01) = +0.0000e+00
+ ceilF( -1.9999e-03) = +0.0000e+00
ceilF( +9.7900e-02) = +1.0000e+00
ceilF( +1.9780e-01) = +1.0000e+00
ceilF( +2.9770e-01) = +1.0000e+00
@@ -536,7 +536,7 @@
logD(+9.9999999900000e-02) = -2.3025850939940e+00
logD(+1.9999999980000e-01) = -1.6094379134341e+00
logD(+2.9999999970000e-01) = -1.2039728053259e+00
- logD(+3.9999999960000e-01) = -9.1629073287415e-01
+ logD(+3.9999999960000e-01) = -9.1629073287416e-01
logD(+4.9999999950000e-01) = -6.9314718155995e-01
logD(+5.9999999940000e-01) = -5.1082562476599e-01
logD(+6.9999999930000e-01) = -3.5667494493873e-01
@@ -617,7 +617,7 @@
log10F( +1.8981e+00) = +2.7832e-01
log10F( +1.9980e+00) = +3.0060e-01
asinD(-1.0000000000000e+00) = -1.5707963267949e+00
- asinD(-9.0000000010000e-01) = -1.1197695152281e+00
+ asinD(-9.0000000010000e-01) = -1.1197695152280e+00
asinD(-8.0000000020000e-01) = -9.2729521833495e-01
asinD(-7.0000000030000e-01) = -7.7539749703084e-01
asinD(-6.0000000040000e-01) = -6.4350110929328e-01
=================================================
./valgrind-old/none/tests/async-sigs.stderr.diff
=================================================
--- async-sigs.stderr.exp 2009-07-22 22:46:23.000000000 -0500
+++ async-sigs.stderr.out 2009-07-22 22:53:46.000000000 -0500
@@ -1,8 +1,30 @@
-testing: blocking=0 caught=11 fatal=7... PASSED
+testing: blocking=0 caught=11 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: test (async-sigs.c:94)
+ by 0x........: main (async-sigs.c:129)
+PASSED
testing: blocking=0 caught=11 fatal=1... PASSED
-testing: blocking=0 caught=10 fatal=7... PASSED
-testing: blocking=0 caught=10 fatal=1... PASSED
-testing: blocking=1 caught=11 fatal=7... PASSED
+testing: blocking=0 caught=30 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: test (async-sigs.c:94)
+ by 0x........: main (async-sigs.c:131)
+PASSED
+testing: blocking=0 caught=30 fatal=1... PASSED
+testing: blocking=1 caught=11 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: __sigsuspend (in /...libc...)
+ by 0x........: test (async-sigs.c:95)
+ by 0x........: main (async-sigs.c:133)
+PASSED
testing: blocking=1 caught=11 fatal=1... PASSED
-testing: blocking=1 caught=10 fatal=7... PASSED
-testing: blocking=1 caught=10 fatal=1... PASSED
+testing: blocking=1 caught=30 fatal=10...
+Process terminating with default action of signal 10 (SIGBUS)
+ Non-existent physical address at address 0x........
+ at 0x........: __sigsuspend (in /...libc...)
+ by 0x........: test (async-sigs.c:95)
+ by 0x........: main (async-sigs.c:135)
+PASSED
+testing: blocking=1 caught=30 fatal=1... PASSED
=================================================
./valgrind-old/none/tests/faultstatus.stderr.diff
=================================================
--- faultstatus.stderr.exp 2009-07-22 22:46:25.000000000 -0500
+++ faultstatus.stderr.out 2009-07-22 22:53:51.000000000 -0500
@@ -1,6 +1,6 @@
-Test 1: PASS
-Test 2: PASS
-Test 3: PASS
-Test 4: PASS
+Test 1: FAIL: expected signal 11, not 10
+Test 2: FAIL: expected signal 11, not 10
+Test 3: FAIL: no fault, or handler returned
+Test 4: FAIL: expected si_code==7, not 0
=================================================
./valgrind-old/none/tests/pth_blockedsig.stderr.diff
=================================================
--- pth_blockedsig.stderr.exp 2009-07-22 22:46:23.000000000 -0500
+++ pth_blockedsig.stderr.out 2009-07-22 22:54:45.000000000 -0500
@@ -1,2 +1,9 @@
+UNKNOWN __pthread_sigmask is unsupported. This warning will not be repeated.
+WARNING: unhandled syscall: unix:328
+You may be able to write your own handler.
+Read the file README_MISSING_SYSCALL_OR_IOCTL.
+Nevertheless we consider this a bug. Please report
+it at http://valgrind.org/support/bug_reports.html.
+error doing pthread_kill
--
Rich Coe ric...@me...
Virtual Principle Engineer General Electric Healthcare Technologies
Clinical Systems Engineering -- Compute Systems Team
|
|
From: Alexander P. <gl...@go...> - 2009-07-23 11:26:00
|
Hi Bart, you can take a look at http://data-race-test.googlecode.com/svn/trunk/tsan/ts_valgrind_intercepts.c to find the list of Darwin-specific function names to intercept. Alex On Thu, Jul 23, 2009 at 11:40 AM, Bart Van Assche<bar...@gm...> wrote: > On Thu, Jul 23, 2009 at 12:51 AM, Nicholas > Nethercote<n.n...@gm...> wrote: >> On Thu, Jul 23, 2009 at 5:17 AM, <sv...@va...> wrote: >>> Author: bart >>> Date: 2009-07-22 20:17:05 +0100 (Wed, 22 Jul 2009) >>> New Revision: 10534 >>> >>> Log: >>> More tweaking for Darwin. >> >> Bart, it's great to see you're working on Darwin support. What's the >> status -- how many of the tests are passing? > > The output I get from the command "perl tests/vg_regtest drd" on > Darwin is currently as follows: > > == 69 tests, 4 stderr failures, 0 stdout failures, 0 post failures == > drd/tests/circular_buffer (stderr) > drd/tests/pth_cond_race (stderr) > drd/tests/pth_inconsistent_cond_wait (stderr) > drd/tests/tc17_sembar (stderr) > > Bart. > > ------------------------------------------------------------------------------ > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > -- WBR, Alexander Potapenko Software Engineer Google Moscow |
|
From: Alexander P. <gl...@go...> - 2009-07-23 11:22:53
|
By the way, pth_inconsistent_cond_wait.c uses sem_init() as well, so it's incorrect to run it on Darwin. However, replacing sem_init with the appropriate sem_open call does not help to fix pthread_cond_timedwait() On Thu, Jul 23, 2009 at 3:12 PM, Alexander Potapenko<gl...@go...> wrote: > I've tried the tests on Mac OS 10.5 (Darwin Kernel Version 9.7.0: Tue > Mar 31 22:52:17 PDT 2009) > Here are the results > > glider$ ./pth_inconsistent_cond_wait > pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, > &deadline) returned error code 22 (Invalid argument) > > this is a bit confusing. > > glider$ ./tc17_sembar > starting > done, result is 99, should be 88 > > this is expected, because sem_init is not implemented on Darwin, only > named semaphores are supported. > > On Thu, Jul 23, 2009 at 12:06 PM, Bart Van > Assche<bar...@gm...> wrote: >> Hello, >> >> While trying to port DRD to Darwin I noticed that on the Mac OS X system I >> used several POSIX threads functions behave differently than their Linux >> equivalents. Please note that the results below have been obtained on an old >> system (kernel 9.2.0). It would be great if someone could confirm whether >> the results below can be reproduced on a Mac OS X system with the latest >> updates installed. Note: the results below have been obtained by running >> native executables and hence are not related to the behavior of any Valgrind >> tool. >> >> * drd/tests/pth_inconsistent_cond_wait >> >> Linux: >> >> $ drd/tests/pth_inconsistent_cond_wait >> (empty output, as expected) >> >> Darwin: >> >> $ drd/tests/pth_inconsistent_cond_wait >> drd/tests/pth_inconsistent_cond_wait >> pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, >> &deadline) returned error code 22 (Invalid argument) >> pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, >> &deadline) returned error code 60 (Operation timed out) >> >> It is not clear to me why the first call to pthread_cond_timedwait() returns >> EINVAL on Darwin. As far as I know EINVAL means that either the condition >> variable, mutex or timeout passed to pthread_cond_timedwait() is invalid ? >> See also >> http://www.opengroup.org/onlinepubs/000095399/functions/pthread_cond_timedwait.html. >> >> >> * helgrind/tests/tc17_sembar >> >> Linux: >> $ helgrind/tests/tc17_sembar >> starting >> done, result is 88, should be 88 >> (expected output) >> >> Darwin: >> $ helgrind/tests/tc17_sembar >> starting >> done, result is 99, should be 88 >> (not expected) >> >> I've also noticed that DRD reports race conditions in the >> drd/tests/circular_buffer test program on Darwin but not on Linux. Both the >> tc17_sembar and the circular_buffer test program trigger many semaphore >> calls. >> >> Bart. >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Valgrind-developers mailing list >> Val...@li... >> https://lists.sourceforge.net/lists/listinfo/valgrind-developers >> >> > > > > -- > WBR, > Alexander Potapenko > Software Engineer > Google Moscow > -- WBR, Alexander Potapenko Software Engineer Google Moscow |
|
From: Nicholas N. <n.n...@gm...> - 2009-07-23 11:22:39
|
On Thu, Jul 23, 2009 at 5:40 PM, Bart Van Assche<bar...@gm...> wrote: > > The output I get from the command "perl tests/vg_regtest drd" on > Darwin is currently as follows: > > == 69 tests, 4 stderr failures, 0 stdout failures, 0 post failures == > drd/tests/circular_buffer (stderr) > drd/tests/pth_cond_race (stderr) > drd/tests/pth_inconsistent_cond_wait (stderr) > drd/tests/tc17_sembar (stderr) Nice! If you want to work on Darwin+Helgrind too I'm sure no-one will object ;) Nick |
|
From: Nicholas N. <n.n...@gm...> - 2009-07-23 11:15:00
|
On Thu, Jul 23, 2009 at 3:52 PM, Bart Van Assche<bar...@gm...> wrote: > > The output of the tests helgrind/tests/rwlock_test, tc12_rwl_trivial > and tc23_bogus_condwait is now again in sync with the source code of > the respective tests. This was indeed caused by the changes I made > yesterday. Thanks. > Regarding the test helgrind/tests/tc06_two_races_xml: this test fails > since July 15, 2009 in the nightly builds. The MESSAGING_TIDYUP branch > has been merged to the trunk around that date. Yep, hopefully Julian will get to that one soon. Nick |
|
From: Alexander P. <gl...@go...> - 2009-07-23 11:13:01
|
I've tried the tests on Mac OS 10.5 (Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009) Here are the results glider$ ./pth_inconsistent_cond_wait pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, &deadline) returned error code 22 (Invalid argument) this is a bit confusing. glider$ ./tc17_sembar starting done, result is 99, should be 88 this is expected, because sem_init is not implemented on Darwin, only named semaphores are supported. On Thu, Jul 23, 2009 at 12:06 PM, Bart Van Assche<bar...@gm...> wrote: > Hello, > > While trying to port DRD to Darwin I noticed that on the Mac OS X system I > used several POSIX threads functions behave differently than their Linux > equivalents. Please note that the results below have been obtained on an old > system (kernel 9.2.0). It would be great if someone could confirm whether > the results below can be reproduced on a Mac OS X system with the latest > updates installed. Note: the results below have been obtained by running > native executables and hence are not related to the behavior of any Valgrind > tool. > > * drd/tests/pth_inconsistent_cond_wait > > Linux: > > $ drd/tests/pth_inconsistent_cond_wait > (empty output, as expected) > > Darwin: > > $ drd/tests/pth_inconsistent_cond_wait > drd/tests/pth_inconsistent_cond_wait > pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, > &deadline) returned error code 22 (Invalid argument) > pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, > &deadline) returned error code 60 (Operation timed out) > > It is not clear to me why the first call to pthread_cond_timedwait() returns > EINVAL on Darwin. As far as I know EINVAL means that either the condition > variable, mutex or timeout passed to pthread_cond_timedwait() is invalid ? > See also > http://www.opengroup.org/onlinepubs/000095399/functions/pthread_cond_timedwait.html. > > > * helgrind/tests/tc17_sembar > > Linux: > $ helgrind/tests/tc17_sembar > starting > done, result is 88, should be 88 > (expected output) > > Darwin: > $ helgrind/tests/tc17_sembar > starting > done, result is 99, should be 88 > (not expected) > > I've also noticed that DRD reports race conditions in the > drd/tests/circular_buffer test program on Darwin but not on Linux. Both the > tc17_sembar and the circular_buffer test program trigger many semaphore > calls. > > Bart. > ------------------------------------------------------------------------------ > > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > > -- WBR, Alexander Potapenko Software Engineer Google Moscow |
|
From: <sv...@va...> - 2009-07-23 10:52:41
|
Author: bart Date: 2009-07-23 11:52:32 +0100 (Thu, 23 Jul 2009) New Revision: 10557 Log: Ported TSAN test 98 to Darwin. Modified: trunk/drd/tests/tsan_unittest.cpp Modified: trunk/drd/tests/tsan_unittest.cpp =================================================================== --- trunk/drd/tests/tsan_unittest.cpp 2009-07-23 10:50:33 UTC (rev 10556) +++ trunk/drd/tests/tsan_unittest.cpp 2009-07-23 10:52:32 UTC (rev 10557) @@ -4773,10 +4773,15 @@ char out_name[100]; // we open two files, on for reading and one for writing, // but the files are actually the same (symlinked). - sprintf(in_name, "/tmp/racecheck_unittest_in.%d", getpid()); sprintf(out_name, "/tmp/racecheck_unittest_out.%d", getpid()); fd_out = creat(out_name, O_WRONLY | S_IRWXU); +#ifdef __APPLE__ + // symlink() is not supported on Darwin. Copy the output file name. + strcpy(in_name, out_name); +#else + sprintf(in_name, "/tmp/racecheck_unittest_in.%d", getpid()); IGNORE_RETURN_VALUE(symlink(out_name, in_name)); +#endif fd_in = open(in_name, 0, O_RDONLY); CHECK(fd_out >= 0); CHECK(fd_in >= 0); |