Pablo Galindo Salgado
Pablo Galindo Salgado
Also can you run the gdb in verbose mode to know what files is picking up?
Can you send us the ELF files for the executable, libpython and the symbols?
We use libunwind to get the back traces but we use a custom libbacktrace (in the vendor directory) to analyze them, so what you propose won't help.
Check out https://github.com/bloomberg/memray/tree/main/src/vendor/libbacktrace
Thanks for the bug report @sethtroisi. I have a sense of where the problem may be but there are a bunch of things of your setup that I don't understand....
@ambv you know if we are missing something? This was handled correctly for 3.10 automatically IIRC
I think https://github.com/bloomberg/memray/pull/732 should fix this as it should be going via the pthread API. This went into [v1.17.2](https://github.com/bloomberg/memray/releases/tag/v1.17.2). Can you test with that one?
@godlygeek we still have a problem with shim frames and native frames in general because it's possible that we are in one of these two situations (we are just returning...
For instance, this generates such a situation: ``` import asyncio import _asyncio import gc import time class MyFuture(asyncio.Future): def __del__(self): time.sleep(1000) async def main(): it = iter(MyFuture()) asyncio.run(main()) ```
I decided to fix the shim problem by always capturing shim frames and filter them out properly in the traceback formatter, which is slightly less efficient because we are not...