bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/31460] heap tracing causes infinite recursion on calloc wit


From: vladimir.mezentsev at oracle dot com
Subject: [Bug gprofng/31460] heap tracing causes infinite recursion on calloc with multi-threaded applications
Date: Thu, 21 Mar 2024 00:26:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31460

--- Comment #1 from Vladimir Mezentsev <vladimir.mezentsev at oracle dot com> 
---
 I cannot reproduce the problem on OL8 with libpthread-2.28.
It looks like calloc() is called in ./nptl/pthread_setspecific.c:69
But this calloc() must be from libc, not from the user application.


Can you run this test in your environment:

% cat t.c
#include <pthread.h>

long long calloc = 0;

void *func(void *arg)
{
        return NULL;
}

int main(int argc, char **argv)
{
        pthread_t thr;
        void *val;

        pthread_create(&thr, NULL, func, NULL);
        pthread_join(thr, &val);
        return 0;
}

% gcc -pthread t.c
% ./a.out

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]