Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-949

27.filebuf test fails with assertions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.2.1
    • 4.2.2
    • 27. Input/Output, Tests
    • None
    • All

    • Patch Available
    • Incorrect Behavior

    Description

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

      # 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
      

      Attachments

        1. stdcxx-949.patch
          2 kB
          Farid Zaripov

        Activity

          People

            farid Farid Zaripov
            farid Farid Zaripov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Time Spent - 0.5h Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - 0.5h Remaining Estimate - 0.5h
                0.5h