I really appreciate that. Thank you very much :)
My software would finally work in a loop with no worries.

OK, I was able to figure it out.  The problem is that the `read -t'
> generates SIGALRM, which sometimes arrives and is handled while the SIGCHLD
> trap is running (bash-4.2 runs the SIGCHLD trap immediately).  This
> violates assumptions bash makes about the state of the unwind-protect
> stack, and results in a double free because the free bash thinks it's
> avoiding actually happens.
>
> The real fix is coming in the next release of bash, with an extensive
> reworking of how signal handlers and traps are run, but the attached
> patch should be able to get you through the seg fault.
>
> Chet
>

Reply via email to