Opened 13 years ago

Last modified 13 years ago

#3547 new Bugs

Valgrind finds errors into compressed_matrix serialization

Reported by: micdestefano@… Owned by: Gunter
Milestone: Boost 1.42.0 Component: uBLAS
Version: Boost 1.40.0 Severity: Problem
Keywords: uninitialised bytes memory Cc:

Description

I tried to write a compressed matrix to an archive and to re-read it from the archive.
Without valgrind, the program seems to run correctly, but, if run with valgrind, it outputs some errors.

I attached the source code and the valgrind output.
I ran valgrind with this command:

valgrind ./compressed_mtx_ser test.arch >& valgrind.out

It seems that the serialization function tries to write not itialized bytes to file.

Attachments (2)

compressed_mtx_ser.cpp (1.2 KB ) - added by micdestefano@… 13 years ago.
Source code of the test program
valgrind.out (2.7 KB ) - added by micdestefano@… 13 years ago.
Valgrind output

Download all attachments as: .zip

Change History (4)

by micdestefano@…, 13 years ago

Attachment: compressed_mtx_ser.cpp added

Source code of the test program

by micdestefano@…, 13 years ago

Attachment: valgrind.out added

Valgrind output

comment:1 by micdestefano@…, 13 years ago

I was forgetting to tell something about my environment: I use Boost 1.40 on a Linux CentOS 5.4 system. I've built static libraries only.

comment:2 by Gunter, 13 years ago

Milestone: Boost 1.41.0Boost 1.42.0
Note: See TracTickets for help on using tickets.