Ticket #870 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

unexpected out-of-memory condition

Reported by: art Owned by:
Priority: normal Milestone:
Component: IDE Version: 1.6
Keywords: Cc:

Description

[art@vm64 ~]> ccl -R 135600M
Welcome to Clozure Common Lisp Version 1.6-r14468M  (FreebsdX8664)!
? (defvar *seq* (make-sequence '(simple-array (unsigned-byte 8) (*)) 1000))
*SEQ*
? (ccl:with-output-to-vector (s) (write-sequence *seq* s))
> Error: Memory allocation request failed.
> While executing: CCL::%EXTEND-VECTOR-OUTPUT-STREAM, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 >

Tracing CCL::%EXTEND-VECTOR-OUTPUT-STREAM shows many calls of the function,
and each call doubles size of :outbuf.

Change History

comment:1 Changed 4 years ago by gb

  • Status changed from new to closed
  • Resolution set to fixed

(In [14833]) Writing octet sequences to vector output streams grows the buffer, so account for that in %IOBLOCK-BINARY-STREAM-WRITE-VECTOR.

Fixes ticket:870 in the trunk.

Note: See TracTickets for help on using tickets.