[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprofng/31460] New: heap tracing causes infinite recursion on callo
From: |
carlsonj at workingcode dot com |
Subject: |
[Bug gprofng/31460] New: heap tracing causes infinite recursion on calloc with multi-threaded applications |
Date: |
Thu, 07 Mar 2024 16:38:52 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31460
Bug ID: 31460
Summary: heap tracing causes infinite recursion on calloc with
multi-threaded applications
Product: binutils
Version: 2.43 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gprofng
Assignee: vladimir.mezentsev at oracle dot com
Reporter: carlsonj at workingcode dot com
Target Milestone: ---
Created attachment 15391
--> https://sourceware.org/bugzilla/attachment.cgi?id=15391&action=edit
Demonstrates infinite recursion with "-H on"
When setting "-H on" with "gprofng collect app", starting a new thread triggers
infinite recursion. The crash looks like this in gdb:
#26129 0x00007f81ed538de5 in calloc (size=32, esize=16) at heaptrace.c:447
#26130 0x00007f81e7c9bbaf in ___pthread_setspecific (key=key@entry=38,
value=value@entry=0x7f81e19fcac0) at ./nptl/pthread_setspecific.c:69
#26131 0x00007f81ed40bff7 in __collector_tsd_get_by_key (key_index=<optimized
out>) at tsd.c:138
#26132 0x00007f81ed538de5 in calloc (size=32, esize=16) at heaptrace.c:447
#26133 0x00007f81e7c9bbaf in ___pthread_setspecific (key=key@entry=38,
value=value@entry=0x7f81e19fcad0) at ./nptl/pthread_setspecific.c:69
#26134 0x00007f81ed40bff7 in __collector_tsd_get_by_key (key_index=<optimized
out>) at tsd.c:138
#26135 0x00007f81ed538de5 in calloc (size=32, esize=16) at heaptrace.c:447
#26136 0x00007f81e7c9bbaf in ___pthread_setspecific (key=key@entry=40,
value=value@entry=0x7f81e19fcae0) at ./nptl/pthread_setspecific.c:69
#26137 0x00007f81ed40bff7 in __collector_tsd_get_by_key (key_index=<optimized
out>) at tsd.c:138
#26138 0x00007f81ed428bfc in __collector_ext_unwind_key_init
(isPthread=isPthread@entry=1, stack=stack@entry=0x0) at unwind.c:342
#26139 0x00007f81ed40552a in collector_root (cargs=<optimized out>) at
dispatcher.c:1103
#26140 0x00007f81e7c94ac3 in start_thread (arg=<optimized out>) at
./nptl/pthread_create.c:442
#26141 0x00007f81e7d26850 in clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Attached is a simple program that demonstrates the problem.
--
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 <=
- [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, 2024/03/21
- [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