SLEEP on single-float-positive-infinity causes compiler error

Bug #1754081 reported by Paul F. Dietz on 2018-03-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Low
Jan Moringen

Bug Description

(lambda () (sleep sb-ext:single-float-positive-infinity))

==>

can't decode NaN or infinity: #.SB-EXT:SINGLE-FLOAT-POSITIVE-INFINITY
   [Condition of type SIMPLE-ERROR]
[...]
  0: (SB-KERNEL:INTEGER-DECODE-SINGLE-FLOAT #.SB-EXT:SINGLE-FLOAT-POSITIVE-INFINITY)
  1: (SB-KERNEL:%UNARY-TRUNCATE #.SB-EXT:SINGLE-FLOAT-POSITIVE-INFINITY)
  2: (SB-IMPL::SPLIT-SECONDS-FOR-SLEEP #.SB-EXT:SINGLE-FLOAT-POSITIVE-INFINITY)
  3: ((SB-C:DEFTRANSFORM SLEEP) #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME SLEEP :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GLOBAL-FUN..
  4: (SB-C::IR1-TRANSFORM #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME SLEEP :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GLOBAL-FUNCTION ..
[...]

Jan Moringen (scymtym) on 2018-03-08
Changed in sbcl:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Jan Moringen (scymtym)
Paul F. Dietz (paul-f-dietz) wrote :

To confirm a statement on #sbcl: this bug is about the compiler error. I have no opinion on what SLEEP should do at runtime in this situation.

Jan Moringen (scymtym) on 2018-03-31
Changed in sbcl:
status: Confirmed → Fix Committed
Jan Moringen (scymtym) wrote :

f5e1e0654bba266465ae2d60cc25254b098d72a4

Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers