Skip to content

( - A thread example that can crash Win32 . . . #13

supergrade opened this Issue Dec 18, 2011 · 0 comments

1 participant


This crashes the win32/32-bit SBCL.exe. . . .

"Heap exhausted", even though the process isn't really using much ram (it crashes within a couple of minutes, and doesn't look to be leaking).

(defclass deflate-compressor ()
:initarg :input
:accessor input)
:initarg :chains
:accessor chains)
:initarg :hashes
:accessor hashes)
:initarg :octet-buffer
:accessor octet-buffer)
:initarg :literal-fun
:accessor literal-fun)
:initarg :length-fun
:accessor length-fun)
:initarg :distance-fun
:accessor distance-fun)
:initarg :byte-fun
:accessor byte-fun)
:initarg :compress-fun
:accessor compress-fun))
:input (make-array 65536 :element-type '(unsigned-byte 8))
:chains (make-array 65536
:element-type '(unsigned-byte 16)
:initial-element 0)
:hashes (make-array 8191
:element-type '(unsigned-byte 16)
:initial-element 0)

:octet-buffer nil))

(loop for i from 1 to 10 do
(lambda ()
(loop for j from 1 do
(make-instance 'deflate-compressor)))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.