100% CPU utilization when gprolog loses shell connection - 1.4.4 @ Ubuntu 14.04
-----BEGIN PGP SIGNED MESSAGE-----
I found a bug where I can cause the gprolog process to use 100% cpu when
it is not calculating or solving anything, but only waiting for input.
Steps to reproduce:
1) Open two separate terminals
2) In terminal 1, execute 'sh -c gprolog'
The gprolog prompt appears.
3) In terminal 2, find the pid of 'sh -c gprolog' and terminate that
process with kill -9
The gprolog process remains alive, but is idling near 0% cpu. The 'sh -c
gprolog' is gone.
4) In terminal 1, enter some text without pressing Enter.
The gprolog process is now at 100% CPU.
I expected gprolog to realize that its input or output streams were
closed and that it should terminate. This does happen when I press Enter
at step 4 without entering text. When I enter text, the CPU is at 100%,
when I only press Enter the gprolog process terminates.
with kind regards,
Kevin de Berk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1