Re: large hashtable crashes SBCL and GCL
- From: "Richard J. Fateman" <fateman@xxxxxxxxxxxxxxxxx>
- Date: Tue, 19 Aug 2008 11:21:45 -0700
Thanks! Juho's comment was exactly right; Daniel's fix is probably accidental. (I was reading beyond the end of an array, but never looked at the bogus values... maybe the GC did though!)
The reason I had no *earmuffs* is that I was typing x and y in repeatedly for tests, and didn't want to type *x* and *y* so much.
But I agree stylistically it's preferable.
No need to look further.
Anecdote -- when I was first learning Lisp in 1966 at MIT, I found that programs could be debugged by emptying my bladder.
How? ...It meant leaving a program listing by a computer terminal (one of maybe 6 or so in a big room on the 9th floor of Project MAC/AI lab, a room which housed a PDP-6 too) for a few minutes. When I returned, some anonymous hacker would have gone over to "my" terminal, picked up the listing, and scribbled a bug fix on the paper. Considering that many listings had no comments...
Thanks again.
RJF
D Herring wrote:
rjf wrote:.in http://www.cs.berkeley.edu/~fateman/lisp/bughash.lisp
I took only a cursory look at your file, but
- comment out the defvar x and y (what!?! no *earmuffs*?!?)
- redefine the test
(defun test(n m &optional (d 5)) ;try these parameters for now.
(let ((x (make-racg n d))
(y (make-racg m d)))
(length (car (mulhash1 x y))) ;; some number returned
))
gets rid of the crash without changing the results of the first three tests.
No idea whether it changes other functionality significantly.
- Daniel
- Follow-Ups:
- Re: large hashtable crashes SBCL and GCL
- From: Rob Warnock
- Re: large hashtable crashes SBCL and GCL
- References:
- large hashtable crashes SBCL and GCL
- From: rjf
- Re: large hashtable crashes SBCL and GCL
- From: D Herring
- large hashtable crashes SBCL and GCL
- Prev by Date: Re: Referencing an earlier argument in an ordinary lambda list ?
- Next by Date: Re: Referencing an earlier argument in an ordinary lambda list ?
- Previous by thread: Re: large hashtable crashes SBCL and GCL
- Next by thread: Re: large hashtable crashes SBCL and GCL
- Index(es):
Relevant Pages
|