July 2017
Intermediate to advanced
244 pages
6h 33m
English
Starting DRD is very similar to starting the other tools--we just have to specify our desired tool like this:
$ valgrind --tool=drd --log-file=dispatcher_drd.log --read-var-info=yes ./dispatcher_demo
After the application finishes, we examine the generated log file's contents.
==6576== drd, a thread error detector==6576== Copyright (C) 2006-2015, and GNU GPL'd, by Bart Van Assche.==6576== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info==6576== Command: ./dispatcher_demo==6576== Parent PID: 2838==6576== ==6576== Conflicting store by thread 1 at 0x05ce51b1 size 1==6576== at 0x403650: Worker::setRequest(AbstractRequest*) (worker.h:38)==6576== by 0x403253: Dispatcher::addRequest(AbstractRequest*) (dispatcher.cpp:70) ...
Read now
Unlock full access