SIGSEGV in memory profiler (when memalloc_add_event
calls traceback_free
)
#11751
Labels
Profiling
Continous Profling
memalloc_add_event
calls traceback_free
)
#11751
We're hitting SIGSEGVs every now and then with the memory profiler.
Python version is 3.11.11. ddtrace is 2.17.3. We're using the amd64 architecture.
I've extracted a native stack traceback from the coredump:
It seems to me that this call access some invalid memory.
I believe #11460 might fix it; a possible explanation is that two threads decide to ditch the same traceback, in case reservoir sampling yielded the same index in both threads, then we might call
traceback_free
twice on the same pointer (as long as it isn't guarded by a lock).I'm not sure if that's the case though, but it's a possible explanation.
The text was updated successfully, but these errors were encountered: