speedscope icon indicating copy to clipboard operation
speedscope copied to clipboard

Fix maximum call stack size exceeded in some case

Open Camork opened this issue 2 years ago • 2 comments

I found some stackoverflow bugs when import a customized format with a very deep recursion. There are another similar report , but I can only fix my cases.

Camork avatar Jul 14 '23 04:07 Camork

Hi @Camork!

Can you share more about how the stack overflow was was being produced in the first place? Is this a profile you produced where the actual stack depth of the profile itself was in the hundred to thousands?

jlfwong avatar Jul 14 '23 07:07 jlfwong

We have implement a format in our own , it records the function call, and use the CallTreeProfileBuilder to build the ProfileGroup . The format composed by the'call' and 'return' like function.

Is this a profile you produced where the actual stack depth of the profile itself was in the hundred to thousands?

Yes, we have record a application which do recursion call about thirty thousand mostly.

Camork avatar Jul 14 '23 07:07 Camork