Project

General

Profile

Actions

Bug #74566

closed
LF NM

Leak_StillReachable monitor valgrind error in glibc

Bug #74566: Leak_StillReachable monitor valgrind error in glibc

Added by Laura Flores 10 months ago. Updated 30 days ago.

Status:
Backporting
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, umbrella, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.0.0-318-g3fcf439630
Released In:
v21.2.0~858
Upkeep Timestamp:
2026-11-04T01:09:37+00:00

Description

/a/yuriw-2026-01-23_21:16:01-rados-wip-yuri13-testing-2026-01-23-1852-reef-distro-default-trial/15588/remote/trial138/log/valgrind/mon.b.log.gz

<error>
  <unique>0x51f0</unique>
  <tid>1</tid>
  <threadname>ceph-mon</threadname>
  <kind>Leak_StillReachable</kind>
  <xwhat>
    <text>36 bytes in 1 blocks are still reachable in loss record 602 of 902</text>
    <leakedbytes>36</leakedbytes>
    <leakedblocks>1</leakedblocks>
  </xwhat>
  <stack>
    <frame>
      <ip>0x52FE82F</ip>
      <obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
      <fn>malloc</fn>
      <dir>/builddir/build/BUILD/valgrind-3.26.0/coregrind/m_replacemalloc</dir>
      <file>vg_replace_malloc.c</file>
      <line>447</line>
    </frame>
    <frame>
      <ip>0x4AC4D78</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>malloc</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf/../include</dir>
      <file>rtld-malloc.h</file>
      <line>56</line>
    </frame>
    <frame>
      <ip>0x4AC4D78</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_new_object</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-object.c</file>
      <line>199</line>
    </frame>
    <frame>
      <ip>0x4AC065E</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_map_object_from_fd</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-load.c</file>
      <line>1080</line>
    </frame>
    <frame>
      <ip>0x4AC1D8E</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_map_object</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-load.c</file>
      <line>2286</line>
    </frame>
    <frame>
      <ip>0x4AC591B</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>dl_open_worker_begin</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-open.c</file>
      <line>553</line>
    </frame>
    <frame>
      <ip>0x4ABA444</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_catch_exception</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-catch.c</file>
      <line>237</line>
    </frame>
    <frame>
      <ip>0x4AC4FED</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>dl_open_worker</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-open.c</file>
      <line>782</line>
    </frame>
    <frame>
      <ip>0x4ABA444</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_catch_exception</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-catch.c</file>
      <line>237</line>
    </frame>
    <frame>
      <ip>0x4AC54BE</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_open</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-open.c</file>
      <line>903</line>
    </frame>
    <frame>
      <ip>0x62818AB</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>dlopen_doit</fn>
    </frame>
    <frame>
      <ip>0x4ABA444</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_catch_exception</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-catch.c</file>
      <line>237</line>
    </frame>
    <frame>
      <ip>0x4ABA592</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_catch_error</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-catch.c</file>
      <line>256</line>
    </frame>
    <frame>
      <ip>0x628137D</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>_dlerror_run</fn>
    </frame>
    <frame>
      <ip>0x6281960</ip>
      <obj>/usr/lib64/libc.so.6</obj>
      <fn>dlopen@@GLIBC_2.34</fn>
    </frame>
    <frame>
      <ip>0x5507EA8</ip>
      <obj>/usr/lib64/ceph/libceph-common.so.2</obj>
      <fn>_sub_I_65535_0.0</fn>
    </frame>
    <frame>
      <ip>0x4ABE4FD</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>call_init</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-init.c</file>
      <line>70</line>
    </frame>
    <frame>
      <ip>0x4ABE4FD</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>call_init</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-init.c</file>
      <line>26</line>
    </frame>
    <frame>
      <ip>0x4ABE5EB</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_init</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-init.c</file>
      <line>117</line>
    </frame>
    <frame>
      <ip>0x4AD6B99</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
    </frame>
    <frame>
      <ip>0x5</ip>
    </frame>
    <frame>
      <ip>0x1FFF000BDE</ip>
    </frame>
    <frame>
      <ip>0x1FFF000BE7</ip>
    </frame>
    <frame>
      <ip>0x1FFF000BEA</ip>
    </frame>
    <frame>
      <ip>0x1FFF000BF4</ip>
    </frame>
    <frame>
      <ip>0x1FFF000BF9</ip>
    </frame>
    <frame>
      <ip>0x1FFF000BFC</ip>
    </frame>
  </stack>


