Skip to content

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

Description

@supergrade

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 ()
((input
:initarg :input
:accessor input)
(chains
:initarg :chains
:accessor chains)
(hashes
:initarg :hashes
:accessor hashes)
(octet-buffer
:initarg :octet-buffer
:accessor octet-buffer)
(literal-fun
:initarg :literal-fun
:accessor literal-fun)
(length-fun
:initarg :length-fun
:accessor length-fun)
(distance-fun
:initarg :distance-fun
:accessor distance-fun)
(byte-fun
:initarg :byte-fun
:accessor byte-fun)
(compress-fun
:initarg :compress-fun
:accessor compress-fun))
(:default-initargs
: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
(sb-thread:make-thread
(lambda ()
(loop for j from 1 do
(make-instance 'deflate-compressor)))))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions