238
Listing 12-29. Running pmemcheck with Listing 12-28
$ valgrind --tool=pmemcheck ./listing_12-28
==97301== pmemcheck-1.0, a simple persistent store checker
==97301== Copyright (c) 2014-2016, Intel Corporation
==97301== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==97301== Command: ./listing_12-28
==97301==
==97301==
==97301== Number of stores not made persistent: 0
==97301==
==97301== Number of overlapping regions registered in different
transactions: 1
==97301== Overlapping regions:
==97301== [0]
at 0x4E6B0BC: pmemobj_tx_add_snapshot (in /usr/lib64/
libpmemobj.so.1.0.0)
==97301==
by 0x4E6B5F8: pmemobj_tx_add_common.constprop.18 (in /usr/
lib64/libpmemobj.so.1.0.0)
==97301==
by 0x4E6C62F: pmemobj_tx_add_range (in /usr/lib64/libpmemobj.
so.1.0.0)
==97301==
by 0x400DAC: func (listing_12-28.c:55)
==97301==
by 0x4C2DDD4: start_thread (in /usr/lib64/libpthread-2.17.so)
==97301==
by 0x5180EAC: clone (in /usr/lib64/libc-2.17.so)
==97301==
Address: 0x7dc0550
size: 8
tx_id: 2
==97301==
First registered here:
==97301== [0]' at 0x4E6B0BC: pmemobj_tx_add_snapshot (in /usr/lib64/
libpmemobj.so.1.0.0)
==97301==
by 0x4E6B5F8: pmemobj_tx_add_common.constprop.18 (in /usr/
lib64/libpmemobj.so.1.0.0)
==97301==
by 0x4E6C62F: pmemobj_tx_add_range (in /usr/lib64/libpmemobj.
so.1.0.0)
==97301==
by 0x400F23: main (listing_12-28.c:73)
==97301==
Address: 0x7dc0550
size: 8
tx_id: 1
==97301== ERROR SUMMARY: 1 errors
Chapter 12 Debugging persistent MeMory appliCations
Précédent

- 262/457

Suivant