Related issues 4 (2 open — 2 closed)

Copied to RADOS - Backport #75894: reef: Leak_StillReachable monitor valgrind error in glibcRejectedNitzan Mordechai

Actions
Copied to RADOS - Backport #75895: squid: Leak_StillReachable monitor valgrind error in glibcResolvedNitzan Mordechai

Actions
Copied to RADOS - Backport #75896: tentacle: Leak_StillReachable monitor valgrind error in glibcFix Under ReviewNitzan Mordechai

Actions
Copied to RADOS - Backport #80058: umbrella: Leak_StillReachable monitor valgrind error in glibcNewNitzan Mordechai

Actions

RZ Updated by Radoslaw Zarzynski 10 months ago Actions #1

Hmm, another new issue on trial. This one is about plugin loading. I wonder (a very long shot) whether we haven't started exercising a new code path on the nodes:

    <frame>
      <ip>0x4ABA444</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>_dl_catch_exception</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-catch.c</file>
      <line>237</line>
    </frame>
    <frame>
      <ip>0x4AC4FED</ip>
      <obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
      <fn>dl_open_worker</fn>
      <dir>/usr/src/debug/glibc-2.34-244.el9.x86_64/elf</dir>
      <file>dl-open.c</file>
      <line>782</line>
    </frame>

Is _dl_catch_exception() called here as a result of e.g. inability to load a plugin?

RZ Updated by Radoslaw Zarzynski 10 months ago Actions #2

  • Assignee set to Nitzan Mordechai

Hi @Nitzan Mordechai! Would you mind taking a look?

LF Updated by Laura Flores 10 months ago Actions #3

/a/yuriw-2026-01-27_16:01:09-rados-reef-release-distro-default-trial/20866

NM Updated by Nitzan Mordechai 10 months ago Actions #4

  • Status changed from New to In Progress

mm only reef, maybe we missed some backport of valgrind suppression? checking

RZ Updated by Radoslaw Zarzynski 10 months ago Actions #5

Bump up.

RZ Updated by Radoslaw Zarzynski 9 months ago Actions #6

@Nitzan Mordechai: any update?

LS Updated by Lee Sanders 9 months ago Actions #7

  • Backport changed from reef to reef, squid

This is going to need backporting to Squid.

I have seen a failure in:
/a/yuriw-2026-02-26_16:03:22-rados-wip-yuri9-testing-2026-02-25-1600-squid-distro-default-trial/72535/

