]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Doc: add item on tcmalloc >= 2.16 hangs to FAQ
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 21 Sep 2025 18:53:33 +0000 (20:53 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 21 Sep 2025 18:53:33 +0000 (20:53 +0200)
docs/xml/FAQ.xml

index 201b365021857e3d3302a8f23e7049e717e743ee..f246fa6c993c553d2a07120dc7fba8ea75361e2b 100644 (file)
@@ -541,6 +541,26 @@ int main(void)
   </answer>
 </qandaentry>
 
+<qandaentry id="faq.hangs">
+  <question id="q-hangs">
+    <para>Why does Valgrind hang when using tcmalloc?</para>
+  </question>
+  <answer id="a-hangss">
+    <para>This is because tcmalloc makes a recursive call in its initialisation code.
+      Under Valgrind that becomes either an infinite loop with optimised builds of tcmalloc
+      or a stack overflow crash with debug builds of it.</para>
+
+    <para>Your options are:
+      <itemizedlist>
+        <listitem>Do not use tcmalloc in the builds that you test with Valgrind.</listitem>
+        <listitem>Use an older version of tcmalloc. This problem started on 2024-03-24.
+          If you use gperftools 2.15 or older you should not have this problem.</listitem>
+      </para>
+
+  </answer>
+</qandaentry>
+
+
 </qandadiv>
 
 <!-- Miscellaneous -->