stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-804) [MSVC] SIGSEGV in 27.objects
Date Mon, 31 Mar 2008 18:06:24 GMT

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

Farid Zaripov commented on STDCXX-804:
--------------------------------------

The problem introduced with changes for STDCXX-626.

-------
    std::cout.tie (&std::cerr);
    ...

    std::cerr.tie (&std::cout);
    std::cerr << std::cerr.tie () << ' ';
-------

Here cout tied with cerr and cerr tied with cout.

The cerr::operator<<() constructs sentry object (in __rw_insert()), the sentry ctor
flushes tied cout stream (in _C_opfx()), the cout.flush() also constructs the sentry object,
which flushes the tied cerr stream and so on until stack overflow occurs.

> [MSVC] SIGSEGV in 27.objects
> ----------------------------
>
>                 Key: STDCXX-804
>                 URL: https://issues.apache.org/jira/browse/STDCXX-804
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: MSVC 8, 9
>            Reporter: Martin Sebor
>            Assignee: Farid Zaripov
>            Priority: Critical
>             Fix For: 4.2.1
>
>
> When compiled with MSVC (both 8 and 9), in the 15s, 15S configurations, the test [27.objects|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/iostream/27.objects.cpp]
is failing with the Windows equivalent of SIGSEGV.
> In stdcxx 4.2.0, the test ran successfully to completion (with both MSVC 7.1 and 8.0).

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