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
(5) |
|
2
(2) |
3
(3) |
4
(2) |
5
(4) |
6
(4) |
7
(1) |
8
|
|
9
|
10
(1) |
11
|
12
(3) |
13
(2) |
14
(2) |
15
|
|
16
|
17
|
18
|
19
(2) |
20
(10) |
21
|
22
(6) |
|
23
(7) |
24
|
25
(2) |
26
|
27
(1) |
28
(8) |
29
(2) |
|
30
|
31
|
|
|
|
|
|
|
From: Bart V. A. <bva...@ac...> - 2018-12-01 20:22:39
|
On 11/21/18 8:47 AM, Andreas Arnez wrote: > diff --git a/coregrind/m_demangle/demangle.c b/coregrind/m_demangle/demangle.c > index 00fa20389..dd933da8b 100644 > --- a/coregrind/m_demangle/demangle.c > +++ b/coregrind/m_demangle/demangle.c > @@ -1,3 +1,4 @@ > +/* -*- mode: C; buffer-read-only: nil -*- */ > > /*--------------------------------------------------------------------*/ > /*--- Demangling of C++ mangled names. demangle.c ---*/ > diff --git a/coregrind/m_demangle/vg_libciface.h b/coregrind/m_demangle/vg_libciface.h > index 762e63a02..1aefd5db3 100644 > --- a/coregrind/m_demangle/vg_libciface.h > +++ b/coregrind/m_demangle/vg_libciface.h > @@ -1,3 +1,4 @@ > +/* -*- mode: C; buffer-read-only: nil -*- */ Can this be left out? I'd like to avoid mode lines in source files. > diff --git a/drd/tests/.dir-locals.el b/drd/tests/.dir-locals.el > new file mode 100644 > index 000000000..0d94ded88 > --- /dev/null > +++ b/drd/tests/.dir-locals.el > @@ -0,0 +1,16 @@ > +;; Emacs settings for drd tests. > + > +( > + ;; Standard settings for editing C source files. > + (c-mode . ( > + ;; Apply the Linux style as a base. > + (c-file-style . "linux") > + ;; Use spaces instead of tabs for indentation. > + (indent-tabs-mode . nil) > + ;; Indent 2 columns per level. Note that this differs from > + ;; the usual Valgrind style. > + (c-basic-offset . 2) > + ;; Lines should be limited to 80 columns. > + (fill-column . 80) > + )) > +) Is it possible to combine the top-level .dir-locals.el file and this file into a single file? If not, don't worry. How about Helgrind? Are files in helgrind/tests indented by 2 or by 3 columns? Is a similar file needed in helgrind/tests? Sorry for being slow in replying. Thanks, Bart. |
|
From: Bart V. A. <bva...@so...> - 2018-12-01 19:08:42
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=4b90a2e668d01e37d82560bc2cd61f99163193cf commit 4b90a2e668d01e37d82560bc2cd61f99163193cf Author: Bart Van Assche <bva...@ac...> Date: Sat Dec 1 08:42:55 2018 -0800 Add drd/tests/fork-serial and drd/tests/fork-parallel Diff: --- drd/tests/Makefile.am | 4 ++++ drd/tests/fork-parallel.stderr.exp | 5 +++++ drd/tests/fork-parallel.vgtest | 3 +++ drd/tests/fork-serial.stderr.exp | 5 +++++ drd/tests/fork-serial.vgtest | 3 +++ 5 files changed, 20 insertions(+) diff --git a/drd/tests/Makefile.am b/drd/tests/Makefile.am index 99dfefa..fec3f46 100644 --- a/drd/tests/Makefile.am +++ b/drd/tests/Makefile.am @@ -109,6 +109,10 @@ EXTRA_DIST = \ dlopen.stderr.exp \ dlopen.stdout.exp \ dlopen.vgtest \ + fork-serial.stderr.exp \ + fork-serial.vgtest \ + fork-parallel.stderr.exp \ + fork-parallel.vgtest \ fp_race.stderr.exp \ fp_race.stderr.exp-mips32-be \ fp_race.stderr.exp-mips32-le \ diff --git a/drd/tests/fork-parallel.stderr.exp b/drd/tests/fork-parallel.stderr.exp new file mode 100644 index 0000000..54b7666 --- /dev/null +++ b/drd/tests/fork-parallel.stderr.exp @@ -0,0 +1,5 @@ + +/bin/ls +/bin/ls + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff --git a/drd/tests/fork-parallel.vgtest b/drd/tests/fork-parallel.vgtest new file mode 100644 index 0000000..0943f8b --- /dev/null +++ b/drd/tests/fork-parallel.vgtest @@ -0,0 +1,3 @@ +prereq: ./supported_libpthread +vgopts: --check-stack-var=yes --read-var-info=yes --show-confl-seg=no +prog: fork 1 diff --git a/drd/tests/fork-serial.stderr.exp b/drd/tests/fork-serial.stderr.exp new file mode 100644 index 0000000..54b7666 --- /dev/null +++ b/drd/tests/fork-serial.stderr.exp @@ -0,0 +1,5 @@ + +/bin/ls +/bin/ls + +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff --git a/drd/tests/fork-serial.vgtest b/drd/tests/fork-serial.vgtest new file mode 100644 index 0000000..94ca168 --- /dev/null +++ b/drd/tests/fork-serial.vgtest @@ -0,0 +1,3 @@ +prereq: ./supported_libpthread +vgopts: --check-stack-var=yes --read-var-info=yes --show-confl-seg=no +prog: fork |
|
From: Bart V. A. <bva...@so...> - 2018-12-01 19:08:35
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=66a7a592c072c1dee1e9083a19afcc6c0c1b7e76 commit 66a7a592c072c1dee1e9083a19afcc6c0c1b7e76 Author: Bart Van Assche <bva...@ac...> Date: Fri Nov 30 20:49:27 2018 -0800 drd: Add fork test program Diff: --- .gitignore | 1 + drd/tests/Makefile.am | 1 + drd/tests/fork.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) diff --git a/.gitignore b/.gitignore index e88e3b3..a17d631 100644 --- a/.gitignore +++ b/.gitignore @@ -320,6 +320,7 @@ /drd/tests/dlopen_lib.so /drd/tests/dlopen_main /drd/tests/drd_bitmap_test +/drd/tests/fork /drd/tests/fp_race /drd/tests/free_is_write /drd/tests/hg01_all_ok diff --git a/drd/tests/Makefile.am b/drd/tests/Makefile.am index d09ca5f..99dfefa 100644 --- a/drd/tests/Makefile.am +++ b/drd/tests/Makefile.am @@ -370,6 +370,7 @@ check_PROGRAMS = \ concurrent_close \ dlopen_main \ dlopen_lib.so \ + fork \ fp_race \ free_is_write \ hold_lock \ diff --git a/drd/tests/fork.c b/drd/tests/fork.c new file mode 100644 index 0000000..07aaf73 --- /dev/null +++ b/drd/tests/fork.c @@ -0,0 +1,45 @@ +#include <stdio.h> +#include <pthread.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +static pthread_t tid[2]; + +static void *startproc(void *arg) +{ + pid_t pid; + char *argv[] = { "/bin/ls", "/bin/ls", NULL }; + + if ((pid = fork()) == -1) { + perror("fork error"); + } else if (pid == 0) { + dup2(2, 1); // redirect stdout to stderr + execv(argv[0], argv); // child + } + + return NULL; +} + +int main(int argc, char **argv) +{ + // No arguments means serialize the fork() calls. One argument means perform + // both fork() calls concurrently. + int serialize_fork = argc == 1; + int i = 0; + int err; + + for (i = 0; i < 2; i++) { + err = pthread_create(&tid[i], NULL, &startproc, NULL); + if (err != 0) + perror("pthread_create()"); + if (serialize_fork) + pthread_join(tid[i], NULL); + } + if (!serialize_fork) { + for (i = 0; i < 2; i++) + if (tid[i]) + pthread_join(tid[i], NULL); + } + return 0; +} |
|
From: Bart V. A. <bva...@so...> - 2018-12-01 19:08:30
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=df10905d337451489adf82fb68ac2bffae297f89 commit df10905d337451489adf82fb68ac2bffae297f89 Author: Bart Van Assche <bva...@ac...> Date: Sat Dec 1 10:43:06 2018 -0800 drd: Fix fork() handling The thread ID passed to DRD_(drd_thread_atfork_child)() is a Valgrind thread ID instead of a DRD thread ID. This patch fixes bug 401578. Diff: --- NEWS | 1 + drd/drd_thread.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index ffaabd7..7b784a8 100644 --- a/NEWS +++ b/NEWS @@ -59,6 +59,7 @@ where XXXXXX is the bug number as listed below. 401277 More bugs in z13 support 401112 LLVM 5.0 generates comparison against partially initialized data 385411 s390x: z13 vector floating-point instructions not implemented +401578 drd: crashes sometimes on fork() Release 3.14.0 (9 October 2018) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/drd/drd_thread.c b/drd/drd_thread.c index 9ada77d..7641a35 100644 --- a/drd/drd_thread.c +++ b/drd/drd_thread.c @@ -570,13 +570,13 @@ void DRD_(thread_finished)(const DrdThreadId tid) } /** Called just after fork() in the child process. */ -void DRD_(drd_thread_atfork_child)(const DrdThreadId tid) +void DRD_(drd_thread_atfork_child)(const ThreadId tid) { unsigned i; for (i = 1; i < DRD_N_THREADS; i++) { - if (i == tid) + if (DRD_(g_threadinfo)[i].vg_threadid == tid) continue; if (DRD_(IsValidDrdThreadId(i))) DRD_(thread_delete)(i, True); |
|
From: Bart V. A. <bva...@so...> - 2018-12-01 19:08:24
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=bb7086d063db5c73de9f64f465f86d9440d2da47 commit bb7086d063db5c73de9f64f465f86d9440d2da47 Author: Bart Van Assche <bva...@ac...> Date: Fri Nov 30 21:15:39 2018 -0800 drd/test: Fix most gcc 8 compiler warnings Diff: --- drd/tests/circular_buffer.c | 18 ++++++++++-------- drd/tests/matinv.c | 6 ++++-- drd/tests/pth_broadcast.c | 8 +++++--- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/drd/tests/circular_buffer.c b/drd/tests/circular_buffer.c index b7ab564..0b75046 100644 --- a/drd/tests/circular_buffer.c +++ b/drd/tests/circular_buffer.c @@ -156,17 +156,21 @@ static void buffer_destroy(buffer_t* b) static buffer_t b; -static void producer(int* id) +static void *producer(void* arg) { + int* id = arg; + buffer_send(&b, id); - pthread_exit(NULL); + return NULL; } #define MAXSLEEP (100 * 1000) -static void consumer(int* id) +static void *consumer(void* arg) { + int* id = arg; int d; + usleep(rand() % MAXSLEEP); buffer_recv(&b, &d); if (! quiet) @@ -174,7 +178,7 @@ static void consumer(int* id) printf("%i: %i\n", *id, d); fflush(stdout); } - pthread_exit(NULL); + return NULL; } #define THREADS (10) @@ -207,13 +211,11 @@ int main(int argc, char** argv) for (i = 0; i < THREADS; ++i) { thread_arg[i] = i; - pthread_create(producers + i, NULL, - (void * (*)(void *)) producer, &thread_arg[i]); + pthread_create(producers + i, NULL, producer, &thread_arg[i]); } for (i = 0; i < THREADS; ++i) - pthread_create(consumers + i, NULL, - (void * (*)(void *)) consumer, &thread_arg[i]); + pthread_create(consumers + i, NULL, consumer, &thread_arg[i]); for (i = 0; i < THREADS; ++i) { diff --git a/drd/tests/matinv.c b/drd/tests/matinv.c index 1e26088..1369a69 100644 --- a/drd/tests/matinv.c +++ b/drd/tests/matinv.c @@ -167,8 +167,9 @@ static elem_t* multiply_matrices(const elem_t* const a1, * submatrix p->a[0..p->rows-1,0..p->rows-1] is the identity matrix. * @see http://en.wikipedia.org/wiki/Gauss-Jordan_elimination */ -static void gj_threadfunc(struct gj_threadinfo* p) +static void *gj_threadfunc(void *arg) { + struct gj_threadinfo* p = arg; int i, j, k; elem_t* const a = p->a; const int rows = p->rows; @@ -217,6 +218,7 @@ static void gj_threadfunc(struct gj_threadinfo* p) } } } + return NULL; } /** Multithreaded Gauss-Jordan algorithm. */ @@ -246,7 +248,7 @@ static void gj(elem_t* const a, const int rows, const int cols) t[i].cols = cols; t[i].r0 = i * rows / s_nthread; t[i].r1 = (i+1) * rows / s_nthread; - pthread_create(&t[i].tid, &attr, (void*(*)(void*))gj_threadfunc, &t[i]); + pthread_create(&t[i].tid, &attr, gj_threadfunc, &t[i]); } pthread_attr_destroy(&attr); diff --git a/drd/tests/pth_broadcast.c b/drd/tests/pth_broadcast.c index 5276a34..21ff4ca 100644 --- a/drd/tests/pth_broadcast.c +++ b/drd/tests/pth_broadcast.c @@ -83,8 +83,9 @@ static pthread_cond_t s_cond; // Function definitions. -static void thread_func(struct cthread* thread_info) +static void *thread_func(void *arg) { + struct cthread* thread_info = arg; int i; pthread_mutex_lock(&s_mutex); @@ -106,6 +107,8 @@ static void thread_func(struct cthread* thread_info) } pthread_mutex_unlock(&s_mutex); + + return NULL; } int main(int argc, char** argv) @@ -151,8 +154,7 @@ int main(int argc, char** argv) cthread_ctr(p); p->m_threadnum = p - thread_vec; p->m_sema = &sema; - pthread_create(&p->m_thread, 0, - (void*(*)(void*))thread_func, &*p); + pthread_create(&p->m_thread, 0, thread_func, &*p); } for (i = 0; i < s_signal_count; i++) { |