Although the failure reason of the test was different, (cluster [WRN] Health check failed: 2 OSD experiencing slow operations in BlueStore (BLUESTORE_SLOW_OP_ALERT)" in cluster log) just after the cluster error log.

A valgrind error was reported with Leak_StillReachable:

/a/yuriw-2026-02-26_16:03:22-rados-wip-yuri9-testing-2026-02-25-1600-squid-distro-default-trial/72535/remote/trial123/log/valgrind/
zcat mon.b.log.gz

<kind>Leak_StillReachable</kind>
<xwhat>
<text>176 bytes in 2 blocks are still reachable in loss record 800 of 902</text>
<leakedbytes>176</leakedbytes>
<leakedblocks>2</leakedblocks>
</xwhat>
<stack>
<frame>
<ip>0x531382F</ip>
<obj>/usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so</obj>
<fn>malloc</fn>
<dir>/builddir/build/BUILD/valgrind-3.26.0/coregrind/m_replacemalloc</dir>
<file>vg_replace_malloc.c</file>
<line>447</line>
</frame>
<frame>
<ip>0x4AD9102</ip>
<obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
<fn>malloc</fn>
<dir>/usr/src/debug/glibc-2.34-245.el9.x86_64/elf/../include</dir>
<file>rtld-malloc.h</file>
<line>56</line>
</frame>
<frame>
<ip>0x4AD9102</ip>
<obj>/usr/lib64/ld-linux-x86-64.so.2</obj>
<fn>add_dependency</fn>
<dir>/usr/src/debug/glibc-2.34-245.el9.x86_64/elf</dir>
<file>dl-lookup.c</file>
<line>775</line>
</frame>

2026-02-26T16:30:21.451 INFO:tasks.ceph:Cleaning ceph cluster...
2026-02-26T16:30:21.452 DEBUG:teuthology.orchestra.run.trial123:> sudo rm rf - /etc/ceph/ceph.conf /etc/ceph/ceph.keyring /home/ubuntu/cephtest/ceph.data /home/ubuntu/cephtest/ceph.monmap /home/ubuntu/cephtest/../*.pid
2026-02-26T16:30:21.886 DEBUG:tasks.ceph:valgrind exception message: valgrind error: Leak_StillReachable
malloc
malloc
_dl_new_object
2026-02-26T16:30:21.886 INFO:tasks.ceph:Archiving crash dumps...
2026-02-26T16:30:21.889 DEBUG:teuthology.misc:Transferring archived files from trial123:/var/lib/ceph/crash to /home/teuthworker/mnt/teuthology/yuriw-2026-02-26_16:03:22-rados-wip-yuri9-testing-2026-02-25-1600-squid-distro-default-trial/72535/remote/trial123/crash
2026-02-26T16:30:21.890 DEBUG:teuthology.orchestra.run.trial123:> sudo tar c f - -C /var/lib/ceph/crash - .
2026-02-26T16:30:21.914 INFO:tasks.ceph:Compressing logs...
2026-02-26T16:30:21.914 DEBUG:teuthology.orchestra.run.trial123:> time

LS Updated by Lee Sanders 9 months ago Actions #8

/a/yuriw-2026-02-26_01:51:16-rados-wip-yuri9-testing-2026-02-25-1600-squid-distro-default-trial/
['70984', '70895', '71075' ]

/a/yuriw-2026-02-26_16:03:22-rados-wip-yuri9-testing-2026-02-25-1600-squid-distro-default-trial/
['72550', '72535', '72560', '72546', '72544', '72536', '72556']

LF Updated by Laura Flores 8 months ago Actions #9

@Nitzan Mordechai any update on this one?

NM Updated by Nitzan Mordechai 8 months ago Actions #10

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 68218

I created PR to fix that by suppressing that unrelated (to ceph) leak

LF Updated by Laura Flores 8 months ago Actions #11

  • Status changed from Fix Under Review to Pending Backport

RZ Updated by Radoslaw Zarzynski 8 months ago Actions #12

  • Backport changed from reef, squid to reef, squid, tentacle

UB Updated by Upkeep Bot 8 months ago Actions #13

  • Merge Commit set to 3fcf439630a4565ec40562623f90da176a449829
  • Fixed In set to v21.0.0-318-g3fcf439630
  • Upkeep Timestamp set to 2026-04-07T18:22:34+00:00

UB Updated by Upkeep Bot 8 months ago Actions #14

  • Copied to Backport #75894: reef: Leak_StillReachable monitor valgrind error in glibc added

UB Updated by Upkeep Bot 8 months ago Actions #15

  • Copied to Backport #75895: squid: Leak_StillReachable monitor valgrind error in glibc added

UB Updated by Upkeep Bot 8 months ago Actions #16

  • Copied to Backport #75896: tentacle: Leak_StillReachable monitor valgrind error in glibc added

UB Updated by Upkeep Bot 8 months ago Actions #17

  • Tags (freeform) set to backport_processed

NM Updated by Nitzan Mordechai 5 months ago Actions #18

/a/skanta-2026-06-10_03:59:16-rados-wip-bharath6-testing-2026-06-10-0655-squid-distro-default-trial/
['282122', '282135', '282193', '282210', '282252', '282300', '282316']

NM Updated by Nitzan Mordechai 5 months ago Actions #19

  • Backport changed from reef, squid, tentacle to tentacle, umbrella, squid

UB Updated by Upkeep Bot 3 months ago Actions #21

  • Copied to Backport #80058: umbrella: Leak_StillReachable monitor valgrind error in glibc added

UB Updated by Upkeep Bot 3 months ago Actions #22

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-04-07T18:22:34+00:00 to 2026-08-27T18:29:09+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #23

  • Released In set to v21.2.0~857
  • Upkeep Timestamp changed from 2026-08-27T18:29:09+00:00 to 2026-10-24T01:16:18+00:00

UB Updated by Upkeep Bot 30 days ago Actions #24

  • Released In changed from v21.2.0~857 to v21.2.0~858
  • Upkeep Timestamp changed from 2026-10-24T01:16:18+00:00 to 2026-11-04T01:09:37+00:00
Actions

Also available in: PDF Atom