Skip to content

valgrind: UninitCondition under __run_exit_handlers suppression - #53097

Merged
cbodley merged 1 commit into
ceph:mainfrom
mkogan1:rgw-wip-t62141-valg-supp
Sep 23, 2023
Merged

cbodley merged 1 commit into
ceph:mainfrom
mkogan1:rgw-wip-t62141-valg-supp

Conversation

@mkogan1

@mkogan1 mkogan1 commented Aug 23, 2023 •

Copy link
Copy Markdown
Contributor

required for CentOS / RHEL 9 & Ubuntu 22.04.1 LTS

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

<error>
  <unique>0xe8b91</unique>
  <tid>1</tid>
  <kind>UninitCondition</kind>
  <what>Conditional jump or move depends on uninitialised value(s)</what>
  <stack>
    <frame>
      <ip>0x4847097</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>free</fn>
      <dir>/builddir/build/BUILD/valgrind-3.19.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>872</line>
    </frame>
    <frame>
      <ip>0x7A36B13</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>free_res</fn>
    </frame>
    <frame>
      <ip>0x7A36B81</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>__libc_freeres</fn>
    </frame>
    <frame>
      <ip>0x48391E7</ip>
      <obj>/usr/libexec/valgrind/vgpreload_core-amd64-linux.so</obj>
      <fn>_vgnU_freeres</fn>
      <dir>/builddir/build/BUILD/valgrind-3.19.0/coregrind</dir>
      <file>vg_preloaded.c</file>
      <line>74</line>
    </frame>
    <frame>
      <ip>0x78F2571</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>__run_exit_handlers</fn>
    </frame>
    <frame>
      <ip>0x78F262F</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>exit</fn>
    </frame>
    <frame>
      <ip>0x78DAEB6</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>(below main)</fn>
    </frame>
  </stack>
</error>

suppression generated with --gen-suppressions=all

valgrind --soname-synonyms=somalloc="*tcmalloc*" --vgdb=no --trace-children=no --child-silent-after-fork=yes --num-callers=20 --track-origins=yes --time-stamp=yes  --suppressions=../qa/valgrind.supp --xml=yes --xml-file=./valgrind_log_8000.xml --tool=memcheck --max-threads=2048 --gen-suppressions=all -- ./bin/radosgw ...

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@mkogan1

mkogan1 commented Aug 23, 2023

Copy link
Copy Markdown
Contributor Author

Comment thread qa/valgrind.supp Outdated
Comment on lines 678 to 685

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the suppression looks a lot different than the valgrind report in https://tracker.ceph.com/issues/62141

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error the same: Conditional jump or move depends on uninitialised value(s)<
and the full output from valgrind --gen-suppressions=all ... is:
the teuthology run ^^^ does not show valgrind issues
alternatively myb run with --gen-suppressions=all on teuthology?

