Opened 9 years ago

Closed 9 years ago

#870 closed defect (fixed)

unexpected out-of-memory condition

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


[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))
? (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 (1)

comment:1 Changed 9 years ago by gb

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

(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.