gprolog toplevel fails on basic example (fixed upstream?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gprolog (Debian) |
Fix Released
|
Unknown
|
|||
gprolog (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
In Ubuntu 17.04 (Zesty), with gprolog 1.4.5-4.1, the toplevel interpreter fails to execute valid code, including this basic example copied from the manual:
krakatoa ~ % gprolog
GNU Prolog 1.4.5 (64 bits)
Compiled Feb 5 2017, 10:30:08 with gcc
By Daniel Diaz
Copyright (C) 1999-2016 Daniel Diaz
| ?- [user].
compiling user for byte code...
even(0).
even(s(s(X))) :- even(X).
user compiled, 2 lines read - 326 bytes written, 12353 ms
(3 ms) yes
| ?- even(X).
X = 0 ? ;
uncaught exception: error(existence
| ?-
The same example works with all other versions of gprolog I tested: the older 1.3.0-6.1 in Xenial; the stable version 1.4.4 downloaded from http://
krakatoa ~ % export PATH=/opt/
krakatoa ~ % gprolog
GNU Prolog 1.4.4 (64 bits)
Compiled Aug 17 2017, 12:18:48 with gcc
By Daniel Diaz
Copyright (C) 1999-2013 Daniel Diaz
| ?- [user].
compiling user for byte code...
even(0).
even(s(s(X))) :- even(X).
user compiled, 3 lines read - 321 bytes written, 3627 ms
yes
| ?- even(X).
X = 0 ? ;
X = s(s(0)) ? ;
X = s(s(s(s(0)))) ? ;
X = s(s(s(s(s(s(0)))))) ?
yes
| ?-
I believe the bug was introduced and fixed sometime between 1.4.4 and the current code in git. It looks related to these messages in the users-prolog mailing list. No fix was subsequently announced, but the current code works.
http://<email address hidden>
http://<email address hidden>
This bug makes Zesty's gprolog package unusable. Could you please update it?
Thanks in advance,
Cedric Ware.
Changed in gprolog (Debian): | |
status: | Unknown → New |
Changed in gprolog (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.