- I have reproduced this on valgrind 3.10 and 3.13

It works correctly (no complaints) on x86_64 under valgrind 3.14 as distributed
by Fedora 28 in valgrind-3.14.0-1.fc28.x86_64.rpm .

$ rpm -q valgrind
valgrind-3.14.0-1.fc28.x86_64
$ type valgrind
valgrind is hashed (/usr/bin/valgrind)
$ valgrind --version
valgrind-3.14.0
$ gcc -g -O pthread_test.c -lpthread
$ valgrind ./a.out
==18824== Memcheck, a memory error detector
==18824== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==18824== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==18824== Command: ./a.out
==18824==
start
thread created
thread running
done
==18824==
==18824== HEAP SUMMARY:
==18824==     in use at exit: 0 bytes in 0 blocks
==18824==   total heap usage: 3 allocs, 3 frees, 66,832 bytes allocated
==18824==
==18824== All heap blocks were freed -- no leaks are possible
==18824==
==18824== For counts of detected and suppressed errors, rerun with: -v
==18824== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
$


_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to