Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2011 22:06:38 GMT
From:      John Smith <dcbug12345@mailinator.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/162495: dc -e "5 3 %p 1k 5 3 %p"
Message-ID:  <201111112206.pABM6cSx066964@red.freebsd.org>
Resent-Message-ID: <201111112210.pABMA5Qe070879@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111112206.pABM6cSx066964>