misc/162495: dc -e "5 3 %p 1k 5 3 %p"

John Smith dcbug12345 at mailinator.com
Fri Nov 11 22:10:06 UTC 2011


>Number:         162495
>Category:       misc
>Synopsis:       dc -e "5 3 %p 1k 5 3 %p"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 11 22:10:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     John Smith
>Release:        9.0-RC1
>Organization:
John Smith Co.
>Environment:
FreeBSD foo 9.0-RC1 FreeBSD 9.0-RC1 #2: Fri Nov  4 21:50:17 EDT 2011     foo at foo:/usr/obj/usr/src/sys/MYKERNEL  i386
>Description:
/usr/src/usr.bin/dc/

%dc -e "5 3 %p 1k 5 3 %p"
2
.2

Output of the modulo operator is divided by 10(scale) when scale>0.

>From what I tested the bug doesn't appear to happen in bcode.c:bmod(void), it looks like it happens some time after it is called.
>How-To-Repeat:
%dc -e "5 3 %p 1k 5 3 %p"
2
.2
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list