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

15d ios_base->_C_usr causes crash on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 4.1.3
    • None
    • 27. Input/Output
    • None
    • Windows XP, VS71, stdcxx 4.1.3 config: 15d

    Description

      On Windows i tried to compile a simple program like this:

      #include <iostream>

      int main(void)
      {
      std::cerr << "Hello World: << 123 << std::endl;
      return 0;
      }

      this crashes at the operator<< with the integer, because ios_base::_C_usr = 0x00000020 which for sure is wrong. Is it uninitialized? i set a breakpoint in the ios_base constructor, but it was never called, but this may be a shared library issue. May one will need to initialize in DllMain or something....

      after the crash i'm in ios_base::_C_tie where you try to call _C_usr->_C_tie

      Attachments

        Activity

          People

            Unassigned Unassigned
            mduft Markus Duft
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: