GNU bug report logs -
#24908
Possible unboxing bug in master triggered by (format)
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#24908: Possible unboxing bug in master triggered by (format)
which was filed against the guile package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 24908 <at> debbugs.gnu.org.
--
24908: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24908
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Fixed in 2660c0b3c86bf76fab465c200a5ca20fb37cf811.
[Message part 3 (message/rfc822, inline)]
(format #f "~2f" 9.9) fails in master. You can try different combinations, it doesn't fail when it rounds down or there're more spaces for example.
The first bad commit is 0f2f5949a21572fad8355473200c7adc6d74f882 'Better unboxing' on the master branch.
See the full error below. 18446744073709551615 is 2^64-1 of course so it looks like bad signedness somewhere.
Regards
Daniel
> guile -c '(use-modules (ice-9 format)) (format #f "~2f" 9.9)'
Backtrace:./meta/guile -c '(use-modules (ice-9 format)) (format #f "~2f" 9.9)'
Backtrace:
8 (apply-smob/1 #<catch-closure 1105c20>)
In ice-9/boot-9.scm:
704:2 7 (call-with-prompt ("prompt") #<procedure 110a060 at ic…> …)
In ice-9/eval.scm:
608:8 6 (_ #(#(#<directory (guile-user) 110cf30>)))
In ice-9/command-line.scm:
181:18 5 (_ #<input: string 1119f50>)
In unknown file:
4 (eval (format #f "~2f" 9.9) #<directory (guile-user) 11…>)
In ice-9/format.scm:
1590:19 3 (format #f "~2f" 9.9)
316:19 2 (format:format-work "~2f" (9.9))
1142:30 1 (format:out-fixed #f _ _)
1525:37 0 (format:fn-round _)
ice-9/format.scm:1525:37: In procedure format:fn-round:
ice-9/format.scm:1525:37: In procedure string-ref: Value out of range: 18446744073709551615
This bug report was last modified 8 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.