Lisp HUG Maillist Archive

Odd error

Can anyone explain this error? I know that 
gethash is setf-able, but it doesn't seem to be 
incf-able. I can accept that if it's the case (though
it would seem strange to me), but it doesn't
seem that it should generate a pointer out of
memory bounds error. This was executed in  
a Listener on LWM4.4.5 Pro. The first time i 
eval'ed it I got a "The application...has unexpectedly
terminated. ..." But I clicked Cancel, and LW
stayed around.

CL-USER 27 > 
(progn 
  (setf *ht* (make-hash-table))
  (setf (gethash 'foo *ht*) 2)
  (incf (gethash 'foo *ht*)))
#<pointer out of memory bounds:  5>
Nil
Nil
#\A
(If (Setq #:|tlatter897| (Funcall (The System:Callable
(System::Hash-Table-Get-Tlatter-Fn #:|table896|)) #:|key895|
#:|table896|)) (Values (System::Tlatter-Value (The System:Tlatter
#:|tlatter897|)) T) (Values #:|default898| Nil))
Error: Signal : Bus error(10)
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

Type :b for backtrace, :c <option number> to proceed,  or :? for other options

CL-USER 28 : 1 > 




-- 
=====================
Joshua Taylor
tayloj@rpi.edu


Re: Odd error

On Fri, 22 Jul 2005 14:58:36 -0400, Joshua Taylor <joshuaaaron@gmail.com> wrote:

> Can anyone explain this error? I know that gethash is setf-able, but
> it doesn't seem to be incf-able. I can accept that if it's the case
> (though it would seem strange to me), but it doesn't seem that it
> should generate a pointer out of memory bounds error. This was
> executed in a Listener on LWM4.4.5 Pro. The first time i eval'ed it
> I got a "The application...has unexpectedly terminated. ..." But I
> clicked Cancel, and LW stayed around.
>
> CL-USER 27 > 
> (progn 
>   (setf *ht* (make-hash-table))
>   (setf (gethash 'foo *ht*) 2)
>   (incf (gethash 'foo *ht*)))
> #<pointer out of memory bounds:  5>

Works without problems for me with 4.4.5 on Windows and Linux.

Cheers,
Edi.


Re: Odd error

Ah, I just thought to test it under CLISP on the 
Mac. It works there. Also works under MCL.
Looks like LWM is misbehaving.

On 22/07/05, Edi Weitz <edi@agharta.de> wrote:
> On Fri, 22 Jul 2005 14:58:36 -0400, Joshua Taylor <joshuaaaron@gmail.com> wrote:
> 
> > Can anyone explain this error? I know that gethash is setf-able, but
> > it doesn't seem to be incf-able. I can accept that if it's the case
> > (though it would seem strange to me), but it doesn't seem that it
> > should generate a pointer out of memory bounds error. This was
> > executed in a Listener on LWM4.4.5 Pro. The first time i eval'ed it
> > I got a "The application...has unexpectedly terminated. ..." But I
> > clicked Cancel, and LW stayed around.
> >
> > CL-USER 27 >
> > (progn
> >   (setf *ht* (make-hash-table))
> >   (setf (gethash 'foo *ht*) 2)
> >   (incf (gethash 'foo *ht*)))
> > #<pointer out of memory bounds:  5>
> 
> Works without problems for me with 4.4.5 on Windows and Linux.
> 
> Cheers,
> Edi.
> 


-- 
=====================
Joshua Taylor
tayloj@rpi.edu


Updated at: 2020-12-10 08:51 UTC