You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Farid Zaripov (JIRA)" <ji...@apache.org> on 2008/02/21 18:57:19 UTC

[jira] Created: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
------------------------------------------------------------------------------------------

                 Key: STDCXX-740
                 URL: https://issues.apache.org/jira/browse/STDCXX-740
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: Configuration
    Affects Versions: 4.2.0, 4.1.4, 4.1.3, 4.1.2
         Environment: gcc/Linux/i386
            Reporter: Farid Zaripov
            Priority: Trivial


When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.

Below is the result of 5 runs of the INFINITY test:

{noformat}
#define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
#define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
#define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
#define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
#define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
{noformat}

I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.

I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-740:
---------------------------------

    Attachment: INFINITY.cpp.diff

The proposed patch is attached.

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Priority: Trivial
>         Attachments: INFINITY.cpp.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov resolved STDCXX-740.
----------------------------------

    Resolution: Fixed

Fixed thus: http://svn.apache.org/viewvc?rev=643941&view=rev
Will be closed after merging the patch to 4.2.x branch.

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: INFINITY.cpp.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov closed STDCXX-740.
--------------------------------


Merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: INFINITY.cpp.diff
>
>   Original Estimate: 1h
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-740:
--------------------------------

         Severity: Incorrect Behavior  (was: Cosmetic)
    Fix Version/s: 4.2.1
       Issue Type: Bug  (was: Improvement)

Scheduled for 4.2.1 and corrected Issue Type and Severity.

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: INFINITY.cpp.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584633#action_12584633 ] 

Martin Sebor commented on STDCXX-740:
-------------------------------------

The patch looks good. Please go ahead and commit it at your earliest convenience.

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: INFINITY.cpp.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov reassigned STDCXX-740:
------------------------------------

    Assignee: Farid Zaripov

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>            Priority: Trivial
>             Fix For: 4.2.1
>
>         Attachments: INFINITY.cpp.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STDCXX-740) INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Farid Zaripov updated STDCXX-740:
---------------------------------

            Patch Info: [Patch Available]
    Remaining Estimate: 1h
     Original Estimate: 1h

> INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
> ------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-740
>                 URL: https://issues.apache.org/jira/browse/STDCXX-740
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>         Environment: gcc/Linux/i386
>            Reporter: Farid Zaripov
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I ran the INFINITY config test several times  I found that the _RWSTD_LDBL_SNAN_BITS values are different from time to time.
> Below is the result of 5 runs of the INFINITY test:
> {noformat}
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf9', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xfd', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf7', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xf2', '\xbf' }
> #define _RWSTD_LDBL_SNAN_BITS  { '\x1', 0, 0, 0, 0, 0, 0, '\x80', '\xff', '\x7f', '\xe8', '\xbf' }
> {noformat}
> I suppose that actually used 80 bits from 96 bits of long double (sizeof (long double) == 12) and the latest two bytes contains the garbage from stack.
> I think we need fill by zero values the bits fields of the flt_bits, dbl_bits and ldbl_bits unions (i.e. in union ctor).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.