[pkg-boost-devel] Bug#588441: libboost-test1.35-dev: uninitialised bytes in syscall sigaltstack()

Philipp Berndt philipp.berndt at nurfuerspam.de
Thu Jul 8 11:25:21 UTC 2010

Package: libboost-test1.35-dev
Version: 1.35.0-5
Severity: normal
Tags: patch

On amd64, valgrind 3.3 complains about uninitialized memory in BoostTest 1.35.0:

==15894== Syscall param sigaltstack(ss) points to uninitialised byte(s)
==15894==    at 0x58AB717: sigaltstack (in /lib/libc-2.7.so)
==15894==    by 0x41DE7A: boost::detail::signal_handler::~signal_handler() (execution_monitor.ipp:667)
==15894==    by 0x41EB21: boost::execution_monitor::catch_signals(boost::unit_test::callback0<int> const&) (execution_monitor.ipp:731)
==15894==    by 0x421245: boost::execution_monitor::execute(boost::unit_test::callback0<int> const&) (execution_monitor.ipp:1058)
==15894==    by 0x422BB2: boost::unit_test::framework::init(boost::unit_test::test_suite* (*)(int, char**), int, char**) (framework.ipp:258)
==15894==    by 0x422DA4: boost::unit_test::unit_test_main(boost::unit_test::test_suite* (*)(int, char**), int, char**) (unit_test_main.ipp:169)
==15894==    by 0x423106: main (unit_test_main.ipp:226)
==15894==  Address 0x7fefff020 is on thread 1's stack

Peter Klotz provided a patch (attached) that fixes this bug by initializing the structure passed
to syscall sigaltstack().

Gennadiy Rozental has applied it upstream.

-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libboost-test1.35-dev depends on:
ii  libboost-test1.35.0           1.35.0-5   components for writing and executi
ii  libboost1.35-dev              1.35.0-5   Boost C++ Libraries development fi

libboost-test1.35-dev recommends no packages.

libboost-test1.35-dev suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost_1_35_0_BoostTestValgrindError.patch
Type: text/x-diff
Size: 533 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20100708/db116dc1/attachment.patch>

More information about the pkg-boost-devel mailing list