[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprofng/31460] heap tracing causes infinite recursion on calloc wit
From: |
carlsonj at workingcode dot com |
Subject: |
[Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications |
Date: |
Thu, 21 Mar 2024 13:32:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31460
--- Comment #2 from James Carlson <carlsonj at workingcode dot com> ---
First of all, your test case:
% gcc -pthread t.c
t.c:3:11: warning: built-in function 'calloc' declared as non-function
[-Wbuiltin-declaration-mismatch]
3 | long long calloc = 0;
| ^~~~~~
% ./a.out
% echo $?
0
That works fine. The machine itself is running Ubuntu 22.04.4 LTS (Jammy
Jellyfish).
I made a clean sandbox and found no trouble at all with "-H on", so it's
clearly related to something else in my environment. I'll spend some time
searching. In the meantime, this can probably be closed out as "cannot
reproduce" until I get to the bottom of whatever's going on.
It's definitely reproducible and happens all the time in the giant proprietary
C++ application I'm working on and in these tiny test programs when compiled
inside that same environment, but I don't know yet how or why. Something causes
collector's calloc hook to end up invoking itself.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gprofng/31460] New: heap tracing causes infinite recursion on calloc with multi-threaded applications, carlsonj at workingcode dot com, 2024/03/07
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, sam at gentoo dot org, 2024/03/07
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, vladimir.mezentsev at oracle dot com, 2024/03/19
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, vladimir.mezentsev at oracle dot com, 2024/03/20
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications,
carlsonj at workingcode dot com <=
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, carlsonj at workingcode dot com, 2024/03/21
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, vladimir.mezentsev at oracle dot com, 2024/03/21
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, vladimir.mezentsev at oracle dot com, 2024/03/22
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, carlsonj at workingcode dot com, 2024/03/22
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, vladimir.mezentsev at oracle dot com, 2024/03/23
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, carlsonj at workingcode dot com, 2024/03/23
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, cvs-commit at gcc dot gnu.org, 2024/03/25
- [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications, vladimir.mezentsev at oracle dot com, 2024/03/25