bugKawa - Bugs: bug #12216, runaway expression

 
 

bug #12216: runaway expression

Submitted by:  None
Submitted on:  Sat 05 Mar 2005 12:21:42 AM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Unexpected resultStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 18 Mar 2005 06:06:18 AM UTC, comment #2:

Actually, the expression "works", and does the same as:
(make <list>)

The problem is that printing the list causes an infinite loop or stack overflow, because the resulting gnu.lists.LList object is not a valid <list> - it is neither a <pair> nor is it the empty list. That's why you're not supposed to (make <list>) - the LList constructor is only public to support serialization.

I fixed the printer/formatting/toString routines to handle this pathological case.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Thu 17 Mar 2005 11:27:07 PM UTC, comment #1:

Weird. I have reproduced it, and will take a look soon.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sat 05 Mar 2005 12:21:42 AM UTC, original submission:

This expression causes the interpreter to loop
infinitely in a rather remarkable way:

(let ((x <list>)) (make x))

(I was just trying to figure out whether type specifiers are first-class objects.)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 18 Mar 2005 06:06:18 AM UTCbothnerStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 17 Mar 2005 11:27:07 PM UTCbothnerAssigned toNone=>bothner

Back to the top


Powered by Savane 3.1-cleanup1