<error>
  <unique>0x3</unique>
  <tid>1</tid>
  <kind>UninitCondition</kind>
  <what>Conditional jump or move depends on uninitialised value(s)</what>
  <stack>
    <frame>
      <ip>0x4019162</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>parse_tunables</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>dl-tunables.c</file>
      <line>185</line>
    </frame>
    <frame>
      <ip>0x4019162</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>__GI___tunables_init</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>dl-tunables.c</file>
      <line>296</line>
    </frame>
    <frame>
      <ip>0x4020126</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_sysdep_start</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf/../sysdeps/unix/sysv/linux</dir>
      <file>dl-sysdep.c</file>
      <line>110</line>
    </frame>
    <frame>
      <ip>0x4021AD7</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_start_final</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>rtld.c</file>
      <line>502</line>
    </frame>
    <frame>
      <ip>0x4021AD7</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_start</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>rtld.c</file>
      <line>587</line>
    </frame>
    <frame>
      <ip>0x4020BA7</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
    </frame>
    <frame>
      <ip>0xB</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF3E6</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF3F4</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF3F7</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF403</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF425</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF44C</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF46E</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF471</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF481</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF4A1</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF4AE</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF4BC</ip>
    </frame>
  </stack>
  <auxwhat>Uninitialised value was created</auxwhat>
  <stack>
    <frame>
      <ip>0x402611B</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>brk</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf/../sysdeps/unix/sysv/linux</dir>
      <file>brk.c</file>
      <line>37</line>
    </frame>
    <frame>
      <ip>0x402619B</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>__sbrk</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf/../misc</dir>
      <file>sbrk.c</file>
      <line>74</line>
    </frame>
    <frame>
      <ip>0x402619B</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>sbrk</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf/../misc</dir>
      <file>sbrk.c</file>
      <line>36</line>
    </frame>
    <frame>
      <ip>0x40190B9</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>tunables_strdup</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>dl-tunables.c</file>
      <line>51</line>
    </frame>
    <frame>
      <ip>0x40190B9</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>__GI___tunables_init</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>dl-tunables.c</file>
      <line>294</line>
    </frame>
    <frame>
      <ip>0x4020126</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_sysdep_start</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf/../sysdeps/unix/sysv/linux</dir>
      <file>dl-sysdep.c</file>
      <line>110</line>
    </frame>
    <frame>
      <ip>0x4021AD7</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_start_final</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>rtld.c</file>
      <line>502</line>
    </frame>
    <frame>
      <ip>0x4021AD7</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_start</fn>
      <dir>/usr/src/debug/glibc-2.34-60.el9.x86_64/elf</dir>
      <file>rtld.c</file>
      <line>587</line>
    </frame>
    <frame>
      <ip>0x4020BA7</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
    </frame>
    <frame>
      <ip>0xB</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF3E6</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF3F4</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF3F7</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF403</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF425</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF44C</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF46E</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF471</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF481</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF4A1</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF4AE</ip>
    </frame>
    <frame>
      <ip>0x1FFEFFF4BC</ip>
    </frame>
  </stack>
  <suppression>
    <sname>insert_a_suppression_name_here</sname>
    <skind>Memcheck:Cond</skind>
    <sframe> <fun>parse_tunables</fun> </sframe>
    <sframe> <fun>__GI___tunables_init</fun> </sframe>
    <sframe> <fun>_dl_sysdep_start</fun> </sframe>
    <sframe> <fun>_dl_start_final</fun> </sframe>
    <sframe> <fun>_dl_start</fun> </sframe>
    <sframe> <obj>/usr/lib64/ld-linux-x86-64.so.2</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <sframe> <obj>*</obj> </sframe>
    <rawtext>
<![CDATA[
{
   <insert_a_suppression_name_here>
   Memcheck:Cond
   fun:parse_tunables
   fun:__GI___tunables_init
   fun:_dl_sysdep_start
   fun:_dl_start_final
   fun:_dl_start
   obj:/usr/lib64/ld-linux-x86-64.so.2
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
}
]]>

@mkogan1
mkogan1 force-pushed the rgw-wip-t62141-valg-supp branch from 0a1eca8 to 6e9ef37 Compare September 19, 2023 11:15
@mkogan1
mkogan1 requested a review from a team as a code owner September 19, 2023 12:46
@mkogan1
mkogan1 force-pushed the rgw-wip-t62141-valg-supp branch from ecdba8e to 6e9ef37 Compare September 21, 2023 13:54
@mkogan1
mkogan1 force-pushed the rgw-wip-t62141-valg-supp branch from 6e9ef37 to 03616b4 Compare September 21, 2023 13:55
@mkogan1

mkogan1 commented Sep 23, 2023

Copy link
Copy Markdown
Contributor Author

@cbodley teuthology run of full RGW suite with afflicted distros pinning and new suppressions does not show valgrind issues anymore:
https://pulpito.ceph.com/mkogan-2023-09-22_17:38:01-rgw-rgw-wip-t62141-valg-supp_i008-distro-default-smithi/

(suite branch https://github.com/mkogan1/ceph/commits/wip-qa-rgw-verify-ubuntu-003 for reference (although the branch is called ubuntu it enables centos 9 also ))

please ACK to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants