Opened 4 years ago

Last modified 2 weeks ago

#323 new defect

Problems in CL-STORE's use of FLEXI-STREAMS trying to run jfarm

Reported by: Owned by: nobody
Priority: major Milestone: 1.6.0
Component: java Version: 1.3.0-dev
Keywords: Cc:
Parent Tickets:


A installing [https lfarm] and using QL:QUICKLOAD to resolve dependencies, one encounters the following error:

The value #<FLEXI-STREAMS::VECTOR-OUTPUT-STREAM {64F9644E}> is not of type STREAM.
   [Condition of type TYPE-ERROR]
  0: (#<FUNCTION {66D85E40}> #<TYPE-ERROR {3613D35}> #<FUNCTION {66D85E40}>)
  1: (APPLY #<FUNCTION {66D85E40}> (#<TYPE-ERROR {3613D35}> #<FUNCTION {66D85E40}>))
  4: (ERROR #<TYPE-ERROR {3613D35}>)
  6: (#<FUNCTION (LAMBDA (CL-STORE::C)) {2E126721}> #<TYPE-ERROR {3613D35}>)
  7: (SIGNAL #<TYPE-ERROR {3613D35}>)
  8: org.armedbear.lisp.Lisp.error(
  9: org.armedbear.lisp.Lisp.type_error(
 10: org.armedbear.lisp.default_backend_ASDF_TMP_93.execute(default-backend.lisp:712)
 11: org.armedbear.lisp.Symbol.execute(
 12: org.armedbear.lisp.default_backend_ASDF_TMP_92.execute(default-backend.lisp:703)
 13: org.armedbear.lisp.Symbol.execute(
 14: org.armedbear.lisp.default_backend_ASDF_TMP_79.execute(default-backend.lisp:584)
 15: org.armedbear.lisp.clos_306.execute(clos.lisp:2719)
 16: org.armedbear.lisp.LispThread.execute(
 17: org.armedbear.lisp.clos_292.execute(clos.lisp:2527)
 18: org.armedbear.lisp.Symbol.execute(
 19: org.armedbear.lisp.clos_278.execute(clos.lisp:2301)
 20: org.armedbear.lisp.FuncallableStandardObject.execute(
 21: org.armedbear.lisp.Symbol.execute(
 22: org.armedbear.lisp.LispThread.execute(
 23: org.armedbear.lisp.circularities_ASDF_TMP_42.execute(circularities.lisp:178)
 24: org.armedbear.lisp.clos_306.execute(clos.lisp:2719)
 25: org.armedbear.lisp.LispThread.execute(
 26: org.armedbear.lisp.clos_292.execute(clos.lisp:2527)
 27: org.armedbear.lisp.Symbol.execute(
 28: org.armedbear.lisp.clos_278.execute(clos.lisp:2301)
 29: org.armedbear.lisp.FuncallableStandardObject.execute(
 30: org.armedbear.lisp.Symbol.execute(
 31: org.armedbear.lisp.circularities_ASDF_TMP_35.execute(circularities.lisp:132)
 32: org.armedbear.lisp.clos_306.execute(clos.lisp:2719)
 33: org.armedbear.lisp.LispThread.execute(
 34: org.armedbear.lisp.circularities_ASDF_TMP_32.execute(circularities.lisp:129)
 35: org.armedbear.lisp.CompiledClosure.execute(
 36: org.armedbear.lisp.circularities_ASDF_TMP_34.execute(circularities.lisp:129)
 37: org.armedbear.lisp.LispThread.execute(
 38: org.armedbear.lisp.Primitives$pf_apply.execute(
 39: (#<FUNCTION {5655F8F0}> (#<CL-STORE:CL-STORE {264A80D8}> "hello" #<FLEXI-STREAMS::VECTOR-OUTPUT-STREAM {64F9644E}>))
 41: (#<FUNCTION {6550F88B}> (#<CL-STORE:CL-STORE {264A80D8}> "hello" #<FLEXI-STREAMS::VECTOR-OUTPUT-STREAM {64F9644E}>))
 42: (#<FUNCTION {26EDA1A4}> (#<CL-STORE:CL-STORE {264A80D8}> #<FLEXI-STREAMS::VECTOR-OUTPUT-STREAM {64F9644E}> "hello"))

Subtickets (add)

Change History (7)

comment:1 Changed 4 years ago by

  • Milestone set to 1.3.0
  • Version set to 1.3.0-dev

comment:2 Changed 3 years ago by t.y chew

Copied from

Narrowed the problem down to type declaration (which cl-store uses a
lot) & compilation. As an example:

(defun test (stream)

(declare ;; (type stream stream)

(stream stream)
;; (optimize speed (safety 1) (debug 0))

(write-byte 1 stream))

(flex:with-output-to-sequence (s)

(test s))

If you evaluate test (C-x C-e), the second form works. If test is compiled,
(C-c C-c), then the second form fails. Some sort of type check error? The
flexi-streams *is* a stream:

(block a

(flex:with-output-to-sequence (s)

(return-from a

(list (type-of s)

(typep s 'stream)))))


comment:3 Changed 3 years ago by mevenson

  • Milestone changed from 1.3.0 to 2.0

Ticket retargeted after milestone closed

comment:4 Changed 3 years ago by mevenson

  • Milestone changed from 2.0 to 2.0.0

Milestone renamed

comment:5 Changed 3 years ago by mevenson

  • Milestone changed from 2.0.0 to 1.4.0

comment:6 Changed 9 months ago by mevenson

  • Milestone changed from 1.4.0 to 1.5.0

Ticket retargeted after milestone closed

comment:7 Changed 2 weeks ago by mevenson

  • Milestone changed from 1.5.0 to 1.6.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.