Skip to content
Tcl Source Code View Ticket
Login

View Ticket

floating point error at 9074E304

Closed / Fixed218592ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:52
OriginalBugID: 1374 Bug
Version: 8.0p2
SubmitDate: '1999-03-02'
LastModified: '1999-04-16'
Severity: CRIT
Status: Released
Submitter: pat
ChangedBy: stanton
OS: Windows NT
OSVersion: 4.0S3
Machine: X86
FixedDate: '1999-04-16'
FixedInVersion: 8.0.5
ClosedDate: '2000-10-25'


Name:
suresh tipirneni

CustomShell:
none

ReproducibleScript:
when my increment function executes following statement in tclsh80,

set a 9074E304
set a [expr $a + 1 ]

ObservedBehavior:
it crashes the tclsh80 with the following message appearing twice,

{
   The exception Floating point inexact result.
   (0xc000008f) occured in the application at location 0x003640e2.
    Click on OK to terminate the application
    Click on CANCEL to debug the application
}

and following message

{
 The exception unknown software exception ( 0xc0000027) occured in the location 0x77f3af90.

Click on OK to terminate the application
Click on CANCEL to debug the application

}

DesiredBehavior:
floating point value too large to represent or the actual number ( 3.40282e+038)



not present in > 8.0.3

same behavior when expr used in conjunction with the functions like tan, sin, cos, pow etc.

bug not present in the Alpha UNIX and NT versions of tclsh80 p2

This behavior seems to be gone in 8.0.5 and later releases
welch Closed ticket [218592ffff]. [History diff]2000-10-26 08:25:09
dgp Ticket [218592ffff]: 3 changes [History diff]2001-04-16 20:30:26
Log in (anonymous is fine) to add a comment.