stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-841) [Sun C++] SIGFPE in 20.temp.buffer in LP64
Date Mon, 14 Apr 2008 18:11:04 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588666#action_12588666
] 

Martin Sebor commented on STDCXX-841:
-------------------------------------

Also, the test output is misleading in wide builds. Here's a patch that fixes the incorrect
INFO output when {{sizeof(T) > UINT_MAX}}:

{noformat}
Index: tests/utilities/20.temp.buffer.cpp
===================================================================
--- tests/utilities/20.temp.buffer.cpp  (revision 646866)
+++ tests/utilities/20.temp.buffer.cpp  (working copy)
@@ -39,6 +39,7 @@
 #endif
 
 #include <rw_new.h>
+#include <rw_printf.h>
 #include <driver.h>
 
 #ifndef _RWSTD_NO_SETRLIMIT
@@ -245,7 +246,7 @@
 {
     if (0 == tname) {
         static char buf [40];
-        std::sprintf (buf, "char[%u]", unsigned (sizeof (T)));
+        rw_sprintf (buf, "char[%zu]", sizeof (T));
         tname = buf;
     }
{noformat}

> [Sun C++] SIGFPE in 20.temp.buffer in LP64
> ------------------------------------------
>
>                 Key: STDCXX-841
>                 URL: https://issues.apache.org/jira/browse/STDCXX-841
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 4.2.0
>         Environment: Sun C++
>            Reporter: Martin Sebor
>            Assignee: Eric Lemings
>            Priority: Minor
>             Fix For: 4.2.1
>
>   Original Estimate: 2h
>          Time Spent: 0.5h
>  Remaining Estimate: 1.5h
>
> When compiled with Sun C++ (any version) in LP64 mode, the test [20.temp.buffer.cpp|http://svn.apache.org/viewvc/stdcxx/trunk/tests/utilities/20.temp.buffer.cpp?view=markup]
abends with SIGFPE.

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


Mime
View raw message