Skip to content

build: notcmalloc builds enable WITH_BOOST_VALGRIND#1736

Merged
tchaikov merged 1 commit intomasterfrom
wip-notcmalloc-boost-valgrind
Feb 3, 2021
Merged

build: notcmalloc builds enable WITH_BOOST_VALGRIND#1736
tchaikov merged 1 commit intomasterfrom
wip-notcmalloc-boost-valgrind

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Feb 3, 2021

this flag silences a false-positive from valgrind in boost::context:

<error>
  <unique>0x0</unique>
  <tid>124</tid>
  <kind>InvalidRead</kind>
  <what>Invalid read of size 8</what>
  <stack>
    <frame>
      <ip>0x52FF7E7</ip>
      <obj>/usr/lib64/libradosgw.so.2.0.0</obj>
      <fn>spawn::detail::continuation_context::resume()</fn>
    </frame>
  </stack>
  <auxwhat>Address 0x57f65728 is in a rw- anonymous segment</auxwhat>
</error>

Fixes: https://tracker.ceph.com/issues/48963

this flag silences a false-positive from valgrind in boost::context:
```
<error>
  <unique>0x0</unique>
  <tid>124</tid>
  <kind>InvalidRead</kind>
  <what>Invalid read of size 8</what>
  <stack>
    <frame>
      <ip>0x52FF7E7</ip>
      <obj>/usr/lib64/libradosgw.so.2.0.0</obj>
      <fn>spawn::detail::continuation_context::resume()</fn>
    </frame>
  </stack>
  <auxwhat>Address 0x57f65728 is in a rw- anonymous segment</auxwhat>
</error>
```

Fixes: https://tracker.ceph.com/issues/48963

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@tchaikov tchaikov merged commit 3e818b4 into master Feb 3, 2021
@tchaikov tchaikov deleted the wip-notcmalloc-boost-valgrind branch February 3, 2021 14:47
@cbodley
Copy link
Contributor Author

cbodley commented Feb 3, 2021

thank you @tchaikov!

cbodley added a commit to cbodley/ceph that referenced this pull request Feb 3, 2021
the WITH_SYSTEM_BOOST binaries are not built with BOOST_USE_VALGRIND, so
it probably isn't safe to define for the headers only

this flag is needed for teuthology testing, and the shaman builds use
WITH_SYSTEM_BOOST=OFF. so the better fix is to enable WITH_BOOST_VALGRIND
so BuildBoost.cmake will build the libraries with valgrind support and add
-DBOOST_USE_VALGRIND to the necessary targets

this change was merged in ceph/ceph-build#1736

Fixes: https://tracker.ceph.com/issues/48963

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Feb 3, 2021

fyi, i'm seeing radosgw segfaults from these builds. hopefully it doesn't affect other targets

ceph/ceph#39263 (comment)

@cbodley
Copy link
Contributor Author

cbodley commented Feb 3, 2021

ok, the segfault is just an issue with the radosgw's cmake. the radosgw target didn't get the BOOST_USE_VALGRIND compile definition attached to the boost::context target. see ceph/ceph#39279

cbodley added a commit to cbodley/ceph that referenced this pull request Feb 12, 2021
the WITH_SYSTEM_BOOST binaries are not built with BOOST_USE_VALGRIND, so
it probably isn't safe to define for the headers only

this flag is needed for teuthology testing, and the shaman builds use
WITH_SYSTEM_BOOST=OFF. so the better fix is to enable WITH_BOOST_VALGRIND
so BuildBoost.cmake will build the libraries with valgrind support and add
-DBOOST_USE_VALGRIND to the necessary targets

this change was merged in ceph/ceph-build#1736

Fixes: https://tracker.ceph.com/issues/48963

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3c3a651)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants