login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #386 Infinite loop in LISP related to Tuple? revision 5 of 3

1 2 5
Editor: gdr
Time: 2008/04/01 17:04:20 GMT-7
Note: Fixed in OpenAxiom

added:

From gdr Tue Apr 1 17:03:59 -0700 2008
From: gdr
Date: Tue, 01 Apr 2008 17:03:59 -0700
Subject: 
Message-ID: <20080401170359-0700@axiom-wiki.newsynthesis.org>

Status: open => fixed somewhere 


From gdr Tue Apr 1 17:04:20 -0700 2008
From: gdr
Date: Tue, 01 Apr 2008 17:04:20 -0700
Subject: Fixed in OpenAxiom
Message-ID: <20080401170420-0700@axiom-wiki.newsynthesis.org>



Submitted by : (unknown) at: 2007-11-17T22:35:54-08:00 (17 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

The second line (which should report syntax error at worse), seems to be generating an infinite loop that exhausts memory.

axiom
g:=[(1,2),(3,4)]

\label{eq1}\left[{\left(1, \: 2 \right)}, \:{\left(3, \: 4 \right)}\right](1)
Type: List Tuple PositiveInteger?
axiom
[1 for (a,b) in g]
Unknown type of loop iterator form.

On my system, the following message finally appeared:

   >> System error:
   The storage for CONS is exhausted.
   Currently, 85895 pages are allocated.
   Use ALLOCATE to expand the space.

The Axiom Book (Jenks&Sutor) does not describe this syntax valid. All `for in' discussions are with single variable names -- not structured or pattern matching stuff.

So, I suspect the right answer is a diagnostic.

Status: open => fixed somewhere