'How to debug when bash hangs?

How to debug when bash hangs? I have a script running on an ARM64 linux with bash. It hangs after running for a few hours. pstack shows nothing. strace shows nothing either. I cannot stop the process even with kill -9. What else can I do with it to debug? Any suggestions will be appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source