bash script causes software hang

Hi All,
We are using bash 2.05b on our Linux box. We have developed a bash
scripts that sets the firewalls on our system. We run the script in RR
class of scheduler. Under stress test (running the script
continously). We observe the system is in soft hang, and the only way
to get out of the hang state is to send nice command (lower priorty of
the script) through sysrq.
Any help greatly apprieciated.