Opened 14 years ago
Closed 13 years ago
#2647 closed Patches (fixed)
valgrind error with Boost.Test
Reported by: | Kevin Sopp | Owned by: | Gennadiy Rozental |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | test |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
Hi Gennadiy,
either the fix for this has never been committed or the fix got reverted at some point.
See this thread for the discussion and solution:
http://thread.gmane.org/gmane.comp.lib.boost.devel/180182/focus=180190
Attachments (2)
Change History (5)
by , 13 years ago
Attachment: | test_valgrind.patch added |
---|
comment:1 by , 13 years ago
Milestone: | Boost 1.38.0 → Boost 1.40.0 |
---|---|
Type: | Bugs → Patches |
comment:2 by , 13 years ago
Milestone: | Boost 1.40.0 → Boost 1.41.0 |
---|
This has also been reported to distributors such as Debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538946). Debian has elected to follow the suggestion of Peter Klotz; see the final message of http://www.nabble.com/-Boost.Test--valgrind-complains-about-invalid-reads-td20500154.html
In summary:
- The destructor of class test_unit is made virtual and public.
- The method framework::clear() is much simpler: no downcast needed.
Patch attached.
Note:
See TracTickets
for help on using tickets.
I wrote a small patch to fix this.