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/06/03 11:28:45 UTC

[jira] Created: (STDCXX-949) 27.filebuf test fails with assertions

27.filebuf test fails with assertions
-------------------------------------

                 Key: STDCXX-949
                 URL: https://issues.apache.org/jira/browse/STDCXX-949
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Tests
    Affects Versions: trunk
         Environment: All
            Reporter: Farid Zaripov
            Assignee: Farid Zaripov
             Fix For: 4.2.2


The 27.filebuf test fails with the following assertions and warnings:

{noformat}
# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<char>::is_open() == false, got true after a call to detach()
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1424

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<char>::fd() < 0, got 3 after a call to detach()()
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1431

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<char>::~basic_filebuf() attempted to close a detached file descriptor
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1443

# WARNING (S5) (5 lines):
# TEXT: std::remove("C:\Temp\.rwtest-tmp11") failed: Permission denied
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1519

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<char>::is_open() unexpectedly true after a successful call to detach()
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1593

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<wchar_t>::is_open() == false, got true after a call to detach()
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1424

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<wchar_t>::fd() < 0, got 3 after a call to detach()()
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1431

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<wchar_t>::~basic_filebuf() attempted to close a detached file descriptor
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1443

# WARNING (S5) (5 lines):
# TEXT: std::remove("C:\Temp\.rwtest-tmp12") failed: Permission denied
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1519

# ASSERTION (S7) (5 lines):
# TEXT: basic_filebuf<wchar_t>::is_open() unexpectedly true after a successful call to detach()
# CLAUSE: [lib.filebuf]
# FILE: 27.filebuf.cpp
# LINE: 1593
{noformat}

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


[jira] Updated: (STDCXX-949) 27.filebuf test fails with assertions

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

Farid Zaripov updated STDCXX-949:
---------------------------------

    Component/s: 27. Input/Output
     Patch Info: [Patch Available]

> 27.filebuf test fails with assertions
> -------------------------------------
>
>                 Key: STDCXX-949
>                 URL: https://issues.apache.org/jira/browse/STDCXX-949
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 27. Input/Output, Tests
>    Affects Versions: trunk
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>             Fix For: 4.2.2
>
>         Attachments: stdcxx-949.patch
>
>   Original Estimate: 1h
>          Time Spent: 0.5h
>  Remaining Estimate: 0.5h
>
> The 27.filebuf test fails with the following assertions and warnings:
> {noformat}
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::is_open() == false, got true after a call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1424
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::fd() < 0, got 3 after a call to detach()()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1431
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::~basic_filebuf() attempted to close a detached file descriptor
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1443
> # WARNING (S5) (5 lines):
> # TEXT: std::remove("C:\Temp\.rwtest-tmp11") failed: Permission denied
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1519
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::is_open() unexpectedly true after a successful call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1593
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::is_open() == false, got true after a call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1424
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::fd() < 0, got 3 after a call to detach()()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1431
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::~basic_filebuf() attempted to close a detached file descriptor
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1443
> # WARNING (S5) (5 lines):
> # TEXT: std::remove("C:\Temp\.rwtest-tmp12") failed: Permission denied
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1519
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::is_open() unexpectedly true after a successful call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1593
> {noformat}

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


[jira] Updated: (STDCXX-949) 27.filebuf test fails with assertions

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

Eric Lemings updated STDCXX-949:
--------------------------------

    Affects Version/s: 4.2.1

> 27.filebuf test fails with assertions
> -------------------------------------
>
>                 Key: STDCXX-949
>                 URL: https://issues.apache.org/jira/browse/STDCXX-949
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 27. Input/Output, Tests
>    Affects Versions: 4.2.1
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>             Fix For: 4.2.2
>
>         Attachments: stdcxx-949.patch
>
>   Original Estimate: 1h
>          Time Spent: 0.5h
>  Remaining Estimate: 0.5h
>
> The 27.filebuf test fails with the following assertions and warnings:
> {noformat}
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::is_open() == false, got true after a call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1424
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::fd() < 0, got 3 after a call to detach()()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1431
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::~basic_filebuf() attempted to close a detached file descriptor
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1443
> # WARNING (S5) (5 lines):
> # TEXT: std::remove("C:\Temp\.rwtest-tmp11") failed: Permission denied
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1519
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::is_open() unexpectedly true after a successful call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1593
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::is_open() == false, got true after a call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1424
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::fd() < 0, got 3 after a call to detach()()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1431
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::~basic_filebuf() attempted to close a detached file descriptor
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1443
> # WARNING (S5) (5 lines):
> # TEXT: std::remove("C:\Temp\.rwtest-tmp12") failed: Permission denied
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1519
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::is_open() unexpectedly true after a successful call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1593
> {noformat}

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


[jira] Updated: (STDCXX-949) 27.filebuf test fails with assertions

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

Farid Zaripov updated STDCXX-949:
---------------------------------

    Attachment: stdcxx-949.patch

The proposed patch is attached.

ChangeLog:
{noformat}
2008-06-03  Farid Zaripov  <fa...@epam.com>

	* include/fstream.cc (close): Zero out file pointer even when close() is
	called from detach() and all data flushed successfully.
	* tests/iostream/27.filebuf.cpp (test_ctors): Detach pfb from file pointer
	before delete because of the file is already closed in fb dtor.
	(test_attach): Close file descriptor before removing the file.
{noformat}

> 27.filebuf test fails with assertions
> -------------------------------------
>
>                 Key: STDCXX-949
>                 URL: https://issues.apache.org/jira/browse/STDCXX-949
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: trunk
>         Environment: All
>            Reporter: Farid Zaripov
>            Assignee: Farid Zaripov
>             Fix For: 4.2.2
>
>         Attachments: stdcxx-949.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The 27.filebuf test fails with the following assertions and warnings:
> {noformat}
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::is_open() == false, got true after a call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1424
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::fd() < 0, got 3 after a call to detach()()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1431
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::~basic_filebuf() attempted to close a detached file descriptor
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1443
> # WARNING (S5) (5 lines):
> # TEXT: std::remove("C:\Temp\.rwtest-tmp11") failed: Permission denied
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1519
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<char>::is_open() unexpectedly true after a successful call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1593
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::is_open() == false, got true after a call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1424
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::fd() < 0, got 3 after a call to detach()()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1431
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::~basic_filebuf() attempted to close a detached file descriptor
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1443
> # WARNING (S5) (5 lines):
> # TEXT: std::remove("C:\Temp\.rwtest-tmp12") failed: Permission denied
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1519
> # ASSERTION (S7) (5 lines):
> # TEXT: basic_filebuf<wchar_t>::is_open() unexpectedly true after a successful call to detach()
> # CLAUSE: [lib.filebuf]
> # FILE: 27.filebuf.cpp
> # LINE: 1593
> {noformat}

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