Page 1 of 1

posibble to get frozen thread stack?

Posted: Sun Nov 28, 2021 1:46 pm
by spanfkyous
Hi,

Is it posibble to get the frozen thread stack in bug report?

I have a application. it was frozen somtimes, while the bugreport show it was frozen by a simple function, so i wanna know if some wrong parameters were passed to this function.

Thanks.

Re: posibble to get frozen thread stack?

Posted: Tue Nov 30, 2021 2:49 pm
by madshi
I'm not sure exactly what you're asking. Can you explain in other words or more detail?

Re: posibble to get frozen thread stack?

Posted: Wed Dec 01, 2021 3:25 am
by spanfkyous
madshi wrote: Tue Nov 30, 2021 2:49 pm I'm not sure exactly what you're asking. Can you explain in other words or more detail?
It's my fault. :oops:

I am using madexcept to check app frozen..

but the "stack dump" and "cpu regs" are only available for exception checking.

so is it posibble to them working for frozen checking?

Re: posibble to get frozen thread stack?

Posted: Wed Dec 01, 2021 8:48 am
by madshi
Ah, now I understand. The stack dump and registers are not shown because they are (potentially) changing all the time. E.g. if the main thread is in a end endless loop, all the registers will constantly change, and thus also the stack.

An exception is a special situation: Basically it's one very specific point in time and madExcept then collects the stack and registers at that exact point in time and shows it to you. But a frozen main thread is more or less "dynamic", in that registers and stack can (potentially) change all the time. So I don't think that showing this information would be very useful?