Package: valgrind
Version: 1:3.14.0-2
Severity: normal
Hi!
It looks like helgrind and drd find a lot of false positives in glibc code,
even on a threaded hello world:
.--====
#include <stdio.h>
#include <stdint.h>
#include <pthread.h>
#define NTHREADS 2
static void *
worker(void *arg)
{
printf("Thread %ld\n", (intptr_t)arg);
return NULL;
}
int main()
{
pthread_t th[NTHREADS];
for (int i = 0; i < NTHREADS; i++)
pthread_create(&th[i], NULL, worker, (void *)(intptr_t)i);
for (int i = 0; i < NTHREADS; i++)
pthread_join(th[i], NULL);
return 0;
}
`----
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'),
(150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.20.0-debug-02988-gdc7ccfbd7309 (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages valgrind depends on:
ii libc6 2.28-4
ii libc6-dbg 2.28-4
Versions of packages valgrind recommends:
ii gdb 8.2-1
ii valgrind-dbg 1:3.14.0-2
Versions of packages valgrind suggests:
pn alleyoop <none>
pn kcachegrind <none>
pn valgrind-mpi <none>
pn valkyrie <none>
-- no debconf information