bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segmentation fault writing cyclic term


From: Paulo Moura
Subject: Re: segmentation fault writing cyclic term
Date: Sat, 4 Dec 2021 11:21:29 +0000

Hi,

> On 4 Dec 2021, at 00:11, Paul Eggert <eggert@CS.UCLA.EDU> wrote:
> 
> This is GNU Prolog 1.5.0 running on Fedora 35 x86-64.
> 
> $ gprolog
> GNU Prolog 1.5.0 (64 bits)
> Compiled Jul 22 2021, 00:00:00 with gcc
> Copyright (C) 1999-2021 Daniel Diaz
> 
> | ?- X = X+1, write(X).
> X = X+1, write(X).
> Segmentation fault (core dumped)
> 
> 
> Shouldn't write/1 be protected against cyclic terms?

Note that support for cyclic terms is not a ISO Prolog standard requirement. In 
fact, only a few Prolog systems provide comprehensive support for cyclic terms. 
That said, better support for cyclic terms in future GNU Prolog versions would 
be most welcome.

Cheers,
Paulo


-----------------------------------------------------------------
Paulo Moura
Logtalk developer







reply via email to

[Prev in Thread] Current Thread [Next in Thread]