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

[jira] Created: (STDCXX-293) __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call

__rw::__rw_throw(): operator delete[] called without corresponding operator new[] call
--------------------------------------------------------------------------------------

                 Key: STDCXX-293
                 URL: http://issues.apache.org/jira/browse/STDCXX-293
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 18. Language Support, 19. Diagnostics
    Affects Versions: 4.1.3
         Environment: All
            Reporter: Farid Zaripov


The test below fails:

-----------------------------------------------------------
#include <cstddef>          // for std::size_t
#include <assert.h>         // for assert
#include <rw/_error.h>      // for __rw_throw_proc, _RWSTD_ERROR_LOCALE_BAD_CAT

void* operator new[] (std::size_t)
{
    assert (!"operator new[] unexpectedly called");
    return 0;
}

void operator delete[] (void*)
{
    assert (!"operator delete[] called without operator new[]");
}

int main ()
{
    __rw::__rw_throw (_RWSTD_ERROR_LOCALE_BAD_CAT + 1, __FILE__, "main");

    return 0;
}
-----------------------------------------------------------

Assertion failed: !"operator delete[] called without operator new[]", file .\tes
t.cpp, line 13

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
-----------------------------------------------------------

The details are here: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200609.mbox/%3c451BFD6E.6020409@roguewave.com%3e


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (STDCXX-293) __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call

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

Farid Zaripov reassigned STDCXX-293:
------------------------------------

    Assignee: Farid Zaripov

> __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call
> --------------------------------------------------------------------------------------
>
>                 Key: STDCXX-293
>                 URL: https://issues.apache.org/jira/browse/STDCXX-293
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 18. Language Support, 19. Diagnostics
>    Affects Versions: 4.1.3
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>
> The test below fails:
> -----------------------------------------------------------
> #include <cstddef>          // for std::size_t
> #include <assert.h>         // for assert
> #include <rw/_error.h>      // for __rw_throw_proc, _RWSTD_ERROR_LOCALE_BAD_CAT
> void* operator new[] (std::size_t)
> {
>     assert (!"operator new[] unexpectedly called");
>     return 0;
> }
> void operator delete[] (void*)
> {
>     assert (!"operator delete[] called without operator new[]");
> }
> int main ()
> {
>     __rw::__rw_throw (_RWSTD_ERROR_LOCALE_BAD_CAT + 1, __FILE__, "main");
>     return 0;
> }
> -----------------------------------------------------------
> Assertion failed: !"operator delete[] called without operator new[]", file .\tes
> t.cpp, line 13
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> -----------------------------------------------------------
> The details are here: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200609.mbox/%3c451BFD6E.6020409@roguewave.com%3e

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


[jira] Closed: (STDCXX-293) __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call

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

Farid Zaripov closed STDCXX-293.
--------------------------------


> __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call
> --------------------------------------------------------------------------------------
>
>                 Key: STDCXX-293
>                 URL: https://issues.apache.org/jira/browse/STDCXX-293
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 18. Language Support, 19. Diagnostics
>    Affects Versions: 4.1.3
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>
> The test below fails:
> -----------------------------------------------------------
> #include <cstddef>          // for std::size_t
> #include <assert.h>         // for assert
> #include <rw/_error.h>      // for __rw_throw_proc, _RWSTD_ERROR_LOCALE_BAD_CAT
> void* operator new[] (std::size_t)
> {
>     assert (!"operator new[] unexpectedly called");
>     return 0;
> }
> void operator delete[] (void*)
> {
>     assert (!"operator delete[] called without operator new[]");
> }
> int main ()
> {
>     __rw::__rw_throw (_RWSTD_ERROR_LOCALE_BAD_CAT + 1, __FILE__, "main");
>     return 0;
> }
> -----------------------------------------------------------
> Assertion failed: !"operator delete[] called without operator new[]", file .\tes
> t.cpp, line 13
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> -----------------------------------------------------------
> The details are here: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200609.mbox/%3c451BFD6E.6020409@roguewave.com%3e

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


[jira] Resolved: (STDCXX-293) __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call

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

Farid Zaripov resolved STDCXX-293.
----------------------------------

    Resolution: Fixed

Fixed thus: http://svn.apache.org/viewvc?view=rev&rev=549584

> __rw::__rw_throw(): operator delete[] called without corresponding operator new[] call
> --------------------------------------------------------------------------------------
>
>                 Key: STDCXX-293
>                 URL: https://issues.apache.org/jira/browse/STDCXX-293
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 18. Language Support, 19. Diagnostics
>    Affects Versions: 4.1.3
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>
> The test below fails:
> -----------------------------------------------------------
> #include <cstddef>          // for std::size_t
> #include <assert.h>         // for assert
> #include <rw/_error.h>      // for __rw_throw_proc, _RWSTD_ERROR_LOCALE_BAD_CAT
> void* operator new[] (std::size_t)
> {
>     assert (!"operator new[] unexpectedly called");
>     return 0;
> }
> void operator delete[] (void*)
> {
>     assert (!"operator delete[] called without operator new[]");
> }
> int main ()
> {
>     __rw::__rw_throw (_RWSTD_ERROR_LOCALE_BAD_CAT + 1, __FILE__, "main");
>     return 0;
> }
> -----------------------------------------------------------
> Assertion failed: !"operator delete[] called without operator new[]", file .\tes
> t.cpp, line 13
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> -----------------------------------------------------------
> The details are here: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200609.mbox/%3c451BFD6E.6020409@roguewave.com%3e

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